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 more missing attributes to registrations #223

Merged
merged 4 commits into from
Jul 30, 2018

Conversation

irisfaraway
Copy link
Member

@irisfaraway irisfaraway commented Jul 27, 2018

This PR adds a few more missing attributes to the registrations. These are attributes which are occasionally used in waste-carriers-frontend or waste-carriers-service.

Since waste-carriers-service is the one interacting with the DB, I focused on its attributes over the frontend (which has several temporary ones which are not persisted, so hopefully irrelevant).

I also alphabetised the list of attributes as it was getting a bit unwieldy.

This attribute includes the original date of expiry for former IR registrations.
@irisfaraway irisfaraway self-assigned this Jul 27, 2018
This is used in the waste-carriers-frontend and waste-carriers-service.
The list of attributes continues to grow and is getting disorderly. So let's just alphabetise it so it's easier to find or add stuff.
@irisfaraway irisfaraway changed the title Add originalDateExpiry attribute to registrations Add missing attributes to registrations Jul 27, 2018
@irisfaraway irisfaraway changed the title Add missing attributes to registrations Add more missing attributes to registrations Jul 27, 2018
waste-carriers-frontend calls this attribute companyNo. However the waste-carriers-service uses a snake_case version, and that is what is actually saved to the database.

We aliased this anyway, so luckily it's a quick fix.
irisfaraway added a commit to DEFRA/waste-carriers-front-office that referenced this pull request Jul 27, 2018
@irisfaraway
Copy link
Member Author

The company_no change required an additional fix in DEFRA/waste-carriers-front-office#21

@irisfaraway irisfaraway merged commit 933a047 into master Jul 30, 2018
@irisfaraway irisfaraway deleted the fix/add-more-missing-fields branch July 30, 2018 08:50
irisfaraway added a commit to DEFRA/waste-carriers-front-office that referenced this pull request Jul 30, 2018
* Fix seeding after field renaming

We renamed some fields from camelCase to snake_case after the Java 8 upgrade on waste-carriers-service. Now that the model has been updated, the seeds need to be modified too.

* Rename companyNo to company_no

See DEFRA/waste-carriers-engine#223 for further details.
@irisfaraway irisfaraway added the bug Something isn't working label Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants