Report - Error message when trying to change report Workspace after clearing cache#73804
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 177 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Review SummaryI've reviewed the changes in this PR. I found several concerns regarding code consistency and potential synchronization issues: Key Issues:
Recommendation: |
|
LGTM |
| // This will be fixed as part of https://github.com/Expensify/Expensify/issues/507850 | ||
| // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
| } else if (isExpenseReport(report) && isPolicyAdmin(policy) && report.ownerAccountID && !isPolicyMember(policy, getLoginByAccountID(report.ownerAccountID))) { | ||
| } else if (!shouldSkip && isExpenseReport(report) && isPolicyAdmin(policy) && report.ownerAccountID && !isPolicyMember(policy, getLoginByAccountID(report.ownerAccountID))) { |
There was a problem hiding this comment.
@thelullabyy Why are we not implementing the statement mentioned here?
There was a problem hiding this comment.
I've updated PR to align with the selected approach @rojiphil
There was a problem hiding this comment.
@thelullabyy Looks like we have the following problem:
Precondition:
User U1 Workspaces W1 and W2
User U2 is a member of W1 but not of W2.
Steps:
- User U2 creates an expense for W1 thereby creating an expense report E1.
- User U1 changes the workspace for expense report E1 to W2.
- Observation:
ChangeReportPolicyis called.
ChangeReportPolicyAndInviteSubmitteris expected
73804-web-chrome-issue.mp4
|
@thelullabyy Does the following change make sense? |
|
@rojiphil I just updated the PR. Your suggestion work fine for me |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp73804-android-hybrid-001.mp4Android: mWeb Chrome73804-mweb-chrome-002.mp4iOS: HybridApp73804-ios-hybrid-001.mp4iOS: mWeb Safari73804-mweb-safari-002.mp4MacOS: Chrome / Safari73804-web-chrome-003.mp4MacOS: Desktop73804-desktop-001.mp4 |
rojiphil
left a comment
There was a problem hiding this comment.
Thanks @thelullabyy for the updated PR.
@Julesssss Code changes LGTM and the correct api is called now.
All yours. Thanks.
JmillsExpensify
left a comment
There was a problem hiding this comment.
These improvements around changing expense/report workspaces look good from a product perspective.
|
✋ 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/Julesssss in version: 9.2.47-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.47-1 🚀
|
Explanation of Change
Fixed Issues
$ #69320
PROPOSAL: #69320 (comment)
Tests
Prerequisite: The account must have at least two workspaces available: W1 (default workspace) and W2.
Offline tests
QA Steps
Prerequisite: The account must have at least two workspaces available: W1 (default workspace) and W2.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
android.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.1.mov
MacOS: Desktop
desktop.mov