-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
); | ||
|
||
assertEquals(6, miData.size(), VALIDATION_MI_REPORT); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done :)
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")