-
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
DDCNL-9390 Changed OneLogin calls to use new test route #186
base: main
Are you sure you want to change the base?
Conversation
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.
lgtm, however I can't pretend to fully understand what's going on here tbh but if it's been tested + works I'm ok with it.
(response.json \ "credentials").as[List[Creds]] | ||
|
||
Right(listOfCreds.map { x => | ||
x.caUserId |
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.
I'm sure there's a better way of doing this, but my Friday afternoon brain cannot figure out what it is :(
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.
Well x => x can be changed to just _ for a start
_ <- enrolmentStoreServiceTestOnly.insertAccount(account) | ||
_ <- account.enrolments.map(enrolment => enrolmentStoreServiceTestOnly.upsertEnrolment(enrolment)).sequence | ||
eacdIds <- identityProviderAccountContextConnectorTestOnly.getEacdIds(account.nino.nino) | ||
_ <- eacdIds.map(id => oneLoginStubConnectorTestOnly.deleteAccount(id)).sequence |
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.
delete within insert account details?
Should not it be in the delete account details method?
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.
Yep should have been, moved it but there's issues with it because the postIndividual doesn't have a working test only which we need to get the eacdIds with the nino so I've asked OL team about getting that added or an alternative way to delete them. So will probably be a 2025 job
|
|
No description provided.