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

Rename services/billing to bill-runs #516

Merged
merged 2 commits into from
Nov 12, 2023
Merged

Conversation

Cruikshanks
Copy link
Member

It was noted during a pairing session that the name app/services/billing is inconsistent with our current convention.

For example, we have a /bills endpoint determined by bills.routes.js. Requests to that endpoint are handled by bills.controller.js which in turn refers to services in app/services/bills.

The /bill-runs endpoint follows this convention until you get to the services folder. Then everything it references is found in app/services/billing.

We know why this is; handling SROC supplementary billing was our first major feature on this service and everything seemed to be called BillingSomething!

But as we are in the process of delivery our next major billing feature (two-part tariff bill runs) now seems a good time to correct the folder name and make it consistent.

It was noted during a pairing session that the name `app/services/billing` is inconsistent with our current convention.

For example, we have a `/bills` endpoint determined by `bills.routes.js`. Requests to that endpoint are handled by `bills.controller.js` which in turn refers to services in `app/services/bills`.

The `/bill-runs` endpoint follows this convention until you get to the services folder. Then everything it references is found in `app/services/billing`.

We know why this is; handling SROC supplementary billing was our first major feature on this service and _everything_ seemed to be called **BillingSomething**!

But as we are in the process of delivery our next major billing feature (two-part tariff bill runs) now seems a good time to correct the folder name and make it consistent.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Nov 12, 2023
@Cruikshanks Cruikshanks self-assigned this Nov 12, 2023
@Cruikshanks Cruikshanks marked this pull request as ready for review November 12, 2023 17:11
@Cruikshanks Cruikshanks merged commit 536edc6 into main Nov 12, 2023
4 checks passed
@Cruikshanks Cruikshanks deleted the rename-billing-to-bill-runs branch November 12, 2023 17:11
Cruikshanks added a commit that referenced this pull request Nov 22, 2023
It was spotted that `app/services/billing` was inconsistent with our naming convention so we [sorted that](#516).

Only we didn't spot that `services/billing` was using things in `presenters/billing`. Doh!

So, this change also corrects the presenters folder to, hopefully, get everything inline.
Cruikshanks added a commit that referenced this pull request Nov 22, 2023
It was spotted that `app/services/billing` was inconsistent with our naming convention so we [sorted that](#516).

Only we didn't spot that `services/billing` was using things in `presenters/billing`. Doh!

So, this change also corrects the presenters folder to, hopefully, get everything in line.
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