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

EES-5656 Release series tidy up #5444

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Conversation

benoutram
Copy link
Collaborator

This PR contains mainly backend changes, separating out a few bits of tidy up ahead of the main changes in EES-5656.

There are two main changes amongst some other smaller improvements.

  1. I attempted to remove Id from ReleaseSeriesItem, thinking that in cases where a publication has no legacy releases it would be nice if the ReleaseSeries field only contained an array of release id's. I backtracked on removing it entirely when I realised it's needed to be able to safely select the chosen legacy release from the release series array in the Admin UI when choosing to 'Edit' a legacy link. I've left in a lot of the changes where it doesn't need to be present though. For example, it's removed from ReleaseSeriesItemViewModel so it's no longer exposed to the public frontend. It's also removed from ReleaseSeriesItemUpdateRequest where supplying with each entry in the update made no difference, since we replace all the entries in the old value of ReleaseSeries with an entirely new set of entries.

  2. I changed the building of the view model in PublicationService.GetReleaseSeries to be built from a Release rather than ReleaseVersion which is possible now the fields Title and Slug have moved to Release. This also makes things a bit clearer in test code where we can compare fields in the view model with expected releases, rather than release versions.

@benoutram benoutram force-pushed the EES-5656_Release_Series_Tidyup branch from f7024c1 to 2ecefe3 Compare December 9, 2024 15:31
@benoutram benoutram force-pushed the EES-5656_Release_Series_Tidyup branch from 2ecefe3 to 504166c Compare December 9, 2024 18:19
@benoutram benoutram requested a review from mmyoungman December 9, 2024 18:32
@benoutram benoutram merged commit 2116dcf into dev Dec 10, 2024
8 checks passed
@benoutram benoutram deleted the EES-5656_Release_Series_Tidyup branch December 10, 2024 09:56
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