-
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
Persist failed personal details when adding workspace member #23947
Conversation
@eVoloshchak @ One of you needs to 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] |
…iled-personalDetails
@@ -123,7 +123,6 @@ function getNewPersonalDetailsOnyxData(logins, accountIDs) { | |||
* This is done to prevent duplicate entries (upon success) since the BE will return other personal details with the correct account IDs. | |||
*/ | |||
successData[accountID] = null; | |||
failureData[accountID] = null; |
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 wonder why we did this here... even the comment say we want to prevent dupes on success
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.
Yeah, it's a bit odd
@eVoloshchak friendly bump here 🙇 |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-02.at.14.31.43.movMobile Web - Chromescreen-20230802-143324.mp4Mobile Web - SafariScreen.Recording.2023-08-02.at.14.39.04.movDesktopScreen.Recording.2023-08-02.at.14.39.48.moviOSScreen.Recording.2023-08-02.at.14.38.10.movAndroidscreen-20230802-145456.mp4 |
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.
Tests well
@NikkiWines, thank you for untangling this!
I'll make sure to double-check if PR's are working after being merged, I should have caught this
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.3.50-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.50-3 🚀
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.3.51-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|
cc: @Beamanator since we discussed this in slack
Details
Dedupes some logic due to two groups working in the same code at the same time. Persists personalDetails in onyxData in the event that the API call fails.
Two PRs (#23157 and #22904) were modifying the same code at roughly the same time. #22904 was merged first and #23157 was then merged without pulling main - so the code was duplicated and the intended behavior was slightly conflicting.
Additionally, #22904 introduced logic that removed the optimistically added personal details if the API call failed, which is the opposite of what we wanted in #23157 as those personal details are manually removed when the user addresses the error from the RBR 😅
We are still using part of the logic from #23157
Fixed Issues
$ #22359
PROPOSAL: N/A internal
Tests
+916541237890
for example)Offline tests
N/A
QA Steps
+916541237890
for example)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
Web
Screen.Recording.2023-07-31.at.11.58.26.mov
Mobile Web - Chrome
Simulator.Screen.Recording.-.iPhone.14.-.2023-07-31.at.12.09.19.mp4
Mobile Web - Safari
Screen.Recording.2023-07-31.at.12.11.55.mov
Desktop
Screen.Recording.2023-07-31.at.12.02.13.mov
iOS
Simulator.Screen.Recording.-.iPhone.14.-.2023-07-31.at.12.06.56.mp4
Android
Screen.Recording.2023-07-31.at.12.43.40.mov