# GU D8 Migration Log
## Motivation
This list documents the manual, post-auto-migration tasks that need to be completed by the Savas and DCI teams to fully complete the Content Migration. It has been adapted from the DCI Migration Log.
The GU Migration Log task is [Redmine #8940](https://pm.savaslabs.com/issues/8940?issue_count=56&issue_position=3&next_issue_id=8939&prev_issue_id=8941)
## SAVAS list:
### Homepage
Landing page for the Homepage is created during migration, although migrated page has no content - URL = /home.
The page needs to be modified and must be set as default front page at `/admin/config/system/site-information`.
Modifications for Homepage post migration:
- [x] Add Slideshow
- [x] Add Currated Content
### Slideshows
Donors landing page slideshow paragraph images need titles - /donors.
- [x] [n/a no donors page] load http://local.dci.org/admin/content/media-table?name=donor&type=All&status=All&langcode=All - this should show you a list of 4 images that are added to the slideshow paragraph.
- [x] [n/a no donors page] click edit for each image and add a title to "Slide Title" field. Reference titles on production `/donors` page.
#### Calendar
- [x] remove migrated page of type "Landing page" that is created at an alias `/calendar`
- [x] ensure Calendar view is now displayed on alias `/calendar`
- [x] add "Calendar" link back to Secondary navigation matching placement/order from production. [n/a - no calendar link on GU prod]
### Webforms
Manually create Landing Pages for the following forms while adding a Form as a paragraph + adding a Sidebar Menu paragraph w/ "Main Menu - Top Level" selection :
- [x] Breakthrough Subscription - /breakthroughs-subscription
- [x] Share Your Story - /share-your-story - [n/a does not exist on GU prod]
- [x] Send Us a Message - [n/a does not exist on GU prod]
### Blog Landing pages
`/blog` and `/donors/your-gifts-at-work` pages are created during migration
Because these pages are built as Views, migrated landing pages need to be removed.
Once migrated landing pages are removed, corresponding menu item in Main and Secondary Nav will also be removed and need to be created again.
- [x] remove migrated blog and donor blog landing pages
- [x] add those urls back to main and secondary nav
- [x] ensure blog pages are displayed as designed
**NOTE:** blog views are fed by Search API index. Run `drush sapi-i` in order to index blog content.
### Manual corrections for migrated content
#### Body text is displayed w/ HTML tags - 2 instances. Perhaps more that weren't caught.
Re-save manually to get rid of tags. It's an annoying bug w/ text filters.
- [x] http://local.dci.org/award-recipients [n/a]
- [x] http://local.dci.org/education/training-opportunities [n/a]
#### Resources list can not be migrated.
Add resources manually as a "Text 3-wide" or "Text" paragraph.
- [x] /patients-and-caregivers
- [x] /healthcare-professionals [n/a]
- [x] /head-neck-cancer [n/a]
#### Missing Hero images
- [x] /head-neck-cancer [n/a]
#### Misaligned or oversized images to fix manually
- [x] /office-health-equity - duplicate body content + image resize [n/a]
- [x] /breakthroughs-magazine [n/a]
- [x] /hereditary-clinic [n/a]
#### Doubled body field
- [x] [n/a I don't see this has necessary on a site this small] See #8325. We will identify a list of nodes that require cleanup after receiving the final D7 DB for import.
#### Body field with "empty" markup and whitespace (see https://pm.savaslabs.com/issues/8325#note-3)
- [x] `/developmental-therapeutics` [n/a]
### Users
- [x] Create user accounts for webmasters (refer to DCI team for emails/usernames). Webmasters will in turn create account for Editors
- [x] Update Admin (user)
### Menus
#### Fix secondary menu blog and calendar links
- [x] Go to `/admin/structure/menu/manage/secondary-menu` and add back the blog and calendar links
- [x] These are created during migration, but they link to nodes rather than the views we created. When we delete the nodes, the links auto-delete, so we need to add these back and link to the respective views. For more context, see https://pm.savaslabs.com/issues/8471#note-7
### Search
- [x] There is a node present at `/search`. This node should be deleted in order for the search blocks to appear correctly.
- [x] Per the proposed resolution in #7747, there is a search result group `Disease Groups (Landing Page CT w/ Disease Group taxonomy term from Category vocab)`. However, there is no `Disease Group` term in the Categories vocabulary, and as such we couldn't add that filter to the `Disease Groups` search display (`/admin/structure/views/view/search/edit/block_3`). I [chatted with Spencer in Slack](https://savaslabs.slack.com/archives/CEEBE4EMT/p1561648756002000) about this. The resolution is that post-migration, we will add the `Disease Group` taxonomy term to the Categories vocabulary, and we will update the categories filter on the `Disease Groups` search display (`/admin/structure/views/view/search/edit/block_3`) [I verified that all settings at /admin/structure/views/view/search/edit/block_3 match DCI dev. This did _not_ require updating a categories filter]
### Clinical Trials
- [x] [n/a prod redirects to DCI site] Create the `/clinical-trials` page (#7757)
### Misc Cleanup
#### Remove obsolete fields:
- [x] Remove field_publish_date_range and its data after the final migration (#8315)
- [x] Remove event obsolete dates field - there is a post-migration script that populates the new field, see #8730 and #8315
### Addendum: Manual Savas steps taken post-migration
These additional steps were taken by Dan when running the final migration
- [x] Edit main navigation calendar link, convert from hardcoded to relative [n/a no calendar link in GU main nav]
- [x] Edit 3 main navigation blog links, convert from hardcoded to relative [n/a]
- [x] Add back the main navigation `Our Stories` menu item under `FOR DONORS` (and replace its children). This should link to `/donors/your-gifts-at-work` [n/a]
- [x] Sort the main and donor blog categories taxonomy terms in alphabetical order (so they appear that way in the blog view's category filters) at:
- [x] http://local.dci.org/admin/structure/taxonomy/manage/categories/overview.
- [x] http://local.dci.org/admin/structure/taxonomy/manage/donor_categories/overview [n/a]
- [x] Re-save the following nodes: `select pi.id, pifd.parent_id, pifd.parent_type from paragraphs_item pi left join paragraphs_item_field_data pifd on pifd.id = pi.id where pi.type = 'text_3_wide';`
- [x] [n/a] Edit the slide title for the /donors volunteer slide
- [x] I created the site favicon via the UI and synced that file up
- [x] Remove the duplicate secondary navigation `MEMBERS` link (there were two)
- [x] Some migrated nodes with the Text 3-wide paragraph had raw HTML displaying. Re-saving the node fixed the issue. The following query lists the ~18 nodes that need to be resaved: `select pi.id, pifd.parent_id, pifd.parent_type from paragraphs_item pi left join paragraphs_item_field_data pifd on pifd.id = pi.id where pi.type = 'text_3_wide';`
- [x] Re-run the `dci_core_update_8001 ` Twitter block update hook via `drush ev "drupal_set_installed_schema_version('dci_core', 8000)"` and `drush updb`
- [x] Ensure the update hook `dci_migration_update_8001` ran to transform style attributes in rich text fields.
---
## DCI list:
### Basic Site Settings
- [ ] Update email address at `/admin/config/system/site-information`
### Blog Pages
Some pages contain Image Galleries within the node body.
Image Galleries are not migrated and need to be added manually via Image Gallery Paragraph.
### Sidebar Menus on Landing Pages
Sidebar Menus will not be migrated via scripted migration.
Savas added Paragraph type “Sidebar Menu” (#7840) which allows Editors to add these menus manually to pages of choice.
Landing Pages that are children of the “For Donors” , “Shared Resources”, “Types of Cancer” and “Research Programs” main menu items should have relevant "Sidebar Menu" added after migration.
### Leader Cards
- [ ] Leader Card paragraph will be added manually
- [ ] Person or Member nodes can be references in Leader Card paragraph
- [ ] Person or Member node should exist before creating a Leader Card instance
### Locations
Transfer them manually.
Remember to check "Display in footer" checkbox to fill in Footer location block.
### Twitter integration
- [ ] Register developer account on Twitter dev portal - https://developer.twitter.com/content/developer-twitter/en.html
- [ ] Create a new App https://developer.twitter.com/en/apps. This requires a submission of an application.
- [ ] App keys will be provided once the app is registered.
- [ ] Replace keys at `/admin/config/services/twitteroauth/settings`. Save the form. |
### Path aliases/Redirects
Redirects are not migrated and will either need to be done manually, or can be a post-launch enhancement.
## Remaining tasks
- [x] Run final migration w/ post migration scripts
- [x] Run `drush sapi-i` to index content
- [ ] Address items from the list above
- [x] Run Member Import
- [x] Run CTrials Import `drush cti`
- [x] Run Cron to catch any Members that may not have been connected to Ctrial nodes during the first CTrials import - `drush cron`
- [x] upload DB and files to Pantheon Dev environment