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

Add relation mapping to LicenceModel #1305

Merged
merged 4 commits into from
Sep 3, 2024
Merged

Conversation

Jozzey
Copy link
Contributor

@Jozzey Jozzey commented Sep 3, 2024

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

In order to get the data required to display the two-part tariff supplementary banner, the query in app/services/licences/fetch-licence.service.js is going to be updated to include data from the licence_supplementary_years table.

However, whilst there is currently a relation mapping to the 'LicenceModel' from the LicenceSupplementaryYearModel. There is no relation mapping to the LicenceSupplementaryYearModel from the LicenceModel. This mapping will be added in this PR.

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

In order to get the data required to display the two-part tariff supplementary banner the query in `app/services/licences/fetch-licence.service.js` is going to be updated to include data from the `licence_supplementary_years` table.

However, whilst there is currently a relation mapping to the 'LicenceModel' from the `LicenceSupplementaryYearModel`. There is no relation mapping to the `LicenceSupplementaryYearModel` from the `LicenceModel` so it will be added in this PR.
@Jozzey Jozzey added the enhancement New feature or request label Sep 3, 2024
@Jozzey Jozzey self-assigned this Sep 3, 2024
@Jozzey Jozzey marked this pull request as ready for review September 3, 2024 14:15
@Jozzey Jozzey merged commit 434e908 into main Sep 3, 2024
6 checks passed
@Jozzey Jozzey deleted the add-relation-to-licence-model branch September 3, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants