Skip to content

[Due for payment 2025-04-14] Move attendees from Transaction type to Comment #57717

@francoisl

Description

@francoisl

Problem

In #48008, an attendees prop was added to the Transaction type.

/** Selected attendees */
attendees?: Attendee[];

However, this is inconsistent with our backend, where attendees are stored inside the comment instead:

  • Example transaction with attendees set on Expensify Classic
    Image

  • Example if you set attendees from NewDot at the moment
    Image

Solution

  1. Move attendees from Transaction to Comment (i.e. this), and update everywhere we read/set transaction.attendees to transaction?.comment?.attendees
  2. Test creating an expense with attendees in Expensify Classic (OldDot), make sure attendees are displayed properly when opening the expense in NewDot

Notes for testing

  • To be able to see the attendees in NewDot, uncomment the commented code in shouldShowAttendees() (i.e. this)-
  • The backend changes to set and update attendees via New Expensify aren't complete yet, so create transactions with attendees from OldDot like so:
  1. Create a workspace in New Expensify
  2. Sign in to the same account on Classic (www.expensify.com or staging.expensify.com)
  3. Go to Expenses > New Expense > Manually Create
  4. Enter any merchant name, amount, date, and values in the Attendees selector
  5. Save the expense
  6. In NewDot, find and open the corresponding expense
  7. Make sure the attendees are displayed correctly

This is part of #44725

Issue OwnerCurrent Issue Owner: @sakluger

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staffTask

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions