Skip to content

[Due for payment 2025-10-21] [Merge] Attendees on expenses aren't an option when merging two expenses #68447

Closed

Description

@garrettmknight

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: N/A
Reproducible in staging?: N/A
Reproducible in production?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @youssef-lr
Slack conversation (hyperlinked to channel name):

Action Performed:

Precondition: Create a workspace, enable Rules, enable Attendee Tracking

  1. Create an expense on a workspace and add an attendee - we'll call this Expense A
  2. Create another expense on a workspace, without adding attendees - we'll call this Expense B
  3. From Expense B tap More > Merge
  4. Select Expense A and continue

Expected Result:

We should show the different attendee options from both the expenses so the user can choose.

Actual Result:

The attendee options aren't shown, defaulting to the attendee tracking details from the expense we originated the merge from.

Workaround:

None

Platforms:

All

Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @garrettmknight

Activity

  1. added
    Daily
    Bug
    on Aug 13, 2025
  2. melvin-bot commented on Aug 13, 2025

    @melvin-bot

    Current assignee @garrettmknight is eligible for the Bug assigner, not assigning anyone new.

  3. changed the title [-]Attendees on expenses aren't an option when merging two expenses[/-] [+]Merge - Attendees on expenses aren't an option when merging two expenses[/+] on Aug 13, 2025
  4. hoangzinh commented on Aug 14, 2025

    @hoangzinh
    Contributor

    Hey @garrettmknight, how will we display options for attendees? Will we show

    Attendees:
    { } Expense A's attendees
    { } Expense B's attendees
    
  5. garrettmknight commented on Aug 15, 2025

    @garrettmknight
    ContributorAuthor

    Yeah, I think that's correct. Attendees should be comma space separated. Here's an example:

    Attendees:
    { } Garrett Knight
    { } Garrett Knight, Alice Baker, Bruce Chambers
    
    Image
  6. mukhrr commented on Aug 17, 2025

    @mukhrr
    Contributor

    Proposal

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

    There is not an option to select attendees list on merging two expenses.

    What is the root cause of that problem?

    New feature.

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

    We should change some files to include attendees selection phase:

    1. Add attendees to merge fields: Updated MERGE_FIELDS array to include 'attendees'
    2. Update field handling: getMergeFieldValue to format attendees as comma-separated strings for comparison:
        // Handle attendees field - format as comma-separated string for comparison
        if (field === 'attendees') {
            const attendees = MERGE_FIELDS_UTILS[field].getDataFn(transaction);
            return Array.isArray(attendees) ? attendees.map((item) => item?.displayName ?? item?.login).join(', ') : '';
        }
    1. Modify merge transaction actions to handle attendees in both API requests and optimistic updates
    2. Enhance the formatValue function to properly display attendees as comma-separated names:
                                if (field === 'attendees' && Array.isArray(value)) {
                                    return value.map((item) => item?.displayName ?? item?.login).join(', ');
                                }

    P.s: And there may be missing files which will be taken care of in PR.

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

    N/A

    What alternative solutions did you explore? (Optional)

    N/A

    Result:
    Image

  7. hoangzinh commented on Aug 18, 2025

    @hoangzinh
    Contributor

    @mukhrr Thanks for your posting proposal. However, we will handle this issue in an ongoing project.

  8. garrettmknight commented on Aug 21, 2025

    @garrettmknight
    ContributorAuthor

    Handling in this PR: #68204

  9. 29 remaining items

  10. melvin-bot commented on Oct 2, 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. changed the title [-]Merge - Attendees on expenses aren't an option when merging two expenses[/-] [+][Merge] Attendees on expenses aren't an option when merging two expenses[/+] on Oct 6, 2025
  12. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Oct 14, 2025
  13. changed the title [-][Merge] Attendees on expenses aren't an option when merging two expenses[/-] [+][Due for payment 2025-10-21] [Merge] Attendees on expenses aren't an option when merging two expenses[/+] on Oct 14, 2025
  14. removed
    Reviewing
    on Oct 14, 2025
  15. melvin-bot commented on Oct 14, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  16. melvin-bot commented on Oct 14, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.30-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-10-21. 🎊

    For reference, here are some details about the assignees on this issue:

    • @hoangzinh requires payment through NewDot Manual Requests
    • @dominictb requires payment (Needs manual offer from BZ)
  17. hoangzinh commented on Oct 14, 2025

    @hoangzinh
    Contributor

    We can close this issue @garrettmknight @youssef-lr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions