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
bug(api/history): handler ignores provider/account_ids/start/end query params from Purchase History + Purchases-page Global filters #701
Frontend sends provider, account_ids, start, end query params for the Purchase History date filter (row 3.4) and the Purchases-page Global filter (rows 4.2 / 4.4 / 4.5). Backend internal/api/handler_history.go fetchPurchaseHistory (lines 390-419) reads only account_id and limit — the rest are logged-or-silently-dropped. Visible filter affordances are no-ops.
Likely covers issue #503 (Savings History chart same backend gap) — consider bundling.
Fix direction
Backend: extend fetchPurchaseHistory to parse provider, account_ids (via parseAccountIDs), and start/end (validated as YYYY-MM-DD). Add a date-range overload (or nullable params) to the store GetPurchaseHistory family so SQL appends AND provider=$? AND account_id = ANY($?) AND scheduled_date BETWEEN $? AND $?. Mirror to fetchExecutionsAsHistory so both halves of the merged list respect the filter set. Bring both halves into a shared filter struct.
QA verification still failing after PR #716 merged
Verification re-tested today on rows 4.2, 4.4, 4.5 of the spreadsheet (Bugs and improvement suggestions tab, rows 305-307). All three sub-flows of the global filter on the Purchases page still fail:
4.2 (Provider filter): Selecting one provider at a time -> "Same as before - Nothing happens, no data is filtered."
4.4 (Account filter):
Approval queue and Purchase History do NOT filter when an account is selected.
Savings History chart DISAPPEARS (as if there's no data) when an account is selected, including for the AWS account that the purchase was actually made under.
4.5 (Provider + Account): Same as 4.4.
So the merged fix didn't propagate the global filter state down into:
Approval queue list
Purchase History list
Savings History chart (worse: chart hides entirely)
PR #716 may have only wired up some of the consumers, or there's a separate frontend bug. Reopening this thread - please re-investigate.
Verified as resolved via QA exploratory testing (marked Pass in the QA spreadsheet). Shipped in PR #716 (and follow-up PR #741 merged for full topbar-filter coverage). Closing.
Activity
fix(api/history): honor provider/account_ids/start/end query params i…
cristim commentedon May 26, 2026
QA verification still failing after PR #716 merged
Verification re-tested today on rows 4.2, 4.4, 4.5 of the spreadsheet (
Bugs and improvement suggestionstab, rows 305-307). All three sub-flows of the global filter on the Purchases page still fail:4.2 (Provider filter): Selecting one provider at a time -> "Same as before - Nothing happens, no data is filtered."
4.4 (Account filter):
4.5 (Provider + Account): Same as 4.4.
So the merged fix didn't propagate the global filter state down into:
PR #716 may have only wired up some of the consumers, or there's a separate frontend bug. Reopening this thread - please re-investigate.
fix(purchases): wire topbar filter chips to all three Purchases consu…
cristim commentedon May 28, 2026
Verified as resolved via QA exploratory testing (marked Pass in the QA spreadsheet). Shipped in PR #716 (and follow-up PR #741 merged for full topbar-filter coverage). Closing.
fix(config/store): match purchase history on account UUID AND externa…
fix(api): filter purchases/analytics/inventory by account UUID AND ex…
test(api): cover dual-column account filtering across history/analyti…
fix(api): filter purchases by account UUID AND external id (closes #701…
fix(api): compute active commitments via uncapped SQL active-only read
fix(api): compute active commitments via uncapped SQL active-only read
fix(api): compute active commitments via uncapped SQL active-only read
fix(api): compute active commitments via uncapped SQL active-only read
fix(api): filter purchases by account UUID AND external id (closes #701…