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

Housekeeping for create bill run validator #390

Merged
merged 4 commits into from
Aug 29, 2023

Conversation

Cruikshanks
Copy link
Member

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

WATER-4092 will require us to add a new 'validator'. These modules contain Joi schemas we use to check inbound request payloads.

Whilst working on Add new billing account change address validator we spotted a few things we wanted to change on the existing validator. As we only have one, now seemed a good time to make the changes.

  • fix the test filename (we'd omitted .test)
  • move it out of the /bill-runs folder

On that last one, similar to Refactor controllers out of folders if we find we have lots of validators in the future we'll likely move them into folders. But right now it feels pre-emptive.

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

WATER-4092 will require us to add a new 'validator'. These are the modules that contain [Joi](https://joi.dev/) schemas we use to check inbound request payloads.

Whilst working on [Add new billing account change address validator](#383) we spotted a few things we wanted to change on the existing validator. As we only have the one, now seemed a good time to make the changes.

- fix the test filename (we'd omitted `.test`)
- move it out of the `/bill-runs` folder

On that last one, similar to [Refactor controllers out of folders](#368) if we find we have lots of validators in the future we'll likely move them into folders. But right now it feels pre-emptive.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Aug 29, 2023
@Cruikshanks Cruikshanks self-assigned this Aug 29, 2023
We'll think about moving it into folders when we have a few more to work with.
@Cruikshanks Cruikshanks marked this pull request as ready for review August 29, 2023 11:26
@Cruikshanks Cruikshanks merged commit 35d116d into main Aug 29, 2023
@Cruikshanks Cruikshanks deleted the housekeeping-create-bill-run-validator branch August 29, 2023 12:53
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.

2 participants