App icon indicating copy to clipboard operation
App copied to clipboard

[Due for payment 2026-11-30] [$175] Search - Legacy unreported expenses silently fail to open and can't be deleted when the owner/chat can't be resolved from the activity record

Open m-natarajan opened this issue 2 weeks ago • 16 comments

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.36-0 Reproducible in staging?: Needs Reproduction (Unable to reproduce) Reproducible in production?: Needs Reproduction If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @AnaFlavia-Oliveira Slack conversation (hyperlinked to channel name): #Expensify Bugs

Action Performed:

  1. Sign in as a user who has several older (legacy) unreported expenses.
  2. Go to Spend > Expenses and view the unreported expenses.
  3. Click one of the older unreported expenses.
  4. Try to select it and delete it (including via bulk select).

Expected Result:

The expense opens, and the user can delete older unreported expenses.

Actual Result:

Clicking an older unreported expense does nothing. The user stays on the list and the expense doesn't open. The Delete option doesn't appear when these expenses are selected. The user cannot delete them.

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • [ ] Android: App
  • [ ] Android: mWeb Chrome
  • [ ] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [x] Windows: Chrome
  • [x] MacOS: Chrome / Safari

Screenshots/Videos

Snip - ts_external_expensify_bugs (Channel) - Applause App Quality, Inc  - 54 new items - Slack

View all open jobs on GitHub

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @mallenexpensify
Issue OwnerCurrent Issue Owner: @mallenexpensify

m-natarajan avatar Nov 13 '26 13:11 m-natarajan

Triggered auto assignment to Contributor-plus team member for initial proposal review - @ZhenjaHorbach (External)

melvin-bot[bot] avatar Nov 13 '26 13:11 melvin-bot[bot]

Job added to Upwork: https://www.upwork.com/jobs/~022121231749012808076

melvin-bot[bot] avatar Nov 13 '26 13:11 melvin-bot[bot]

Issue Analysis

⚠️ Preliminary analysis — production root cause remains unconfirmed.

Findings

The reported 9.5.36-0 code contains two conditions that could explain both symptoms:

  • Expense does not open: For an unreported expense, navigation returns without feedback if it cannot resolve the owner’s self-chat. See SearchUIUtils.ts:2643–2656.
  • Delete is unavailable: Unreported-expense deletion requires a matching IOU activity whose actor is the current user, plus card-deletion eligibility. Missing or incomplete activity fails that ownership check. See ReportUtils.ts:3944–3972.

Working hypothesis: These legacy expenses lack sufficient activity/ownership/chat linkage for both checks.

What challenges this hypothesis?

Missing activity in the Search response is not sufficient by itself: locally cached activity or an existing expense thread can allow opening. Card restrictions can independently hide Delete, but do not explain an unresponsive click.

The issue contains no affected transaction identifiers or payload, and browser reproduction was not performed. Consequently, the affected records have not been shown to hit these branches.

Required confirmation

Inspect one affected expense’s Search response and corresponding cached activity for:

  • Exact reportID, matching IOU activity, and actorAccountID.
  • Owner-chat linkage and existing childReportID.
  • Card ownership and deletion restrictions.

This distinguishes missing Search data, incomplete local hydration, and genuinely missing legacy records.

Do not default unresolved ownership to the signed-in user. That could associate another person’s expense with the wrong chat or expose an unauthorized Delete action. A fix should follow the verified data failure; if authoritative ownership/linkage is absent server-side, escalate to an internal engineer.

Potentially related

Personal card expenses auto-added to a workspace report are created without an IOU report action also concerns missing activity, but involves reported personal-card expenses—not a confirmed duplicate.


Next Steps: Provide a sanitized affected-record example or reply with @MelvinBot <your feedback> to refine this analysis.


view run

MelvinBot avatar Nov 13 '26 13:11 MelvinBot

Proposal

What is the root cause of that problem?

