Skip to content

[Due for payment 2025-12-16] Add Group by to the Filters RHP of Reports > Expenses #75481

Closed

Description

@trjExpensify

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: v9.2.60-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: @puneetlath

Action Performed:

  1. Go to Reports > Expenses
  2. Click Filters
  3. Observe no "Group by" filter

Expected Result:

  • We should show the "Group by" option in the Filters RHP on Reports > Expenses.
Image

Actual Result:

We didn't add it here, only the Accounting suggested searches.

Workaround:

N/A

Platforms:

Select the officially supported platforms where the issue was reproduced:

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

Screenshots/Videos

In-line above.

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @trjExpensify

Activity

  1. added
    External
    Daily
    Bug
    on Nov 18, 2025
  2. added
    Help Wanted
    on Nov 18, 2025
  3. melvin-bot commented on Nov 18, 2025

    @melvin-bot

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

  4. melvin-bot commented on Nov 18, 2025

    @melvin-bot

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

  5. daledah commented on Nov 18, 2025

    @daledah
    Contributor

    Proposal

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

    We didn't add it here, only the Accounting suggested searches.

    What is the root cause of that problem?

    "Group by" only appears when already set. It should always be available

    const shouldDisplayGroupByFilter = !!groupBy;
    const shouldDisplayGroupCurrencyFilter = shouldDisplayGroupByFilter;

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

    We should set the value as this

        const shouldDisplayGroupByFilter = true;
        const shouldDisplayGroupCurrencyFilter = !!groupBy;
    

    const shouldDisplayGroupByFilter = !!groupBy;
    const shouldDisplayGroupCurrencyFilter = shouldDisplayGroupByFilter;

    Or we can remove this condition

    if (key === CONST.SEARCH.SYNTAX_ROOT_KEYS.GROUP_BY && !shouldDisplayGroupByFilter) {
    return;
    }

    Note: we can check other fields as well if we want to show it

    What alternative solutions did you explore? (Optional)

    NA

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  6. lorretheboy commented on Nov 24, 2025

    @lorretheboy
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-11-24 07:12:14 UTC.

    Proposal

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

    We didn't add it here, only the Accounting suggested searches.

    What is the root cause of that problem?

    We only display when it contains value

    const shouldDisplayGroupByFilter = !!groupBy?.value;
    const shouldDisplayGroupCurrencyFilter = shouldDisplayGroupByFilter && hasMultipleOutputCurrency;

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

    We should update to always show it out if it is supported

            const shouldDisplayGroupByFilter = isFilterSupported(FILTER_KEYS.GROUP_BY, type?.value ?? CONST.SEARCH.DATA_TYPES.EXPENSE);
            const shouldDisplayGroupCurrencyFilter = shouldDisplayGroupByFilter && !!groupBy?.value && hasMultipleOutputCurrency; // Or check by groupBy if we need to always show it

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  7. trjExpensify commented on Nov 24, 2025

    @trjExpensify
    ContributorAuthor

    @ahmedGaber93 can you please review these proposals today? Thanks!

  8. 22 remaining items

  9. melvin-bot commented on Dec 23, 2025

    @melvin-bot

    @trjExpensify Eep! 4 days overdue now. Issues have feelings too...

  10. melvin-bot commented on Dec 25, 2025

    @melvin-bot

    @trjExpensify Still overdue 6 days?! Let's take care of this!

  11. ahmedGaber93 commented on Dec 28, 2025

    @ahmedGaber93
    Contributor

    BugZero Checklist:

    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: https://github.com/Expensify/App/pull/68441/changes#r2649965535

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: N/A.

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    This is a minor issue, I don’t think we need a regression test here.

  12. ahmedGaber93 commented on Dec 28, 2025

    @ahmedGaber93
    Contributor

    @trjExpensify Sorry for the delay! I was OOO for the past three weeks. The checklist is now complete.

  13. melvin-bot commented on Dec 31, 2025

    @melvin-bot

    @trjExpensify 12 days overdue now... This issue's end is nigh!

  14. trjExpensify commented on Jan 5, 2026

    @trjExpensify
    ContributorAuthor

    Thanks! Payment summary as follows:

  15. JmillsExpensify commented on Jan 6, 2026

    @JmillsExpensify
    Contributor

    $250 approved for @ahmedGaber93

  16. melvin-bot commented on Jan 8, 2026

    @melvin-bot

    @trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  17. trjExpensify commented on Jan 12, 2026

    @trjExpensify
    ContributorAuthor

    Paid @daledah, closing!

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions