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

Split charging data job; rtns, mod logs and other #1018

Merged
merged 6 commits into from
Sep 3, 2024

Conversation

Cruikshanks
Copy link
Member

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

Part of the work to migrate management of return requirements from NALD to WRLS

For reasons detailed in Add return requirements clean up step to import, we need to add a new step to the existing 'charging-data' job. But the job itself is already a bit of a mess.

  • it is called 'charging-data' but doesn't do that any more
  • it brings in fixed reference data, return versions and mod logs all in one go

We know this will soon be ditched, but it is a right-old mess. We could stop some of the stuff right now and split out the rest to make it much clearer which bit is doing what. This wouldn't be much more effort than slotting a new step into the mess.

So, in this change, we perform some much-needed tidying up of the 'charging-data job'. This should make the change in PR #1017 much easier!

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

> Part of the work to migrate management of return requirements from NALD to WRLS

For reasons detailed in [Add return requirements clean up step to import](#1017) we need to add a new step into the existing 'charging-data' job. But the job itself is already a bit of a mish-mash.

- it is called 'charging-data' but doesn't do that any more
- it brings in fixed reference data, return versions and mod logs all in one go

We know this will soon be ditched, but it is a right old mess as it is. We could be stopping some of the stuff right now, and split out the rest to make it a lot clearer as to what bit is doing what. This wouldn't be much more effort than trying to slot a new step into the existing mess.

So, this change we perform some much needed tidying up of the 'charging-data job'. This should make the change in PR #1017 much easier!
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Sep 2, 2024
@Cruikshanks Cruikshanks self-assigned this Sep 2, 2024
We ensure we have an endpoint that allows us to trigger the job still, whilst dropping some of the noise and mess that previous job unnecessarily had.
What remains in the charging data job is just populating fixed reference data. There is no need to do this as this information never changes.

We leave the job just in case we need to trigger it. But we stop updating these tables on a nightly basis for no reason.
Use what we default them to in the examples. Also reorder them in time order
@Cruikshanks Cruikshanks marked this pull request as ready for review September 3, 2024 08:01
@Cruikshanks Cruikshanks merged commit 74009d8 into main Sep 3, 2024
3 of 4 checks passed
@Cruikshanks Cruikshanks deleted the split-charging-data-job-up branch September 3, 2024 08:01
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