Fix not found page display briefly after deleting the workspace#31255
Conversation
|
@hoangzinh 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] |
|
|
||
| // We should check both policy and prevPolicy to prevent not found page appearing after we delete the workspace and navigate | ||
| // eslint-disable-next-line rulesdir/no-negated-variables | ||
| const shouldShowNotFoundPage = _.isEmpty(policy) || !PolicyUtils.isPolicyAdmin(policy) || (PolicyUtils.isPendingDeletePolicy(policy) && PolicyUtils.isPendingDeletePolicy(prevPolicy)); |
There was a problem hiding this comment.
Can you add more details to the comment or only put (PolicyUtils.isPendingDeletePolicy(policy) && PolicyUtils.isPendingDeletePolicy(prevPolicy)) in a variable and comment it? The current comment is confusing me, some people will ask why don't we check prevPolicy for _.isEmpty(policy) || !PolicyUtils.isPolicyAdmin(policy)
hoangzinh
left a comment
There was a problem hiding this comment.
Overal looks good, just one small feedbac
Co-authored-by: Vinh Hoang <hoangzinhvn@gmail.com>
|
@hoangzinh Updated. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-14.at.23.29.17.mp4Android: mWeb ChromeScreen.Recording.2023-11-14.at.23.21.59.-.android.chrome.moviOS: NativeScreen.Recording.2023-11-14.at.23.03.02.-.ios.mp4iOS: mWeb SafariScreen.Recording.2023-11-14.at.23.16.41.-.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2023-11-14.at.23.00.36.-.web.movMacOS: DesktopScreen.Recording.2023-11-14.at.23.24.25.-.desktop.mov |
|
✋ 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/amyevans in version: 1.3.99-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.99-0 🚀
|
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.4.0-0 🚀
|
Details
Fix not found page display briefly after deleting the workspace
Fixed Issues
$ #30100
PROPOSAL: #30100 (comment)
Tests
Offline tests
Same as above
QA Steps
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)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
Android: Native
Screen.Recording.2023-11-13.at.10.20.18.mov
Android: mWeb Chrome
Screen.Recording.2023-11-13.at.10.12.38.mov
iOS: Native
Screen.Recording.2023-11-13.at.10.22.04.mov
iOS: mWeb Safari
Screen.Recording.2023-11-13.at.10.08.19.mov
MacOS: Chrome / Safari
Screen.Recording.2023-11-13.at.10.06.18.mov
MacOS: Desktop
Screen.Recording.2023-11-13.at.10.28.30.mov