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

Remove redundant fetch for region code in service #866

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

Cruikshanks
Copy link
Member

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

Spotted whilst working on Exclude ended charge versions from 2PT billing that we pass in the region ID to FetchChargeVersionsService but then do an additional query to identify the NALD region code for that region.

We then use the NALD region code to filter the charge versions when we could use the region ID directly.

This change removes the redundant fetch.

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

Spotted whilst working on [Exclude ended charge versions from 2PT billing](#865) that we pass in the region ID to `FetchChargeVersionsService` but then do an additional query to identify the NALD region code for that region.

We then use the NALD region code to filter the charge versions when we could just use the region ID directly.

This change removes the redundant fetch.
Slight tweak to follow the convention now agreed (use a hyphen; `myParam - The widget for the flurgle`).

Also dropped reference to SROC as it is the assumed charge scheme for everything we do. Instead highlight two-part tariff as that is the context this service is used in.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Mar 27, 2024
@Cruikshanks Cruikshanks self-assigned this Mar 27, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review March 27, 2024 15:05
Beckyrose200
Beckyrose200 previously approved these changes Mar 27, 2024
Copy link
Contributor

@Beckyrose200 Beckyrose200 left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@Jozzey Jozzey left a comment

Choose a reason for hiding this comment

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

@Cruikshanks Cruikshanks merged commit ec70854 into main Mar 28, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the remove-redundant-fetch branch March 28, 2024 08:23
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.

3 participants