-
Notifications
You must be signed in to change notification settings - Fork 320
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
OKTA-747278 : Enable polling on OV same device enroll setup view #3699
OKTA-747278 : Enable polling on OV same device enroll setup view #3699
Conversation
} else if (contextualData.devicebootstrap?.setupOVUrl) { | ||
deviceMap = contextualData.devicebootstrap; | ||
deviceMap = {...contextualData.devicebootstrap}; |
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.
make a copy instead of editing the original transaction contextualData in appState, since this was causing the prevTransaction and new transaction to not be identical, causing the SIW to re-render on every poll.
6e8d8c2
to
17cc5c4
Compare
@@ -65,8 +65,7 @@ const Body = BaseFormWithPolling.extend(Object.assign( | |||
shouldStartPolling = true; | |||
} else if (['samedevice', 'devicebootstrap'].includes(selectedChannel)) { | |||
// no selector if the channel is same device or device bootstrap | |||
// additionally, stop polling as it should be a terminal page | |||
shouldStartPolling = false; | |||
shouldStartPolling = true; |
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.
let't separate out same device and device bootstrap here. OV2OV is not shipping out with this together, so we should keep deviceBootstrap polling as false.
Also, let's make a follow up Jira to get test for it.
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.
follow up jira for test: https://oktainc.atlassian.net/browse/OKTA-798570
Looks like you closed https://github.com/atko-eng/okta-core/pull/99376, will flipping that |
@trevoring-okta oh I closed that PR and I made a new PR here: https://github.com/atko-eng/okta-core/pull/100424. Thanks for catching that I updated the description. |
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.
Looks fine to me from a SIW POV
Description:
This PR enables polling on the OV Same device enrollment setup screen. This allows the SIW to receive the updated response from the backend when enrollment has been completed in the OV app.
Related back-end change: https://github.com/atko-eng/okta-core/pull/100424
PR Checklist
Issue:
Reviewers:
Screenshot/Video:
Downstream Monolith Build: