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

Fetch conditions from licence summary service #1149

Merged
merged 13 commits into from
Jun 30, 2024

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/WATER-4322

Part of the work to replace the legacy view licence page

The ViewLicenceSummaryService is calling FetchLicenceAbstractionConditionsService and FetchLicenceSummaryService and then passing both results to the presenter.

Having checked, it is the only service using FetchLicenceAbstractionConditionsService and we don't really need the data preparation it is doing.

If the relationship was added between LicenceVersionPurposeModel and LicenceVersionPurposeConditionModel we could get everything we need from the FetchLicenceSummaryService!

So, this change makes that so.

https://eaflood.atlassian.net/browse/WATER-4322

> Part of the work to replace the legacy view licence page

The `ViewLicenceSummaryService` is calling `FetchLicenceAbstractionConditionsService` and `FetchLicenceSummaryService` and then passing both results to the presenter.

Having checked, it is the only service using `FetchLicenceAbstractionConditionsService` and we don't really need the data preparation it is doing.

If the relationship was added between `LicenceVersionPurposeModel` and `LicenceVersionPurposeConditionModel` we could get everything we need from the `FetchLicenceSummaryService`!

So, this change makes that so.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Jun 28, 2024
@Cruikshanks Cruikshanks self-assigned this Jun 28, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review June 30, 2024 19:12
@Cruikshanks Cruikshanks merged commit e087bb8 into main Jun 30, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the link-licence-version-purpose-to-conditions branch June 30, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant