-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Persist failed personal details when adding workspace member #23947
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
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
| * 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 |
eVoloshchak
left a comment
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
+916541237890for example)Offline tests
N/A
QA Steps
+916541237890for example)PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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