Skip to content

[Due for payment 2026-11-07] [Insights: Violations][R2] Offer never for the any-approval date filter #104235

Open

Description

@neil-marcellini

(Neil's AI agent)

Follow-up to #99930 and its PR #101058.

Problem

The any-approval date filter doesn't offer never, so there's no way to search for expenses that were never approved. App left it out because Auth used to turn never into a condition that couldn't match. https://github.com/Expensify/Auth/pull/25114 (in production since 2026-10-16) fixed that: on its own, never matches expenses whose report has no approve or forward action.

Solution

  • Remove the ANY_APPROVAL case from getDatePresets, so it falls through to the default presets, which include never. That covers both autocomplete and the date picker.
  • Update the getDatePresets test to expect never.
  • Add any-approval:never to the query round-trip tests.

Tests

  1. Type type:expense any-approval: in the search bar and verify never is suggested.
  2. Open the Any approval date picker in the advanced filters and verify Never is offered.
  3. Search type:expense any-approval:never and verify only expenses on reports with no approval are returned.
Issue OwnerCurrent Issue Owner: @nkdengineer

Activity

  1. neil-marcellini commented on Oct 27, 2026

    @neil-marcellini
    ContributorAuthor

    @nkdengineer any update on this?

  2. nkdengineer commented on Oct 27, 2026

    @nkdengineer
    Contributor

    I will handle this today.

  3. nkdengineer commented on Oct 27, 2026

    @nkdengineer
    Contributor

    @neil-marcellini The PR is ready

  4. changed the title [-][Insights: Violations][R2] Offer never for the any-approval date filter[/-] [+][Due for payment 2026-11-07] [Insights: Violations][R2] Offer never for the any-approval date filter[/+] on Oct 31, 2026
  5. melvin-bot commented on Oct 31, 2026

    @melvin-bot

    @nkdengineer

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.26-1 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 2026-11-07. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions