-
Notifications
You must be signed in to change notification settings - Fork 41
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
Update Vice chair title on homepage, make it so this is auto-updates in the future. #3310
Update Vice chair title on homepage, make it so this is auto-updates in the future. #3310
Conversation
…templatetag in home_page.py
Codecov Report
@@ Coverage Diff @@
## develop #3310 +/- ##
==========================================
Coverage ? 74.61%
==========================================
Files ? 120
Lines ? 7232
Branches ? 633
==========================================
Hits ? 5396
Misses ? 1836
Partials ? 0
Continue to review full report at Codecov.
|
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.
@johnnyporkchops I'm not sure this worked. I added Vice Chair to the Commissioner's page in feature, but it did not update the home page automatically to reflect her title. (We've already added her title to her page in prod.) We need to ensure the home page says she is the Vice Chair.
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.
Seems to be working for me locally!
@dorothyyeager this is not on feature, so it would not work there. I guess there is no way for you to review it but I thought you should be on as a reviewer since it was your issue |
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.
Just a reminder that if this is going to be a hotfix, we should make a new branch off master
. We could cherry-pick these commits over if it's easier.
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.
Approved content team wise but not merging. Will need a dev to doublecheck and merge to master.
Closing in favor of hotfix: #3315 |
New hotfix PR was made: #3315 |
Summary
This adds an argument to the
commissioners.py
templatetag so it can be used in multiple locations including the home page commissioners' listing.With this PR, the homepage commissioner listing will be updated automatically when their Wagtail commissioner page is edited (as on leadership-and-structure and leadership-and-structure/commissioners ). We were currently hardcoding html for home page commissioners' display.
Added comments to explain how to use the argument to control the grid layout of the rendered templatetag ( i.e : 2 grid or 3 grid layout )
Resolves Update home page and Leadership page to reflect Vice Chair's title #3308
Impacted areas of the application
This impacts the commissioners block that appears in streamfields (currently used on about/leadership-and-structure ). Also effects the homepage commissioners' listing.
Looks exactly the same as on production, but its not hardcoded:

Related PRs
https://github.com/fecgov/fec-cms/pull/3131/files#
How to test