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
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 1.38-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:https://expensify.testrail.io/index.php?/tests/view/6022808 Email or phone of affected tester (no customers): Slottwo1 y@gmail.com Issue reported by: Applause Internal Team Device used: Redminote note 10s android 13 App Component: Workspace Settings
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.46-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@alitoshmatov@zanyrenney@alitoshmatov 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: No discussion were started
[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.
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 Apr 30, 2025
Triggered auto assignment to @zanyrenney (
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.mkzie2 commentedon Apr 30, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Tapping additional approval page shows admin briefly.
What is the root cause of that problem?
When first loading the page, the
approvalWorkflowOnyx data might not be available yet:App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApproverPage.tsx
Line 57 in 3c475ba
What changes do you think we should make in order to solve the problem?
Check if that data is still loading using
isLoadingOnyxValueutil and displayFullScreenLoadingIndicatorif so.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
ishakakkad commentedon Apr 30, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-04-30 07:24:47 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace - Tapping additional approval page shows admin briefly.
What is the root cause of that problem?
We show the list of users based on following condition
App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApproverPage.tsx
Line 101 in 4453806
We fetch the approvalWorkflow from here and during refresh
approvalWorkflownot present and available after some timeApp/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApproverPage.tsx
Line 57 in 4453806
What changes do you think we should make in order to solve the problem?
To fix this we need to add following logic
if(isLoading) {
return null; // OR show loading state
}
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Na
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
ishakakkad commentedon Apr 30, 2025
Coming from here, same RCA but different page #60786 (comment)
bernhardoj commentedon Apr 30, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The approver list shows the admin briefly.
What is the root cause of that problem?
When intiializing the list, we exclude already added user from the list.
App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApproverPage.tsx
Lines 100 to 104 in 4453806
However,
approvalWorkflowonyx data is still loading, so the admin member is added to the list briefly.What changes do you think we should make in order to solve the problem?
Return an empty
sectionswhen the workflow is still loading.Then, update
shouldShowListEmptyContentso it doesn't show when it's still loading.App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApproverPage.tsx
Line 163 in 4453806
If we want to show loader, pass
showLoadingPlaceholderto the list.App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApproverPage.tsx
Lines 275 to 276 in 4453806
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
zanyrenney commentedon May 2, 2025
Bunch of proposals 🎉
zanyrenney commentedon May 2, 2025
great find of the related issue @ishakakkad thank you!
[-]mWeb - Workspace - Tapping additional approval page shows admin briefly.[/-][+][$250] mWeb - Workspace - Tapping additional approval page shows admin briefly.[/+]35 remaining items
[-][$250] mWeb - Workspace - Tapping additional approval page shows admin briefly.[/-][+][Due for payment 2025-05-27] [$250] mWeb - Workspace - Tapping additional approval page shows admin briefly.[/+]melvin-bot commentedon May 20, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 20, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.46-12 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-05-27. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 20, 2025
@alitoshmatov @zanyrenney @alitoshmatov 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]
alitoshmatov commentedon May 27, 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/46798/files#r2108025594
[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: No discussion were started
[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 don't think regression test is needed
melvin-bot commentedon May 27, 2025
Payment Summary
Upwork Job
BugZero Checklist (@zanyrenney)
zanyrenney commentedon May 27, 2025
Payment Summary
Upwork Job - cancelled
Reviewer: @bernhardoj owed $250 via NewDot - please request payment via ND.
Reviewer: @alitoshmatov owed $250 via NewDot - please request payment via ND.
bernhardoj commentedon May 27, 2025
Requested in ND.
JmillsExpensify commentedon May 29, 2025
$250 approved for @bernhardoj
JmillsExpensify commentedon May 29, 2025
$250 approved for @alitoshmatov