You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-09-12] [$250] Workspace - Workspace profile page becomes grayed out when go offline #47260
Version Number: 9.0.19-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):gocemate+a919@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Login with gmail account
Create workspace
Go offline
Go to workspace profile page
Expected Result:
Workspace profile page should not be grayed out since the workspace was created in online mode
Actual Result:
Workspace profile page becomes grayed out when user goes offline
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
What changes do you think we should make in order to solve the problem?
Actually, there's no need to include these lines because we're not waiting for a backend response for them. The backend response here doesn’t return a description or general settings, so we can safely remove these two lines.
changed the title [-]Workspace - Workspace profile page becomes grayed out when go offline[/-][+][$250] Workspace - Workspace profile page becomes grayed out when go offline[/+]on Aug 13, 2024
Edited by proposal-police: This proposal was edited at 2024-08-14 11:16:16 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace profile page becomes grayed out when user goes offline
What is the root cause of that problem?
In this PR, we plan to just add generalSettings: CONST.RED_BRICK_ROAD_PENDING_ACTION, but description: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD, is also added.
And these pendingFields are not cleared in successData and failureData:
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
changed the title [-][$250] Workspace - Workspace profile page becomes grayed out when go offline[/-][+][HOLD for payment 2024-09-12] [$250] Workspace - Workspace profile page becomes grayed out when go offline[/+]on Sep 9, 2024
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:
[@shubham1206agra] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: Not Required
[@shubham1206agra] Determine if we should create a regression test for this bug. No
[@shubham1206agra] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Aug 12, 2024
Triggered auto assignment to @puneetlath (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Aug 12, 2024
@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
lanitochka17 commentedon Aug 12, 2024
We think that this bug might be related to #vip-vsb
Krishna2323 commentedon Aug 12, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace - Workspace profile page becomes grayed out when go offline
What is the root cause of that problem?
Pending fields are not cleared in success data.
App/src/libs/actions/Policy/Policy.ts
Lines 1596 to 1602 in 5d57ae8
App/src/libs/actions/Policy/Policy.ts
Lines 1673 to 1677 in 5d57ae8
What changes do you think we should make in order to solve the problem?
Clear pending fields in success data for
generalSettings&descriptionalso.What alternative solutions did you explore? (Optional)
Nodebrute commentedon Aug 12, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace profile page becomes grayed out when go offline
What is the root cause of that problem?
We add these pendingFields in optimistic data
App/src/libs/actions/Policy/Policy.ts
Lines 1600 to 1601 in 659011e
But we do not remove them in Success data
App/src/libs/actions/Policy/Policy.ts
Lines 1600 to 1601 in 659011e
What changes do you think we should make in order to solve the problem?
Actually, there's no need to include these lines because we're not waiting for a backend response for them. The backend response here doesn’t return a description or general settings, so we can safely remove these two lines.
App/src/libs/actions/Policy/Policy.ts
Lines 1600 to 1601 in 659011e
What alternative solutions did you explore? (Optional)
[-]Workspace - Workspace profile page becomes grayed out when go offline[/-][+][$250] Workspace - Workspace profile page becomes grayed out when go offline[/+]melvin-bot commentedon Aug 13, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0182138e49511ea4ac
melvin-bot commentedon Aug 13, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (
External)dominictb commentedon Aug 14, 2024
Edited by proposal-police: This proposal was edited at 2024-08-14 11:16:16 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace profile page becomes grayed out when user goes offline
What is the root cause of that problem?
In this PR, we plan to just add
generalSettings: CONST.RED_BRICK_ROAD_PENDING_ACTION, butdescription: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,is also added.And these pendingFields are not cleared in
successDataandfailureData:App/src/libs/actions/Policy/Policy.ts
Lines 1673 to 1677 in 5d57ae8
What changes do you think we should make in order to solve the problem?
in:
App/src/libs/actions/Policy/Policy.ts
Line 2254 in 5d57ae8
and
in:
App/src/libs/actions/Policy/Policy.ts
Line 2321 in 5d57ae8
outputCurrencyandaddressinstead of usinggeneralSettings. So we need to add these pending to:App/src/libs/actions/Policy/Policy.ts
Line 1596 in 5d57ae8
and then also clear these in
successDataandfailureData.What alternative solutions did you explore? (Optional)
App/src/libs/actions/Policy/Policy.ts
Lines 1596 to 1602 in 5d57ae8
then update:
App/src/pages/workspace/WorkspaceProfilePage.tsx
Line 199 in 5d57ae8
Similar logic should applied to:
App/src/pages/workspace/WorkspaceProfilePage.tsx
Line 214 in 5d57ae8
App/src/pages/workspace/WorkspaceProfilePage.tsx
Line 232 in 5d57ae8
App/src/pages/workspace/WorkspaceProfilePage.tsx
Line 252 in 5d57ae8
30 remaining items
melvin-bot commentedon Aug 27, 2024
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
shubham1206agra commentedon Sep 7, 2024
@trjExpensify Can you add label for payment on 12th September?
[-][$250] Workspace - Workspace profile page becomes grayed out when go offline[/-][+][HOLD for payment 2024-09-12] [$250] Workspace - Workspace profile page becomes grayed out when go offline[/+]trjExpensify commentedon Sep 10, 2024
@puneetlath has actioned on that, I've added the
Awaiting paymentlabel as well now.puneetlath commentedon Sep 13, 2024
I've paid @Krishna2323.
@shubham1206agra can you please complete the checklist?
shubham1206agra commentedon Sep 13, 2024
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:
puneetlath commentedon Sep 13, 2024
Ok great. All paid. Thanks everyone!