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

PUB-2249 - Refactor MI Endpoints to use Models #450

Merged
merged 18 commits into from
Dec 13, 2024
Merged

PUB-2249 - Refactor MI Endpoints to use Models #450

merged 18 commits into from
Dec 13, 2024

Conversation

NatashaAlker
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/PUB-2249

Change description

Update MI endpoints to use data models rather than strings

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

@NatashaAlker NatashaAlker changed the base branch from master to freeze November 15, 2024 09:15
);

assertEquals(6, miData.size(), VALIDATION_MI_REPORT);
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't understand why is this has a size 6. Does it reply on the data from other tests in this class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an error on my part - I added it as part of debugging for the test below and forgot to remove it. Have removed now :)

@Query("SELECT new uk.gov.hmcts.reform.pip.model.report.AccountMiData("
+ "u.userId, u.provenanceUserId, u.userProvenance, u.roles, u.createdDate, u.lastSignedInDate) "
+ "FROM PiUser u")
List<AccountMiData> getAccManDataForMI();
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not your change but while you are there are you OK to rename the method name to something like getAccountDataForMi() or getMiData() or getAccountMiData(), etc.? 'AccMan' does not sound good :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done :)

Base automatically changed from freeze to master November 29, 2024 10:33
@ChrisS1512 ChrisS1512 merged commit ed646e9 into master Dec 13, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants