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
[Due for payment 2025-02-26] [$250] Workflow - Added approval workflow doesn't respond to clicks for editing #49954
Version Number: 9.0.41-4 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):biruknew45+1233@gmail.com Issue reported by: Applause - Internal Team
@isabelastisser 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
changed the title [-]Workflow - Added approval workflow doesn't respond to clicks for editing[/-][+][$250] Workflow - Added approval workflow doesn't respond to clicks for editing[/+]on Oct 1, 2024
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
** @getusha** 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:
@getusha 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:
@getusha 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
@isabelastisser Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[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: N/a
[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.
I think one case is enough since we have the cases covered in a unit test
[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:
Create a workspace
Enable workflows
Add Several members to the workspace
Test:
Navigate to the workspace you just created
Navigate to Workflows
Add approval workflow
Select memberA to "Expenses from"
Select memberB as Approver
Navigate to members page
Remove memberB
Verify that workflow 1 now has the workspace owner as an approver
Press on the workflow
Verify you are navigated to Edit approval workflow page
Activity
melvin-bot commentedon Sep 30, 2024
Triggered auto assignment to @isabelastisser (
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 Sep 30, 2024
@isabelastisser 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 Sep 30, 2024
We think that this bug might be related to #wave-collect - Release 1
Nodebrute commentedon Sep 30, 2024
Edited by proposal-police: This proposal was edited at 2024-09-30 19:16:16 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Added approval workflow doesn't respond to clicks for editing
What is the root cause of that problem?
We are not using optional chaining here
App/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Line 170 in a85cde8
What changes do you think we should make in order to solve the problem?
We should use
workflow.approvers[0]?.emailApp/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Line 170 in a85cde8
Or we can use
workflow?.approvers[0]?.emailWhat alternative solutions did you explore? (Optional)
huult commentedon Oct 1, 2024
truph01 commentedon Oct 1, 2024
IMO, I think this is BE bug. We already set the employeeList properly when removing any member:
App/src/libs/actions/Policy/Member.ts
Lines 296 to 330 in 76c5c81
but after visiting workflow page, the API returns incorrect employee value.
[-]Workflow - Added approval workflow doesn't respond to clicks for editing[/-][+][$250] Workflow - Added approval workflow doesn't respond to clicks for editing[/+]melvin-bot commentedon Oct 1, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021841196137055865155
165 remaining items
isabelastisser commentedon Feb 19, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
** @getusha** 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:
@getusha 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:
@getusha 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
@isabelastisser 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 👎
isabelastisser commentedon Feb 25, 2025
@getusha, please complete the checklist before payment. Thanks!
getusha commentedon Feb 25, 2025
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: N/a
[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.
I think one case is enough since we have the cases covered in a unit test
[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 👎
huult commentedon Feb 27, 2025
@isabelastisser friendly bump for payment 🙏
isabelastisser commentedon Feb 28, 2025
Payment summary:
isabelastisser commentedon Feb 28, 2025
all set!
garrettmknight commentedon Mar 11, 2025
$250 approved for @getusha