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-11-13] [$250] Workflows - Edit approval workflow becomes blank after editing it offline and returning online #51468
What changes do you think we should make in order to solve the problem?
APPROVAL_WORKFLOW is where we save the draft approval workflow until we save the workflow so no need to reset it in success data it should be reset in optimistic data immediately so that it would be used by the next approval modification
We should remove the successData and failureData for APPROVAL_WORKFLOW and only reset it in optimistic data here
changed the title [-]Workflows - Edit approval workflow becomes blank after editing it offline and returning online[/-][+][$250] Workflows - Edit approval workflow becomes blank after editing it offline and returning online[/+]on Oct 29, 2024
changed the title [-][$250] Workflows - Edit approval workflow becomes blank after editing it offline and returning online[/-][+][HOLD for payment 2024-11-13] [$250] Workflows - Edit approval workflow becomes blank after editing it offline and returning online[/+]on Nov 6, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.57-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@s77rt@VictoriaExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: n/a
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Workspace with Workflow feature enabled
Test:
Go to Workspace > Workflows
Enable "Add approvals"
Go offline
Click on the default approval workflow
Change the approver (then click Save twice till the modal is dismissed)
Click on the default approval workflow
Go online
Verify that the page remain unchanged and not blank
Activity
melvin-bot commentedon Oct 25, 2024
Triggered auto assignment to @VictoriaExpensify (
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.izarutskaya commentedon Oct 25, 2024
We think this issue might be related to the #wave-control
FitseTLT commentedon Oct 25, 2024
Edited by proposal-police: This proposal was edited at 2024-10-25 13:34:27 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workflows - Edit approval workflow becomes blank after editing it offline and returning online
What is the root cause of that problem?
We are re-setting
APPROVAL_WORKFLOWon success data hereApp/src/libs/actions/Workflow.ts
Lines 175 to 179 in a86ee35
so when we go online and the request completes successfully it deletes approval workflow so we see blank page as there is nothing to show
App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsEditPage.tsx
Lines 135 to 136 in a86ee35
What changes do you think we should make in order to solve the problem?
APPROVAL_WORKFLOW is where we save the draft approval workflow until we save the workflow so no need to reset it in success data it should be reset in optimistic data immediately so that it would be used by the next approval modification
We should remove the successData and failureData for APPROVAL_WORKFLOW and only reset it in optimistic data here
App/src/libs/actions/Workflow.ts
Lines 143 to 145 in a86ee35
We should do the same in other places like here
here
isLoadingis unnecessary and we will remove it from APPROVAL_WORKFLOWWhat alternative solutions did you explore? (Optional)
melvin-bot commentedon Oct 28, 2024
@VictoriaExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
VictoriaExpensify commentedon Oct 29, 2024
Oh yes, this is a problem and we should fix it
[-]Workflows - Edit approval workflow becomes blank after editing it offline and returning online[/-][+][$250] Workflows - Edit approval workflow becomes blank after editing it offline and returning online[/+]melvin-bot commentedon Oct 29, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021851096096588176267
20 remaining items
[-][$250] Workflows - Edit approval workflow becomes blank after editing it offline and returning online[/-][+][HOLD for payment 2024-11-13] [$250] Workflows - Edit approval workflow becomes blank after editing it offline and returning online[/+]melvin-bot commentedon Nov 6, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 6, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.57-10 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-11-13. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Nov 6, 2024
@s77rt @VictoriaExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
s77rt commentedon Nov 6, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: [No QA][CRITICAL] [Advanced Approval Workflows] Implement Onyx Actions (API calls & Onyx writes) #46189 (comment)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: n/a
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
VictoriaExpensify commentedon Nov 13, 2024
Hey @s77rt - I think this sounds like it could do with a regression test, do you agree? If so, can you please add it to the template above?
s77rt commentedon Nov 13, 2024
@VictoriaExpensify Added!
VictoriaExpensify commentedon Nov 14, 2024
Added to TestRail - https://github.com/Expensify/Expensify/issues/444049
VictoriaExpensify commentedon Nov 14, 2024
Payment summary:
Contributor: @FitseTLT paid $250 via Upwork
Contributor+: @s77rt owed $250 via New Expensify
JmillsExpensify commentedon Nov 14, 2024
$250 approved for @s77rt