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-08-11] [$50] Expense - Splits show error after non-admin approver splits the expense #65324
Version Number: 9.1.74-2 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: Exploratory https://expensify.testrail.io/index.php?/tests/view/6416429 Email or phone of affected tester (no customers):applausetester+010712kh@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac 15.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Create a workspace with admin, non-admin approver and member.
Go to staging.new.expensify.com
[Member} Go to workspace chat.
[Member] Add an expense to the workspace chat. Do not click Submit button on expense preview.
[Non-admin approver] Go to workspace chat with member.
[Non-admin approver] Open the expense report.
[Non-admin approver] Click More > Split.
[Non-admin approver] Click Save.
Expected Result:
Non-admin approver should be able to split the expense.
Actual Result:
Non-admin approver is unable to split the expense. The splits show error after non-admin approver splits the expense.
I think we also handle a similar check on SplitExpensePage and SplitExpenseEditPage, so we can export the isSplitAction function and apply the same check here to display the 'Not Found' page.
changed the title [-]Expense - Splits show error after non-admin approver splits the expense[/-][+][$250] Expense - Splits show error after non-admin approver splits the expense[/+]on Jul 8, 2025
[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: Not critical
[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
Test:
Precondition: Create a workspace with admin, non-admin approver and member.
Open App
[Member} Go to workspace chat.
[Member] Add an expense to the workspace chat. Do not click Submit button on expense preview.
[Non-admin approver] Go to workspace chat with member.
[Non-admin approver] Open the expense report.
[Non-admin approver] Click More
Verify that the split button is not displayed if the expense is still open for non-admin approvers
Activity
melvin-bot commentedon Jul 2, 2025
Triggered auto assignment to @CortneyOfstad (
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.CortneyOfstad commentedon Jul 2, 2025
@jponikarchuk I'm confused by step 3:
It mentions submitting the expense, but then states to not submit. Can you provide clarification?
jponikarchuk commentedon Jul 2, 2025
@CortneyOfstad We mean that user should create an expense in the workspace chat but not click on Submit button.
linhvovan29546 commentedon Jul 7, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-07-24 10:26:18 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Splits show error after non-admin approver splits the expense
What is the root cause of that problem?
The BE does not allow a non-admin approver to split an expense if the expense is still
open.What changes do you think we should make in order to solve the problem?
We should not display the split expense action if the
expenseis stillopenfor non-admin approvers.App/src/libs/ReportSecondaryActionUtils.ts
Line 101 in f660f73
I think we also handle a similar check on SplitExpensePage and SplitExpenseEditPage, so we can export the isSplitAction function and apply the same check here to display the 'Not Found' page.
App/src/pages/iou/SplitExpensePage.tsx
Line 55 in 0717d3f
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Write a unit test for
getSecondaryReportActionsto ensure it does not return theSPLITaction for non-admin approvers when the expense is open.What alternative solutions did you explore? (Optional)
N/A
melvin-bot commentedon Jul 8, 2025
@CortneyOfstad Eep! 4 days overdue now. Issues have feelings too...
CortneyOfstad commentedon Jul 8, 2025
Thanks for the clarification @jponikarchuk! Getting eyes on this!
melvin-bot commentedon Jul 8, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021942678222792202966
[-]Expense - Splits show error after non-admin approver splits the expense[/-][+][$250] Expense - Splits show error after non-admin approver splits the expense[/+]67 remaining items
strepanier03 commentedon Aug 12, 2025
Payment summary
strepanier03 commentedon Aug 12, 2025
@rushatgabhane @ZhenjaHorbach - Do we need a reg test? Can one of you complete the checklist?
linhvovan29546 commentedon Aug 12, 2025
@strepanier03 I also need to be paid here as well #65324 (comment)
strepanier03 commentedon Aug 12, 2025
Thanks for the bump @linhvovan29546 I missed that before.
I've updated the payment summary, completed the payment for you, and closed the contract.
strepanier03 commentedon Aug 14, 2025
@ZhenjaHorbach @rushatgabhane - Do we need a checklist and reg test here? The payment summary is on hold since that's outstanding still.
strepanier03 commentedon Aug 18, 2025
Checklist outstanding.
rushatgabhane commentedon Aug 19, 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: Split expense flow v2 Phase1 #63092 (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: Not critical
[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
Test:
Precondition: Create a workspace with admin, non-admin approver and member.
Do we agree 👍 or 👎
rushatgabhane commentedon Aug 19, 2025
@strepanier03 i think i should be paid $250 here for reviewing #67241 (comment)
$50 is for @linhvovan29546 because they helped with root cause
strepanier03 commentedon Aug 20, 2025
@rushatgabhane - Thanks for the context, I updated the payment summary. Do you know if @ZhenjaHorbach should also be $250?
strepanier03 commentedon Aug 22, 2025
@rushatgabhane @ZhenjaHorbach - Payment summary is above.
garrettmknight commentedon Sep 11, 2025
$250 approved for @rushatgabhane