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 2025-01-02] [$250] Workspace - Members invited in offline are not shown in approval page #53931
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: V9. 0.74-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both If this was caught during regression testing, add the test name, ID and link from TestRail: N Email or phone of affected tester (no customers): N Issue reported by: Applause Internal Team
Action Performed:
Launch app
Go to workspace settings
Tap more features -- enable workflow
Tap workflow - enable approval flow
Tap add approval workflow and enable it
Go to members page
Go offline
Invite a member
Tap workflow - add approval workflow
Expected Result:
Members invited in offline must be shown in approval page.
Actual Result:
Members invited in offline are not shown in approval page.
changed the title [-]Workspace - Members invited in offline are not shown in approval page[/-][+][$250] Workspace - Members invited in offline are not shown in approval page[/+]on Dec 11, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.78-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@jjcoffee@anmurali@jjcoffee 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.
[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
Test:
Go offline
Open the workspace setting
Add a new member
Open Workflows page
Press Add approval workflow
Verify the member added in step 3 is shown on the list
Proceed to the next step
Verify the member added in step 3 is shown on the list
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Dec 11, 2024
Triggered auto assignment to @anmurali (
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.bernhardoj commentedon Dec 11, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The invited member while offline doesn't show in workflow approval list.
What is the root cause of that problem?
We get the list from the policy
employeeList, but we return early if the member doesn't have eitheremailorsubmitsToproperty.App/src/libs/WorkflowUtils.ts
Lines 117 to 122 in 8749259
This is because we don't add those optimistically.
App/src/libs/actions/Policy/Member.ts
Line 630 in 8749259
What changes do you think we should make in order to solve the problem?
We can add both
emailandsubmitsTooptimistically. ThesubmitsToof a new user will default to the default approver.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can create a test for
addMembersToWorkspaceto make sure the optimistic data is correctly added when adding a new member.[-]Workspace - Members invited in offline are not shown in approval page[/-][+][$250] Workspace - Members invited in offline are not shown in approval page[/+]melvin-bot commentedon Dec 11, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021866908681014761163
melvin-bot commentedon Dec 11, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (
External)jjcoffee commentedon Dec 12, 2024
@bernhardoj's proposal LGTM!
🎀👀🎀 C+ reviewed
melvin-bot commentedon Dec 12, 2024
Triggered auto assignment to @AndrewGable, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
10 remaining items
melvin-bot commentedon Dec 26, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Dec 26, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.78-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 2025-01-02. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Dec 26, 2024
@jjcoffee @anmurali @jjcoffee 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]
melvin-bot commentedon Jan 2, 2025
Payment Summary
Upwork Job
BugZero Checklist (@anmurali)
jjcoffee commentedon Jan 2, 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: https://github.com/Expensify/App/pull/46189/files#r1900915398
[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
Test:
Do we agree 👍 or 👎
melvin-bot commentedon Jan 7, 2025
@AndrewGable, @anmurali, @jjcoffee, @bernhardoj Eep! 4 days overdue now. Issues have feelings too...
anmurali commentedon Jan 8, 2025
Payment Summary
bernhardoj commentedon Jan 8, 2025
Requested in ND.
JmillsExpensify commentedon Jan 8, 2025
$250 approved for @bernhardoj
garrettmknight commentedon Jan 9, 2025
$250 approved for @jjcoffee