-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[SAML NewDot][CP Staging] Hide SAML changes behind beta #29798
Conversation
@ Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@@ -273,4 +276,5 @@ export default withOnyx({ | |||
We use that function to prevent repeating code that checks which client is the leader. | |||
*/ | |||
activeClients: {key: ONYXKEYS.ACTIVE_CLIENTS}, | |||
betas: {key: ONYXKEYS.BETAS}, |
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.
Can't we use withBetas()
instead?
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 only see src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js
using it that was atm
Deploying with Cloudflare Pages
|
This part doesn't make sense but I also don't know where we're at with implementing SAML in NewDot overall, checking with @sakluger if he has more context. |
Do we need a beta? What's the worst thing that happens without a beta? SAML users can't log into NewDot anyways, so worst case if we launch without a beta is that SAML required people get a different error than they get today, right? |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
Yeah also I don't think this works, at least it doesn't work for me, and I don't see any evidence in the (lack of) PR screenshots that it does. Betas don't seem to be loaded in Onyx yet when we run the check, so the |
Worst thing is that they'll try to sign in and end up in oldDot sign in page for SAML enabled users For SAML required users they'll try to log in but won't see an error message but also won't be able to log in |
This is fine for now IMO, I'd rather we don't show any users the broken flow than do |
Opted against this |
Details
Hides SAML changes behind a beta so we can test this safely on prod
Fixed Issues
$ N/A - tied to #28372
PROPOSAL: N/A
Tests
Try to log into a SAML enabled account (that is a non-expensifail account) and confirm you're only given the option for a magic code login
Try logging into a SAML required account (that is a non-expensifail account) and confirm you're unable to do so
Offline tests
N/A
QA Steps
Same as test steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2023-10-18.at.00.07.54.mov
MacOS: Desktop