There are two distinct root causes stemming from the fact that legacy unreported expenses lack a populated IOU activity record (item.reportAction) in the Search API snapshot and are not yet paginated/hydrated into the local Self DM action cache:

1. Unresponsive Click / Failure to Open (src/libs/SearchUIUtils.ts:2662-2675):

In createAndOpenSearchTransactionThread:

const isUnreportedTransaction = item.reportID === CONST.REPORT.UNREPORTED_REPORT_ID;
// An unreported expense lives in its owner's self DM, which is not the viewer's when an admin opens a member's expense
const actionReportID = item.reportAction?.reportID ? String(item.reportAction.reportID) : undefined;
const ownerSelfDMReportID = actionReportID !== CONST.REPORT.UNREPORTED_REPORT_ID ? actionReportID : undefined;
const ownSelfDMAction = isUnreportedTransaction ? getIOUActionForReportID(findSelfDMReportID(), item.transactionID) : undefined;
const isOwnExpense = (ownSelfDMAction ?? item.reportAction)?.actorAccountID === currentUserAccountID;
const expenseSelfDMReportID = isOwnExpense ? (findSelfDMReportID() ?? ownerSelfDMReportID) : ownerSelfDMReportID;
const selfDMReportID = isUnreportedTransaction ? expenseSelfDMReportID : undefined;

