Skip to content
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

Handle the move of suppressImages to displayHints #1762

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

Fweddi
Copy link
Contributor

@Fweddi Fweddi commented Feb 21, 2025

What's changed?

In guardian/facia-scala-client#342 we moved the suppressImages field to DisplayHints in order to free up the Case Class limit on the CollectionConfig. This PR handles that change in the Fronts Tool.

Testing

In the Fronts config, using a Beta container, check the suppressImages checkbox. Refresh the config page. The field should persist.

image

Navigate to the Fronts Tool proper and open a front with the relevant container. You should see Images suppressed appear at the top of the container:
image

Uncheck the checkbox in the config; refresh, the Images suppressed label should disappear in the Fronts tool.

Ideally this should hide the images for the given container on the CODE front. It currently does not, which I assume is because we need to update the platforms to support the new facia model. Although this is a breaking change, beta containers are not currently in production, so I think we are okay to fix forward.

@Fweddi Fweddi requested a review from a team as a code owner February 21, 2025 09:24
@Fweddi Fweddi force-pushed the fp/handle-suppress-images-move branch from ba5edcb to 9f95787 Compare February 21, 2025 09:26
@Fweddi Fweddi force-pushed the fp/handle-suppress-images-move branch from 9f95787 to 5a1d19f Compare February 21, 2025 09:29
@Fweddi Fweddi self-assigned this Feb 21, 2025
Copy link
Member

@davidfurey davidfurey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Co-authored-by: David Furey <[email protected]>
@Fweddi Fweddi merged commit 046c225 into main Feb 21, 2025
13 checks passed
@Fweddi Fweddi deleted the fp/handle-suppress-images-move branch February 21, 2025 10:02
@prout-bot
Copy link

Seen on PROD (merged by @Fweddi 6 minutes and 22 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants