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 testing endpoint for supplementary flags #1440

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Conversation

Beckyrose200
Copy link
Contributor

@Beckyrose200 Beckyrose200 commented Oct 23, 2024

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

Recently, a PR was raised to create a testing endpoint for flagging a licence for supplementary billing during the import service. This process looks at the licence end dates and determines what flags should be added to the licence. During testing, the feature wasn't working as expected.

After some investigation, it turns out that the testing endpoint wasn't configured correctly. When the arguments are passed in the body of the request, it converts everything to a String. This means the data we are mocking is in a String data type and not a Date data type. We need the object to be a Date type as during the import that is what would be fetched from the db.

This PR fixed the object before being passed to the supplementary flagging process.

Recently a PR was raised to create a testing endpoint for the process of flagging a licence for supplementary billing during the import service. This looks at the licence end dates and works out what if any flags should be added to the licence. During testing the feature wasn't working as expected. After some investigation, it turns out that the testing endpoint wasn't confured correctly. When the arguments are passed in the body of the request it converts everything to String. This means the data we are mocking is in a String data type and not a Date data type, which it would be during the actual import. This PR fixed the object before being passed to the supplementary flagging process.
@Beckyrose200 Beckyrose200 added the bug Something isn't working label Oct 23, 2024
@Beckyrose200 Beckyrose200 self-assigned this Oct 23, 2024
@Beckyrose200 Beckyrose200 marked this pull request as ready for review October 23, 2024 11:03
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the PR description with a link to the relevant Jira ticket, and ensure it is included as part of the squashed merge?

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

All good though!

@Beckyrose200 Beckyrose200 merged commit 8bc028d into main Oct 23, 2024
6 checks passed
@Beckyrose200 Beckyrose200 deleted the fix-testing-end-point branch October 23, 2024 11:14
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.

3 participants