Skip to content

Attendee tracking feature should be a sub-category of 'Rules' #50802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Julesssss opened this issue Oct 15, 2024 · 16 comments
Open

Attendee tracking feature should be a sub-category of 'Rules' #50802

Julesssss opened this issue Oct 15, 2024 · 16 comments
Assignees
Labels
Daily KSv2 Engineering NewFeature Something to build that is a new item.

Comments

@Julesssss
Copy link
Contributor

Julesssss commented Oct 15, 2024

A part of collect v2

Summary of changes

  • Make attendee tracking a feature that can be enabled/disabled via a toggle
  • Make it restricted to Control policies, by placing the toggle in the Rules section of the workspace editor (which can only be accessed after upgrading)
Image

Initial discussion here (internal).

Technical changes

  1. Backend

  2. Frontend

    • Update onyx/Policy.ts with a new prop isAttendeeTrackingEnabled?: boolean
    • Add a toggle to enable or disable Attendee Tracking in the Rules section of the workspace editor, under the existing eReceipts toggle
      • For backwards compatibility, assume the feature is disabled if the prop isAttendeeTrackingEnabled doesn't exist
      • Use the new API command SetPolicyAttendeeTrackingEnabled when toggling the option, with optimistic data
    • Update shouldShowAttendees to only show the attendee selector when the feature is enabled on the selected workspace
  3. Backend (can be done as follow-up updates)

    1. Update commands to throw an error if trying to set/edit attendees on a collect policy expense
    2. Disable the flag after downgrading a policy
    3. Prevent from enabling the feature on collect policies
@Julesssss Julesssss added the Monthly KSv2 label Oct 15, 2024
@Julesssss Julesssss changed the title Attendee tracking should be a sub-category of rules Attendee tracking feature should be a sub-category of rules Oct 15, 2024
@Julesssss Julesssss changed the title Attendee tracking feature should be a sub-category of rules Attendee tracking feature should be a sub-category of 'Rules' Oct 15, 2024
@dylanexpensify dylanexpensify moved this to Release 3: Fall 2024 (Nov) in #expensify-bugs Oct 18, 2024
@dylanexpensify
Copy link
Contributor

@Julesssss assigning you for this for now, but feel free to assign someone else if need be!

@melvin-bot melvin-bot bot added the Overdue label Nov 19, 2024
@garrettmknight garrettmknight moved this from Bugs and Follow Up Issues to Future Cohort Project in #expensify-bugs Nov 19, 2024
@Julesssss
Copy link
Contributor Author

Project is held

@melvin-bot melvin-bot bot removed the Overdue label Nov 20, 2024
@melvin-bot melvin-bot bot added the Overdue label Dec 23, 2024
@Julesssss
Copy link
Contributor Author

Project remains held

@melvin-bot melvin-bot bot removed the Overdue label Jan 3, 2025
@melvin-bot melvin-bot bot added the Overdue label Feb 3, 2025
@Julesssss Julesssss removed their assignment Feb 3, 2025
@melvin-bot melvin-bot bot removed the Overdue label Feb 3, 2025
@melvin-bot melvin-bot bot closed this as completed Apr 18, 2025
Copy link

melvin-bot bot commented Apr 18, 2025

@Julesssss, this Monthly task hasn't been acted upon in 6 weeks; closing.

If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

@github-project-automation github-project-automation bot moved this from Future Cohort Project to Done in #expensify-bugs Apr 18, 2025
@Julesssss
Copy link
Contributor Author

Julesssss commented Apr 18, 2025

FYI @francoisl.

Perhaps you've already handled this elsewhere but there was a request to change where the attendee feature switch lives.

@Julesssss Julesssss reopened this Apr 18, 2025
@francoisl
Copy link
Contributor

I don't think it's even a feature you can disable at the moment, right? I also don't see any mention of this in the design doc, but it sounds like it's something we can do as a follow-up once all the main functionality is ironed out.

@francoisl francoisl self-assigned this Apr 19, 2025
@Julesssss
Copy link
Contributor Author

Yeah this came later and wasn't added to the doc. I don't think the feature has a toggle in the settings, but if I recall correctly there was a high level toggle under categories with that disabled it. That could be outdated though 😬 I have no idea

@melvin-bot melvin-bot bot added the Overdue label May 20, 2025
@francoisl
Copy link
Contributor

Updated the OP above, going to reprioritize to finish this before EOM.

@melvin-bot melvin-bot bot removed the Overdue label May 22, 2025
@francoisl francoisl added Daily KSv2 NewFeature Something to build that is a new item. Engineering and removed Monthly KSv2 Not a priority labels May 22, 2025
Copy link

melvin-bot bot commented May 22, 2025

Triggered auto assignment to @isabelastisser (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels May 22, 2025
@francoisl francoisl added Daily KSv2 and removed Weekly KSv2 labels May 22, 2025
@francoisl
Copy link
Contributor

@allroundexperts is this something you're interested in working on as a follow-up improvement task?

@allroundexperts
Copy link
Contributor

Sure thing. Can I get assigned, please?

@JmillsExpensify
Copy link

Done

@allroundexperts
Copy link
Contributor

@francoisl Is the command SetPolicyAttendeeTrackingEnabled ready?

@francoisl
Copy link
Contributor

No, I'm finishing it up today, it should be available on staging early next week. I'll let you know when!

@allroundexperts
Copy link
Contributor

In the OP, @francoisl Can you also specify what the error field would be called?

@allroundexperts
Copy link
Contributor

Draft PR ready: #62684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering NewFeature Something to build that is a new item.
Projects
Status: Done
Development

No branches or pull requests

6 participants