-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDSS-840: Add unsectioned News paragraphs to layout_paragraph sections #205
Conversation
@pookmish I know I was pushing fixups after I re-requested review -- this is ready now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still doesn't address one possible scenario:
one column
- text area
text area 2
two column
- card
- text area 3
card 2
In this instance text area 2
and card 2
would end up belonging to the same one column layout and result in the order of the items changing. It would result in this outcome:
one column
- text area
two column
- card
- text area 3
one column
- text area 2
- card 2
The chance of this happening is probably slim to none but it is a possibility. The only way to truely solve such a scenario is to create one column rows for ever "unsectioned" paragraph.
I re-wrote the code to add every "unsectioned" paragraph to its own section paragraph, and then spliced the section paragraph into the component list at the same delta as the original paragraph + however many new paragraphs have been added for that node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my concerns.
Thanks for all your feedback. It was really constructive and I learned a lot. |
READY FOR REVIEW
Summary
updatedb
hook that moves any "un-sectioned" components into a 1 column layout section.Review By (Date)
Review Tasks
Setup tasks and/or behavior to test
blt drupal:sync --site=sustainability
drush updatedb
Front End Validation
Backend / Functional Validation
Code
Code security
General
Affected Projects or Products
Associated Issues and/or People
https://stanfordits.atlassian.net/browse/SDSS-840
Resources