Closed Georges-GNM closed 3 weeks ago
dotcom:frontend-all
to CODEIncredible investigation work here @Georges-GNM 👏 really impressive work. Your solution is brilliant as is but I have a suggestion to improve it further by making it a bit more readable
Seen on ADMIN-PROD (merged by @Georges-GNM 12 minutes ago)
Seen on FRONTS-PROD (merged by @Georges-GNM 13 minutes and 5 seconds ago)
What does this change?
The highlights container is only intended to have 6 stories in it, but the fronts tool doesn't limit the number that can be added - it's been left to the platforms to only render 6.
A previous PR set it so that only 6 stories would get added to "lite" version of the pressed front, leaving the full version with any more that were added in the tool. AFAIK the lite version is what normally gets served, but we had reports that suggested the full version was being used.
We implemented a temporary solution in DCR, but it's preferable to tweak the logic upstream, so that when highlights collection gets pressed, it can only have 6 stories.
Testing
The only way to really test this, AFAICT, is to deploy the branch, make a change to the highlights container in the fronts tool, and manually check the pressed.json in AWS to confirm it only has six - at the time of writing, this is what the relevant section of the file looks like:
Which matches up with the intention in the tool: