You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-07-08] Add Bank account to filters in Search #88385
Implementation details:
We need to support passing a bankAccountID in the jsonQuery filters AST under the key bankAccount. This will consist of a FE and BE change. This filter will only be available for expenses
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
N/A - New feature
[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.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Two validated withdrawal bank accounts on the workspace (admin)
An employee on the policy with a validated deposit bank account so reimbursements can settle to them, otherwise the filter has nothing to match
At least one expense report submitted, approved, and paid via bank A and another paid via bank B. Use the Pay via bank account button on the report header to actually settle each reimbursement
Test:
Sign in as the admin
Go to Search and pick the Expenses type
Tap Filters and confirm a "Bank account" row is shown in the advanced filters list
Open the row, confirm each bank account is shown as ${bankName} xx${last4} with the bank icon
Select bank A, save, confirm only the bank-A-paid expenses are returned
Open the filter, multi-select bank A and bank B, save, confirm both sets are returned and the chip shows both labels comma-separated
Type bank-account: in the autocomplete bar and confirm the user-friendly suggestions appear, alphabetically sorted
Switch the Search type to Chat or Trip and confirm the "Bank account" row no longer shows
As an account with no bank accounts visible, confirm the row does not show even on expense type
N/A — I'll let the CME determine an appropriate amount based on the scope and impact of this work.
📊 Size
📄 40 files changed
🔀 146 commits (128 excluding merges from main)
➕ 1,891 insertions
➖ 1,194 deletions
🧪 10+ review rounds
The scope itself never expanded beyond the original issue — the boundaries were clear from the start and didn't change during implementation. However, the initial scope was already large: wiring a brand-new filter through every layer of the Search stack is inherently a big lift, which is reflected in the file/commit counts above.
🧪 Extensive testing
Unlike most Search filters (which use a static set of predefined values), this PR introduces a dynamic filter whose available options depend on each user's workspace configuration.
Because the filter depends on real account state rather than a hardcoded list of values, validating it was significantly more complex than testing a typical Search filter.
As a result, this PR went through 10+ review rounds, with each round requiring end-to-end verification
✅ No regressions
Despite the size and complexity of the changes—which touched the shared Search parsing, autocomplete, query infrastructure and a lot of bank specific logic — this PR introduced no regressions across the existing Search filter set.
The only issue discovered during review was a highly specific edge case that we collectively agreed did not qualify as a regression.
Activity
JS00001 commentedon Apr 30, 2026
Haven't gotten to this one yet
JS00001 commentedon May 11, 2026
Same, I'll try to get a BE contributor on this one
JS00001 commentedon May 11, 2026
Implementation details:
We need to support passing a bankAccountID in the jsonQuery filters AST under the key
bankAccount. This will consist of a FE and BE change. This filter will only be available for expensesJS00001 commentedon May 11, 2026
Pinged in slack
allgandalf commentedon May 11, 2026
Sounds interesting, picking this up
27 remaining items
Eskalifer1 commentedon Jul 7, 2026
BugZero Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
N/A - New feature
[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.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/658057
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-58ef-a314-24ab-19e8b3a18b24Eskalifer1 commentedon Jul 7, 2026
💰 Price Increase Checklist
💵 Proposed amount to increase the price to
N/A — I'll let the CME determine an appropriate amount based on the scope and impact of this work.
📊 Size
main)The scope itself never expanded beyond the original issue — the boundaries were clear from the start and didn't change during implementation. However, the initial scope was already large: wiring a brand-new filter through every layer of the Search stack is inherently a big lift, which is reflected in the file/commit counts above.
🧪 Extensive testing
Unlike most Search filters (which use a static set of predefined values), this PR introduces a dynamic filter whose available options depend on each user's workspace configuration.
Because the filter depends on real account state rather than a hardcoded list of values, validating it was significantly more complex than testing a typical Search filter.
As a result, this PR went through 10+ review rounds, with each round requiring end-to-end verification
✅ No regressions
Despite the size and complexity of the changes—which touched the shared Search parsing, autocomplete, query infrastructure and a lot of bank specific logic — this PR introduced no regressions across the existing Search filter set.
The only issue discovered during review was a highly specific edge case that we collectively agreed did not qualify as a regression.
melvin-bot commentedon Jul 7, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Jul 7, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Jul 9, 2026
@JS00001 👀 please on the price increase request above
^ Test case created. Thx
@Eskalifer1 can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/jobs/~022075271705237201718
JS00001 commentedon Jul 9, 2026
Lets increase this one from 250 to $500, I agree an increase is fair here
mallenexpensify commentedon Jul 9, 2026
Payment Summary
Contributor+: @Eskalifer1 paid $500 via Upwork
Thx