Skip to content

Expense - Error after making changes to Attendees field as member after the expense is paid #61433

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.1.40-0
Reproducible in staging?: Yes
Reproducible in production?: Unable to check
If this was caught during regression testing, add the test name, ID and link from TestRail: #60067
Email or phone of affected tester (no customers): applausetester+smidod11sj@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Admin and member are in the same workspace.
  1. Go to staging.new.expensify.com
  2. [Member] Go to workspace chat and submit an expense.
  3. [Member] Click Submit on the expense preview.
  4. [Admin] Go to workspace chat with member.
  5. [Admin] Open the expense report.
  6. [Admin] Click Approve and Pay elsewhere.
  7. [Member] Go to the transaction thread of the paid expense.
  8. [Member] Click Attendees field.
  9. [Member] Add another attendee and save it.

Expected Result:

Attendee field should be disabled for member after the expense is paid.

Actual Result:

Attendee field is not disabled for member after the expense is paid. When editing the attendees field, app throws error.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6822636_1746496051202.20250506_094543.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on May 6, 2025
  2. melvin-bot commented on May 6, 2025

    @melvin-bot

    Triggered auto assignment to @kadiealexander (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.

  3. melvin-bot commented on May 6, 2025

    @melvin-bot

    Triggered auto assignment to @mollfpr (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. github-actions commented on May 6, 2025

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. melvin-bot commented on May 6, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. removed
    DeployBlocker
    on May 6, 2025
  7. mollfpr commented on May 6, 2025

    @mollfpr
    Contributor

    Starting discussion on the Slack thread.

  8. ijmalik commented on May 6, 2025

    @ijmalik
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-05-06 08:16:16 UTC.

    Proposal

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

    Attendee field is not disabled for member after the expense is paid. When editing the attendees field, app throws error.

    What is the root cause of that problem?

    The issue was that shouldShowRightIcon and interactive values weren't properly passed to the MenuItemWithTopDescription component.

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

    Replace

    With

    shouldShowRightIcon={canEdit}
    

    And replace

    With

    interactive={canEdit}
    

    Same logic we used for category

    {!!shouldShowCategory && (
    <OfflineWithFeedback pendingAction={getPendingFieldAction('category')}>
    <MenuItemWithTopDescription
    description={translate('common.category')}
    title={updatedTransaction?.category ?? transactionCategory}
    numberOfLinesTitle={2}
    interactive={canEdit}
    shouldShowRightIcon={canEdit}
    titleStyle={styles.flex1}
    onPress={() => {
    if (!transaction?.transactionID || !report?.reportID) {
    return;
    }
    Navigation.navigate(
    ROUTES.MONEY_REQUEST_STEP_CATEGORY.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction.transactionID, report.reportID, getReportRHPActiveRoute()),
    );
    }}
    brickRoadIndicator={getErrorForField('category') ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined}
    errorText={getErrorForField('category')}
    />
    </OfflineWithFeedback>
    )}

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    We should write a test to ensure that attendee field should be disabled for members once the expense is paid.

    What alternative solutions did you explore? (Optional)

  9. github-actions commented on May 6, 2025

    @github-actions
    Contributor

    ⚠️ Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

  10. melvin-bot commented on May 6, 2025

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  11. added
    Reviewing
    Weekly
    and removed
    Hourly
    Weekly
    on May 6, 2025
  12. self-assigned this
    on May 6, 2025
  13. added
    Daily
    and removed
    DeployBlockerCash
    Weekly
    on May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineeringReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions