-
Notifications
You must be signed in to change notification settings - Fork 557
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
Set maximum number of stories in a flexible general container #27708
Conversation
73f915f
to
1759337
Compare
1759337
to
fe09280
Compare
fe09280
to
0bdeb57
Compare
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.
LGTM!
Two small points:
- It's possible to botch the container by including a negative number.
- It's unclear that there is a limit of 20 within the tooling itself.
Thanks, good points! That feels like config tool issues, so will have a look at those there. |
Seen on ADMIN-PROD (merged by @Georges-GNM 11 minutes and 24 seconds ago)
|
Seen on FRONTS-PROD (merged by @Georges-GNM 11 minutes and 39 seconds ago)
|
What is the value of this and can you measure success?
Closes this fairground ticket, making use of the value getting populated following this fronts tool PR (though that value is effectively optional, so this PR can be merged irrespective of the fronts tool one).
The
maxItemsToDisplay
value, which is surfaced in thedisplayHints
field of theCollectionConfig
, is now used to set the maximum number of stories appearing in a flexible general collection when it gets pressed.The PR includes a couple of incidental changes, including deleting the FlexibleContainers object which is unused (and most likely was added when the flexible containers were implemented in a symmetrical fashion as the dynamic containers), and some formatting after running
scalafmt
.Screenshots
A flexible general container showing only the desired 5 stories from the fronts tool - whereas previously the container would include the pieces below the dividing line in the tool:
Testing
Deploy this to code, and in the fronts tool (running the branch from the above PR), set a specific number of maximum stories for a flexible general container in the config tool. The front should get re-pressed, so checking on the code front, does the desired number of stories get shown?
You can also check the pressed json in s3.
If this DCR branch is running on code (or maybe already merged), you can also confirm larger collections (9+ stories) are displaying the expected number of stories.
Checklist