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

Fix - Delete licence with invalid leading space #2417

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

Cruikshanks
Copy link
Member

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

It looks like the water-abstraction-import has managed to import a duplicate NALD licence record (again!) this time because it differs from an existing one due to a leading space.

The Billing & Data team can clean up NALD by removing the problem record. But now it's been created in our DB the only way to remove it is with a migration. Until we remove it any searches where NW/075/0012/011 appears in the results cause an error.

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

It looks like the [water-abstraction-import](https://github.com/DEFRA/water-abstraction-import) has managed to import a duplicate NALD licence record (again!) this time because it differs from an existing one due to a leading space.

The Billing & Data team can clean up NALD by removing the problem record. But now it's been created in our DB the only way to remove it is with a migration. Until we remove it any searches where `NW/075/0012/011` appears in the results cause an error.
@Cruikshanks Cruikshanks added the bug Something isn't working label Feb 7, 2024
@Cruikshanks Cruikshanks self-assigned this Feb 7, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review February 7, 2024 12:50
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.

@Cruikshanks Cruikshanks merged commit 8456843 into main Feb 7, 2024
4 checks passed
@Cruikshanks Cruikshanks deleted the fix-delete-corrupt-licence branch February 7, 2024 13:04
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