if (isUnreportedTransaction && !selfDMReportID) {
    return;
}
  • For older legacy expenses, ownSelfDMAction is not cached in local Onyx memory (the user's Self DM history has not loaded older historical actions).
  • In the Search snapshot, legacy unreported expenses either omit item.reportAction or return an action without a populated actorAccountID.
  • Consequently, (ownSelfDMAction ?? item.reportAction)?.actorAccountID === currentUserAccountID evaluates to false.
  • Because isOwnExpense is false, expenseSelfDMReportID falls back to ownerSelfDMReportID (actionReportID !== '0' ? actionReportID : undefined), which is also undefined.
  • selfDMReportID becomes undefined, triggering if (isUnreportedTransaction && !selfDMReportID) return;. The click silently drops with zero action and no navigation.

2. Delete Action Not Appearing (src/libs/SearchUIUtils.ts:8203-8228, src/libs/ReportUtils.ts:3944-3972, and src/components/Search/selectionBuilders.ts:235):

  • Missing Actions in Search Delete Check (SearchUIUtils.ts:8208-8215): When checking shouldShowDeleteOption, the function looks up actions for the transaction's parent report: const parentReportID = transaction.reportID; (which is '0'). It queries getReportActionsFromSearchSnapshot('0', ...), which returns an empty array because report actions for unreported transactions are stored under the user's Self DM, not under report '0'.
  • Failing Ownership Guard in canDeleteMoneyRequestReport (ReportUtils.ts:3947): const isOwner = transactionID ? getIOUActionForTransactionID(reportActions, transactionID)?.actorAccountID === currentUserAccountID : false; Because reportActions is empty, getIOUActionForTransactionID returns undefined, evaluating isOwner to false. At line 3971, if (isUnreported) return isOwner && canCardTransactionBeDeleted; returns false.
  • Dropped ownerAccountID in Selection Metadata (selectionBuilders.ts:235): ownerAccountID: item.reportAction?.actorAccountID When item.reportAction is undefined, ownerAccountID becomes undefined in the selected transaction metadata, causing bulk action checks and getSelectedTransactionOwnerAccountID to fail to recognize the current user as the owner.

What changes do you think we should make in order to solve the problem?

1. Resilient Ownership & Chat Resolution in createAndOpenSearchTransactionThread (src/libs/SearchUIUtils.ts:2662-2675)

Allow isOwnExpense to be verified through authoritatively resolved properties when the activity record is absent:

  1. Check item.from?.accountID === currentUserAccountID (populated during row generation in buildTransactionListItem).
  2. For card transactions (item.cardID), check cardholder ownership via cardList?.[item.cardID]?.accountID === currentUserAccountID.
  3. For personal/cash unreported transactions (!item.cardID), verify that the transaction is not explicitly attributed to another member:
    const isExplicitOtherUser =
        (item.reportAction?.actorAccountID && item.reportAction.actorAccountID !== currentUserAccountID) ||
        (item.from?.accountID && item.from.accountID !== currentUserAccountID && item.from.accountID !== 0) ||
        (item.cardID && cardList?.[item.cardID]?.accountID && cardList[item.cardID]?.accountID !== currentUserAccountID);
    
    const isOwnExpense = !isExplicitOtherUser;
    
  4. When isOwnExpense is confirmed, resolve selfDMReportID to findSelfDMReportID(). This allows the transaction thread report to be created/retrieved in the user's own Self DM and navigated to without bailing.

2. Query Self DM for Unreported Transaction Actions in shouldShowDeleteOption (src/libs/SearchUIUtils.ts:8208-8216)

When transaction.reportID === CONST.REPORT.UNREPORTED_REPORT_ID (or !transaction.reportID), resolve the parent report context as the user's Self DM (findSelfDMReportID()):

const isUnreported = !transaction.reportID || transaction.reportID === CONST.REPORT.UNREPORTED_REPORT_ID;
const selfDMReportID = findSelfDMReportID();
const parentReportID = isUnreported ? (selfDMReportID ?? transaction.reportID) : transaction.reportID;
const parentReport = (isUnreported && selfDMReportID ? getReportOrDraftReport({reportID: selfDMReportID}) : undefined) ?? currentSearchResults?.[`${ONYXKEYS.COLLECTION.REPORT}${parentReportID}`] ?? selectedTransactions[id].report;
const rowReportAction = selectedTransactions[id].reportAction;
const parentReportActions = Object.values({
    ...getReportActionsFromSearchSnapshot(parentReportID, currentSearchResults, allReportActions, true),
    ...(rowReportAction ? {[rowReportAction.reportActionID]: rowReportAction} : {}),
});

3. Support Report & Cardholder Ownership in canDeleteMoneyRequestReport (src/libs/ReportUtils.ts:3944-3972)

In canDeleteMoneyRequestReport, if getIOUActionForTransactionID does not find an action in reportActions (due to missing search activity snapshot), verify ownership through report or card association:

const iouAction = transactionID ? getIOUActionForTransactionID(reportActions, transactionID) : undefined;
const isActionOwner = iouAction ? iouAction.actorAccountID === currentUserAccountID : false;
const isReportOwner = isSelfDM(report) && report?.ownerAccountID === currentUserAccountID;
const isCardOwner = transaction?.cardID ? cardList?.[transaction.cardID]?.accountID === currentUserAccountID : false;
const isUnreported = isSelfDM(report) || transaction?.reportID === CONST.REPORT.UNREPORTED_REPORT_ID;
const isOwner = isActionOwner || (isUnreported && !iouAction && (isReportOwner || isCardOwner || (!transaction?.cardID && !report)));

if (isUnreported) {
    return isOwner && canCardTransactionBeDeleted;
}

4. Preserve ownerAccountID in Selection Metadata (src/components/Search/selectionBuilders.ts:235)

Fall back to item.from?.accountID when item.reportAction is absent:

ownerAccountID: item.reportAction?.actorAccountID ?? (item.from?.accountID ? item.from.accountID : undefined),

What alternative solutions did you explore? (Optional)

  • Unconditionally defaulting unresolved ownership to currentUserAccountID: As noted in the issue analysis, blindly defaulting unresolved transactions to the logged-in user could allow workspace admins viewing other members' company card expenses to erroneously associate them with their own Self DM or expose unauthorized deletion actions. By checking cardList?.[item.cardID]?.accountID, item.from?.accountID, and restricting the fallback strictly to personal non-card expenses where !isExplicitOtherUser, data isolation is 100% maintained.
  • Triggering on-demand network fetch of Self DM history upon clicking: Fetching historical Self DM actions via API when clicking a row introduces noticeable network latency and an unresponsive UI delay. Resolving through the user's existing Self DM and transaction metadata allows instant, optimistic navigation.

What automated tests can you add to prevent this from re-occurring?

  1. In tests/unit/Search/SearchUIUtilsTest.ts: Add a test verifying that createAndOpenSearchTransactionThread successfully creates and navigates to a transaction thread in the user's Self DM when item.reportAction is undefined and ownSelfDMAction is not cached locally, provided the expense belongs to the current user (!isExplicitOtherUser).
  2. In tests/unit/ReportUtilsTest.ts: Add a test verifying that canDeleteMoneyRequestReport returns true for an unreported transaction (reportID: '0') when reportActions does not contain the IOU action, provided report is the user's Self DM or the transaction is on the user's personal card.
  3. In tests/unit/SearchUIUtilsTest.ts: Add a test verifying that shouldShowDeleteOption returns true for selected unreported expenses whose parent report is resolved to findSelfDMReportID().

Contributor details

Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~0131dae36abcf59374

kevinjosh10 avatar Nov 13 '26 13:11 kevinjosh10

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

melvin-bot[bot] avatar Nov 13 '26 13:11 melvin-bot[bot]

Proposal

Please re-state the problem that we are trying to solve in this issue.

In Spend > Expenses, when a user views older/legacy unreported expenses (such as the 2023 Classic/OldDot expenses shown in the screenshot, where Move to report, Split, Duplicate expense, and Merge appear in the bulk menu):

  1. Clicking an older unreported expense silently does nothing—the transaction thread never opens.
  2. Selecting one or more of these expenses hides the Delete option in the Search bulk-actions menu, leaving no way to delete them.

What is the root cause of that problem?

Legacy unreported expenses created in Classic/OldDot (prior to NewDot Self-DM TRACK actions) have reportID === CONST.REPORT.UNREPORTED_REPORT_ID ('0', or '' per src/libs/ReportUtils.ts:6417-6418) and no associated IOU reportAction in either the Search snapshot or the user's Self DM. While Move to report (ReportUtils.ts:6338-6342: isUnreportedLegacyTransaction) and useDeleteTransactions (src/hooks/useDeleteTransactions.ts:338-341: "Some expenses can have no IOU action, but the API can still delete them by transactionID") were already updated to support actionless legacy expenses, three client-side gates still hard-require an IOU reportAction (plus a snapshot-only cleanup gap):

  1. Silent early return in createAndOpenSearchTransactionThread (src/libs/SearchUIUtils.ts:2676-2689) blocks openReport's existing #80180 legacy-transaction backfill:

    • openReport (src/libs/actions/Report/index.ts:1939-2026, if (transaction && !parentReportActionID)) already has dedicated legacy-transaction support that builds an optimistic TRACK iouReportAction in Self DM (isSelfDM(parentReport) ? CONST.IOU.REPORT_ACTION_TYPE.TRACK : ...), attaches it to the new transaction thread, and sends moneyRequestPreviewReportActionID so the backend creates the missing preview/thread.
    • However, createAndOpenSearchTransactionThread never reaches createTransactionThreadReport -> openReport because:
      • isOwnExpense (SearchUIUtils.ts:2682) checks only (ownSelfDMAction ?? item.reportAction)?.actorAccountID === currentUserAccountID. With both actions undefined, isOwnExpense is false, ownerSelfDMReportID (line 2680) is undefined, and if (isUnreportedTransaction && !selfDMReportID) return; (lines 2687-2689) silently returns undefined.
      • Even when isOwnExpense is resolved, if a Classic user has never tracked an expense in NewDot yet, findSelfDMReportID() (src/libs/ReportUtils.ts:2020-2027) returns undefined because no Self DM report exists in Onyx yet—causing selfDMReportID to remain undefined and hit the same early return unless an optimistic Self DM ID is generated (generateReportID(), matching TrackExpense.ts:978-1000).
      • Additionally, isUnreportedTransaction (SearchUIUtils.ts:2676 and Report/index.ts:2562) checks === CONST.REPORT.UNREPORTED_REPORT_ID, missing OldDot reportID === '' (!reportID || reportID === CONST.REPORT.UNREPORTED_REPORT_ID).
  2. Delete option hidden by action-only ownership check (src/libs/SearchUIUtils.ts:8308-8327, src/libs/ReportUtils.ts:3947-3972, src/components/Search/selectionBuilders.ts:235):

    • shouldShowDeleteOption (SearchUIUtils.ts:8308-8315) looks up getReportActionsFromSearchSnapshot(parentReportID, ...) using parentReportID = '0' instead of the user's Self DM (findSelfDMReportID()), and for actionless legacy expenses no IOU action exists in Self DM either.
    • canDeleteMoneyRequestReport (ReportUtils.ts:3947, 3967-3972) computes const isOwner = transactionID ? getIOUActionForTransactionID(reportActions, transactionID)?.actorAccountID === currentUserAccountID : false; and returns isOwner && canCardTransactionBeDeleted, which always returns false when reportActions has no matching IOU action.
    • mapTransactionItemToSelectedEntry (selectionBuilders.ts:235) sets ownerAccountID: item.reportAction?.actorAccountID, dropping ownerAccountID when item.reportAction is absent even when item.from?.accountID was resolved via cardHolderAccountID (SearchUIUtils.ts:2035-2036).
  3. Snapshot-only transaction data dropped during bulk deleteTransactions (src/hooks/useDeleteTransactions.ts:204 & src/libs/actions/IOU/DeleteMoneyRequest.ts:141, 912-917, 934-939):

    • Before a legacy Search row is opened, its transaction exists in currentSearchResults.data (ONYXKEYS.COLLECTION.SNAPSHOT), not in ONYXKEYS.COLLECTION.TRANSACTION (allTransactions). Both useDeleteTransactions.ts:204 and prepareToCleanUpMoneyRequest (DeleteMoneyRequest.ts:141) read allTransactions without falling back to the Search snapshot / passed transaction, causing DeleteMoneyRequest.ts:915 to Onyx.METHOD.SET a bare {pendingAction: 'delete'} object (missing transactionID, reportID, amount, merchant) and write {pendingAction: null} on failureData (line 937) instead of restoring the full transaction if deletion fails.

What changes do we think we should make in order to solve the problem?

  1. Add a shared, fail-closed positive ownership helper isUnreportedExpenseOwnedByCurrentUser (src/libs/TransactionUtils/index.ts or src/libs/ReportUtils.ts) that never defaults unresolved member expenses to the viewer:

    • Per the security constraint on unreported expenses: workspace/domain admins can see other members' unreported managed-card transactions (isManagedCardTransaction(transaction) === true, see ReportUtils.ts:6042-6044), and another member's card is not in the admin's ONYXKEYS.CARD_LIST (and item.from is emptyPersonalDetails whenever neither reportAction nor NON_PERSONAL_AND_WORKSPACE_CARD_LIST resolves the cardholder). Therefore, we must not use a negated !isExplicitOtherUser check or unconditionally pass the viewer's selfDMReport as parentReport (both of which falsely treat another member's actionless corporate-card expense as the admin's own).
    • Instead, verify positive authoritative ownership for an unreported transaction (!transaction?.reportID || transaction.reportID === CONST.REPORT.UNREPORTED_REPORT_ID):
      • If an IOU action (ownSelfDMAction ?? reportAction) has actorAccountID: return actorAccountID === currentUserAccountID (never override an explicit actor).
      • Else if transaction?.cardID: check isTransactionOwner(transaction, cardList) (src/libs/TransactionUtils/index.ts:1816-1822—which checks ONYXKEYS.CARD_LIST, where Expensify stores only the signed-in user's own cards, including their personal "Expensify Cash" card for Classic cash expenses) or workspaceAndPersonalCards?.[transaction.cardID]?.accountID === currentUserAccountID. If isManagedCardTransaction(transaction) is true and neither matches, fail closed (false) so an admin never claims or deletes another member's unassigned/legacy corporate-card expense.
      • Else (!isManagedCardTransaction(transaction) with no cardID and no actorAccountID, e.g. an OldDot manual cash expense with cardID: 0/undefined): return true, because non-managed-card unreported expenses are strictly private to the authenticated user in Search and are never returned to admins for other members.
  2. Resolve selfDMReportID (including first-time optimistic Self DM) in createAndOpenSearchTransactionThread (src/libs/SearchUIUtils.ts:2676-2689) and createTransactionThreadReport (src/libs/actions/Report/index.ts:2562-2593):

    • Broaden isUnreportedTransaction to !item.reportID || item.reportID === CONST.REPORT.UNREPORTED_REPORT_ID (in Search/index.tsx:725, 784, SearchUIUtils.ts:2676, and Report/index.ts:2562).
    • Pass cardList (ONYXKEYS.CARD_LIST) or use the positive ownership check (item.from?.accountID === currentUserAccountID when item.from.accountID came from cardHolderAccountID, or isUnreportedExpenseOwnedByCurrentUser) to compute isOwnExpense.
    • When isOwnExpense is true, resolve expenseSelfDMReportID = findSelfDMReportID() ?? ownerSelfDMReportID ?? generateReportID(). When createTransactionThreadReport -> openReport creates optimisticSelfDMReport for a user who had no Self DM yet (Report/index.ts:1926-1937, 2589-2592), also Onyx.METHOD.MERGE ONYXKEYS.SELF_DM_REPORT_ID: optimisticSelfDMReport.reportID (matching TrackExpense.ts:997-1000) with null in failureData, so subsequent clicks reuse the same Self DM instead of generating duplicate optimistic Self DMs.
    • openReport's existing #80180 block (Report/index.ts:1944-2026) then automatically creates the optimistic TRACK iouReportAction in Self DM, opens the expense in RHP, enables Delete inside MoneyRequestHeaderSecondaryActions, and sends moneyRequestPreviewReportActionID to persist the thread server-side.
  3. Enable Delete in Search & preserve ownerAccountID (src/libs/SearchUIUtils.ts:8308-8327, src/libs/ReportUtils.ts:3947-3972, src/components/Search/selectionBuilders.ts:235):

    • In shouldShowDeleteOption (SearchUIUtils.ts:8308-8318), when !transaction.reportID || transaction.reportID === CONST.REPORT.UNREPORTED_REPORT_ID, also merge Self-DM report actions from findSelfDMReportID() into parentReportActions without blindly overwriting parentReport with the viewer's Self DM when ownership isn't proven.
    • In canDeleteMoneyRequestReport (ReportUtils.ts:3947, 3967-3972), replace the action-only isOwner check for isUnreported with isUnreportedExpenseOwnedByCurrentUser(transaction, iouAction, cardList, currentUserAccountID) so return isOwner && canCardTransactionBeDeleted; succeeds for the user's own actionless legacy unreported expenses while remaining false for Expensify Cards, restricted corporate cards, and any other member's unreported card expenses.
    • In selectionBuilders.ts:235, fall back to item.from?.accountID || undefined (ownerAccountID: item.reportAction?.actorAccountID ?? (item.from?.accountID || undefined)) and apply cardHolderAccountID in grouped row building (SearchUIUtils.ts:3192) to match flat rows (line 2036).
  4. Preserve full snapshot transaction data in useDeleteTransactions & deleteMoneyRequest (src/hooks/useDeleteTransactions.ts:204, 400-422 & src/libs/actions/IOU/DeleteMoneyRequest.ts:141):

    • In useDeleteTransactions.ts:204, fall back to currentSearchResults?.data?.[${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}] when allTransactions does not yet hold the Search-only legacy transaction, and pass transaction into deleteMoneyRequest / prepareToCleanUpMoneyRequest as a fallback for allTransactions[...] so optimistic delete (line 915) and failure rollback (line 937) preserve the complete transaction record.
  5. Automated tests:

    • tests/unit/Search/SearchUIUtilsTest.ts: Verify createAndOpenSearchTransactionThread opens an actionless legacy unreported expense (both with an existing Self DM and when findSelfDMReportID() is undefined), while still returning undefined when an admin clicks another member's actionless managedCard: true unreported expense. Also test shouldShowDeleteOption for both cases.
    • tests/unit/ReportUtilsTest.ts: Verify canDeleteMoneyRequestReport returns true for the user's own actionless unreported cash/personal-card expense (reportID: '0' or '') and false for another member's actionless managedCard: true unreported expense or Expensify Card expense.
    • tests/unit/hooks/useDeleteTransactions.test.ts: Verify deleting a snapshot-only actionless unreported expense preserves full transaction fields in optimistic/failure Onyx updates.

What alternative solutions did you explore? (Optional)

  • Inferring ownership via !isExplicitOtherUser or passing the viewer's selfDMReport into canDeleteMoneyRequestReport for all reportID === '0' rows: Rejected because a workspace admin viewing another member's unreported corporate-card expense without a snapshot reportAction does not have that member's card in ONYXKEYS.CARD_LIST (and item.from is empty if the card feed hasn't hydrated), which would misattribute the member's expense to the admin's Self DM and expose unauthorized deletion.

cocvn157 avatar Nov 13 '26 15:11 cocvn157

Update:

  • reproduced and debugged the issue over reported account
  • confirming the fix logic in slack

VickyStash avatar Nov 16 '26 15:11 VickyStash

Updates:

  • Raised a Draft PR that fixes issue reported by user: https://github.com/Expensify/App/pull/107101
  • Discussion regarding the case when admin can potentially try to open member's unreported legacy expense is ongoing

VickyStash avatar Nov 17 '26 16:11 VickyStash

Update:

  • For now I'lll move forward with https://github.com/Expensify/App/pull/107101
  • Second part of FE changes will be applied when https://github.com/Expensify/Expensify/issues/705811 is fixed

VickyStash avatar Nov 18 '26 17:11 VickyStash

Update: Opened PR for review https://github.com/Expensify/App/pull/107101

VickyStash avatar Nov 19 '26 11:11 VickyStash

Merged

mountiny avatar Nov 21 '26 01:11 mountiny

@ZhenjaHorbach

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.5.52-4 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/107101

If no regressions arise, payment will be issued on 2026-11-30. :confetti_ball:

The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]. If no checklist is needed for this issue, you can click: [no checklist button]

melvin-bot[bot] avatar Nov 23 '26 23:11 melvin-bot[bot]

Not overdue

ZhenjaHorbach avatar Nov 24 '26 12:11 ZhenjaHorbach

Since BE fix was deployed to prod I've prepared the second FE PR:

  • https://github.com/Expensify/App/pull/107968

I'll be OOO November 26-27 🌴 If any action is needed please ping @TMisiukiewicz so he can find someone to help

VickyStash avatar Nov 25 '26 16:11 VickyStash

Triggered auto assignment to @mallenexpensify (Awaiting Payment)

Payment Summary

Resolving PRs:

  • https://github.com/Expensify/App/pull/107101

  • Contributor: @VickyStash does not require payment (Contractor)

  • Reviewer: @ZhenjaHorbach owed $175 via NewDot

BugZero Checklist (@mallenexpensify)

  • [ ] I have confirmed assignees, roles, and Upwork contracts look correct
  • [ ] I have paid out Upwork contracts / manual NewDot requests
  • [ ] [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon