-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-08-07] [$250] Workspace - Profile page is not grayed out when workspace is created offline and name is edited #46053
Comments
Triggered auto assignment to @kadiealexander ( |
Triggered auto assignment to @bondydaa ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Issue is not reproducible in Production: bandicam.2024-07-23.19-37-57-636.mp4 |
We think that this bug might be related to #wave-collect - Release 1 |
Job added to Upwork: https://www.upwork.com/jobs/~018594720711f70e58 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
won't have anything to do with backend code if this is offline specific behavior |
@bondydaa, I believe this regression from https://github.com/Expensify/App/pull/45820/files. |
@Tony-MK have you reverted locally and tested yet? |
i just reverted it locally and confirmed. @Tony-MK do you see any other fixes or should we just push a revert PR? |
I don’t think it’s related to this PR. I’ll start checking now. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The profile page is not grayed out What is the root cause of that problem?We're only merging the name of the policy if we update the name while the create WS request is waiting. So the App/src/libs/actions/Policy/Policy.ts Lines 1121 to 1125 in b21a694
What changes do you think we should make in order to solve the problem?We should merge all optimistic data here instead of only merging the name of the policy.
App/src/libs/actions/Policy/Policy.ts Lines 1121 to 1125 in b21a694
What alternative solutions did you explore? (Optional)ResultScreen.Recording.2024-07-24.at.00.38.15.mov |
Hi @suneox @bondydaa , Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, {
name,
+ pendingFields: {
+ ...policy.pendingFields,
+ generalSettings: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
+ },
}); |
@Tony-MK thank you for your proposal but based on the scope of the PR, we are only preventing the call to update the workspace name by this condition checking if the name has changed while there is still a create request pending. Therefore, we don’t need to merge all the optimistic data for updating the workspace name into the current policy.
I also agree that it is unnecessary. We just need to update based on the suggestion by the PR owner. So I have updated my comment to pick a simpler approach. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Profile page is not grayed out when workspace is created offline and name is edited What is the root cause of that problem?We updated the policy name, skipped calling the update workspace function while offline, and optimisticData isn't being updated. Here is the code handle I mentioned: App/src/libs/actions/Policy/Policy.ts Lines 1107 to 1133 in 1084706
What changes do you think we should make in order to solve the problem?To ensure consistent behavior, we will gray out the profile when creating a workspace in offline mode and add // App/blob/main/src/libs/actions/Policy/Policy.ts#L1564
pendingFields: {
autoReporting: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
approvalMode: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
reimbursementChoice: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
+ generalSettings: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD
}, POC
Screen.Recording.2024-07-24.at.13.12.51.movWhat alternative solutions did you explore? (Optional) |
The PR author has the simplest solution. 👍 |
📣 @huult 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
ok assigning @huult to fix since it was a regression from their PR. thank you all for the help! |
Here’s my PR for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.14-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-08-07. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
BugZero Checklist
|
Hey @kadiealexander, due to identifying the pull request that introduced this issue, I am eligible for payment? Thanks |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.11-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Issue found when executing PR #45820
Action Performed:
Expected Result:
The profile page is grayed out
Actual Result:
The profile page is not grayed out
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6550619_1721747216180.2024-07-23_17_53_43.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kadiealexanderThe text was updated successfully, but these errors were encountered: