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

Reintroduce hash sorting for expanded content-item and links #1100

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

aldavidson
Copy link
Contributor

@aldavidson aldavidson commented Jun 28, 2023

This is an updated version of PR #1096, having isolated the cause of the problem described in #1097 (.deep_symbolize_keys called at the wrong level) and added a test case to catch the issue in #1099, plus explicit tests that the sorting behaviour is correct.

Trello cards 1 and 2

Manual Testing

I've deployed this to integration and tested that :

a) this does not drop the role_appointments[*] -> links (as was found in #1096) :

Screenshot from 2023-06-29 12-05-03
Before on the left, after on the right. Also note the hashes on the right are sorted at all levels

b) the page renders correctly in the collections front end:
image

This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

…rectly this time

enforce internal consistency of sym/string keys for ExpandedLinksPresenter and
ContentItemPresenter
aldavidson added a commit that referenced this pull request Jun 29, 2023
@aldavidson aldavidson merged commit 03e476b into main Jun 30, 2023
4 checks passed
@aldavidson aldavidson deleted the re-add-hash-sort-correctly branch June 30, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants