Home

To-Do list and quick notes template to make my life easier :D

Quick notes drop them here:

rsync files to dev

Until I get some time to setup git repo, I’m using rsync (not ideal, I know!)

1
rsync -avz --exclude=sites/default/settings.php ../docroot acvo.dev:acvod8/

Tue 16/01 Tasks:

  • Try to get Member Information fields imported as User fields DONE finaly!!
  • If ^ fails: Continue to manually adding the remaining fields to User Entity in D8
  • Reproduce plugin/hack applied to field_address_1 Address field to import all addresses related fields as addresses DONE
  • When ^ is done, cleanup: a)migration yml template, b)fields on D8 User Entity DONE And synced to Dev :)
  • If possible, recreate (manually! Migrate doesn’t work with field groups) Field Groups on D8 site DONE :)

Wed 17/01 Tasks:

  • field_exam_results is a fieldfile in D6, we need to migrate the files (already done) AND keep those files attached to User Entities!! Still working on this one :(
  • Once ^ is done. Do a quick check to make sure we are not missing files attached to entities.
D6 D8 Comparison

In both we have 90 nodes/users with a file attached into field_exam_results. So we are goood 🎉

Nnidfield_last_name_valueXentity_idfield_last_name_value
11449Alario1422Alario
21446Atkins1419Atkins
32696Baker1516Baker
41443Bell1416Bell
52407Bergstrom1512Bergstrom
61812Best1474Best
72108Beyer1499Beyer
81481Boyd1454Boyd
91810Brash1472Brash
101457Chow1430Chow
111479Cichocki1452Cichocki
121476Collins1449Collins
131471Conway1444Conway
141803Curto1465Curto
151468Czerwinski1441Czerwinski
161798Daniel1464Daniel
171828Darrow1477Darrow
181434Delgado1407Delgado
192396Disney1503Disney
201819Doering1476Doering
211452Donnelly1425Donnelly
221811Dorbandt1473Dorbandt
232401Dubin1508Dubin
241804Edelmann1466Edelmann
251425Feder1398Feder
262092Fisher1494Fisher
271484Fleming1457Fleming
281433Gaerig1406Gaerig
291464Gerding1437Gerding
302395Gervais1502Gervais
312081Goldenberg1484Goldenberg
321473Gornik1446Gornik
331466Griggs1439Griggs
341809Gronkiewicz1471Gronkiewicz
352697Haeussler, Jr1517Haeussler, Jr
363349Hodgson1575Hodgson
371465Horikawa1438Horikawa
381813Hsu1475Hsu
391451Juergens1424Juergens
401469King1442King
411472Knight1445Knight
421892Ko1479Ko
431441Kubai1414Kubai
441455Kuhn Asif1428Kuhn Asif
452699Landis1519Landis
461458Lanuza1431Lanuza
471805Leis1467Leis
481806Leonard1468Leonard
492397LoPinto1504LoPinto
501478Lu1451Lu
511436Lutz1409Lutz
521477MacLeese1450MacLeese
532398Marlo1505Marlo
542412Martinez1514Martinez
551467Martins1440Martins
561480Matusow Wynne1453Matusow Wynne
572408McDonald1513McDonald
581453Miller1426Miller
591470Miyadera1443Miyadera
602089Monk1491Monk
611459Mowat1432Mowat
622700Mundy1520Mundy
634790paz1675paz
641969Pierson1480Pierson
651456Pinto1429Pinto
662093Proietto1495Proietto
671475Reed1448Reed
681474Samuel1447Samuel
692506Sankey1515Sankey
701482Scherrer1455Scherrer
711444Schmidt1417Schmidt
721460Scott1433Scott
731483Sebbag1456Sebbag
742400Sharpe1507Sharpe
752394Sherman1501Sherman
762701Smith1521Smith
772090Stadler1492Stadler
781450Stine1423Stine
791454Strom1427Strom
802402Strong1509Strong
811445Stuckey1418Stuckey
821463Tofflemire1436Tofflemire
831461Vallone1434Vallone
842091Venturi1493Venturi
852702Voyles1522Voyles
862406West1511West
871462Wiggans1435Wiggans
881447Wooff1420Wooff
891485Yeh1458Yeh

Download Table

Thu 18/01 tasks:

  • Continue working on the field_exam_results field migration.
  • [] Migrate Taxonomy vocab and terms. Only taxo vocab in use is for field_vendor_country field and its already migrated
  • Start migrating CT nodes. Will continue tomorrow so far we have:

  • ABVO Resident Species Case Log

  • 2018 ABVO Provisional Resident Application
  • ABVO Resident Surgery Log

Fri 19/01 tasks:

  • Continue with CT nodes migration.
  • Fix bugs for exam_application_sd CT migration.
  • Check permissions
  • Check modules config gets migrated (like field permissions, etc…)

Member Information CT DB stats

Field types

Field type Count
content_taxonomy 1
date 1
email 1
filefield 2
number_float 10
text 127
userreference 5

Query to get above table:

1
2
3
4
SELECT `content_node_field`.`type`, COUNT(`content_node_field`.`type`) FROM `content_node_field`
JOIN `content_node_field_instance` ON `content_node_field_instance`.`field_name` = `content_node_field`.`field_name`
WHERE `content_node_field_instance`.`type_name` = 'member_information'  
GROUP BY type ASC

Field Instances widget types

Field Widget Count
content_taxonomy_select 1
date_select 1
email_textfield 1
filefield_widget 1
imagefield_widget 1
number 10
optionwidgets_onoff 37
optionwidgets_select 6
select_or_other_buttons 1
text_textarea 10
text_textfield 73
userreference_select 5

Query to get above table:

1
2
3
4
SELECT `content_node_field_instance`.`widget_type`, COUNT(`content_node_field_instance`.`widget_type`) FROM `content_node_field_instance`
JOIN `content_node_field` ON `content_node_field`.`field_name` = `content_node_field_instance`.`field_name`
WHERE `content_node_field_instance`.`type_name` = 'member_information'  
GROUP BY widget_type ASC

mysql quick checks

JOIN field_instance and field tables to be able to filter by CT and get some stats:

1
2
3
SELECT * FROM `content_node_field_instance`
JOIN `content_node_field` ON `content_node_field`.`field_name` = `content_node_field_instance`.`field_name`
WHERE type_name = 'member_information'
1
2
3
4
5
6
7
8
9
    <?
      $select = $this->select('content_node_field_instance', 'cnfi')
        ->fields('cnfi');
      $select->join('content_node_field', 'cnf', 'cnfi.field_name = cnf.field_name');
      $profile_fields = $select->condition('cnfi.type_name', 'member_information', '=')
        ->execute()
        ->fetchAll();
      dump($profile_fields);
    ?>
1
2
3
SELECT * FROM `content_node_field`
JOIN `content_node_field_instance` ON `content_node_field_instance`.`field_name` = `content_node_field`.`field_name`
WHERE type_name = 'member_information'
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?
  // Query the database directly for all field info.
  $query = $this->select('content_node_field_instance', 'cnfi');
  $query->join('content_node_field', 'cnf', 'cnf.field_name = cnfi.field_name');
  $query->fields('cnfi');
  $query->fields('cnf')
    ->condition('type_name', 'member_information', '=');

  foreach ($query->execute() as $field) {
    $this->fieldInfo[$field['type_name']][$field['field_name']] = $field;
    dump($field);
  }
?>
1
2
3
4
5
6
7
8
9
<?
  // Query the database directly for all field info.
  $fields = $this->select('content_node_field_instance', 'cnfi')
    ->fields('cnfi', ['field_name', 'label'])
    ->condition('type_name', 'member_information', '=')
    ->execute()
    ->fetchAllKeyed();
  dump($fields);
?>