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

DDCNL-9390 Changed OneLogin calls to use new test route #186

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Nj147
Copy link
Contributor

@Nj147 Nj147 commented Oct 15, 2024

No description provided.

pascal22p
pascal22p previously approved these changes Oct 22, 2024
grantrobson
grantrobson previously approved these changes Oct 23, 2024
Copy link
Contributor

@grantrobson grantrobson left a 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.

@Nj147 Nj147 dismissed stale reviews from grantrobson and pascal22p via ddad92b November 1, 2024 11:57
(response.json \ "credentials").as[List[Creds]]

Right(listOfCreds.map { x =>
x.caUserId
Copy link
Contributor Author

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 :(

Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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

@platops-pr-bot
Copy link

@platops-pr-bot
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants