Repository navigation
feat(budget): source_anomalies and account_category on budget accounts - #8
Draft
makegov-mark[bot] wants to merge 2 commits into
Draft
makegov-mark[bot] wants to merge 2 commits into
makegov-mark[bot] wants to merge 2 commits into
Conversation
Tango API 5.7.0 adds `source_anomalies` and `account_category` to the budget-account default shape and an `account_category` filter. - `models::BudgetSourceAnomaly` (+ `BudgetSourceAnomalySource`, `BudgetSourceAnomalyRow`) types each anomaly; `BudgetSourceAnomaly::from_record` decodes it from a budget-account record. - `account_category` / `account_category_in` on `ListBudgetAccountsOptions`. - `SHAPE_BUDGET_ACCOUNTS_MINIMAL` matches the API's default shape again. - Docs and CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tango API 5.8.0 adds `data_through_period` to the budget-account default shape: the File A fiscal period (1-12) an account-year's figures run through, null with no File A data. - `models::budget_data_through_period` reads it from a record as `Option<u8>`. - `data_through_period`, `data_through_period_gte`, `data_through_period_lte` and `data_through_period_isnull` on `ListBudgetAccountsOptions`. - `SHAPE_BUDGET_ACCOUNTS_MINIMAL` names it right after `fiscal_year`. - Docs and CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Supports the Tango API v5.7.0 and v5.8.0 changes to
/api/budget/accounts/, includingdata_through_period(the File A fiscal period, 1–12, an account-year's figures run through; null with no File A data), read withmodels::budget_data_through_periodand filtered withdata_through_period/_gte/_lte/_isnull:source_anomalies(default shape): each code (contract_exceeds_obligationscapped;assistance_exceeds_obligationsandcontract_without_obligationsflagged), every element field includinglikely_causeandsource.rows[], a worked example, and a note that codes may grow and that there is no anomaly filter.account_category(budgetary/credit_financing): the field, theaccount_category/account_category__infilters, why credit financing accounts are non-budgetary and left out of organization budget totals, and the advice to filteraccount_category=budgetarybefore summing.enacted_basort last within an FY, ties broken by id.Pages
docs/api-reference/budget.md: filter row, default shape, ordering, new "Account category" and "Source anomalies" sections.docs/data-dictionary/budget.md:account_categoryrow, new "Source anomalies" section.docs/guides/how-to/explore-federal-budget.md: taxonomy filter,budget_appropriationnote, new "Summing accounts" and "Source-data anomalies" subsections.CHANGELOG.md: Unreleased entry.The element example uses the producer's actual
message,affected_fields,datasetandfile_c_sourcevalues; dollar amounts, PIID and TAS are placeholders.Relationship to #85
#85 (budget known-issues notice) touches the same three pages. This branch is off
mainand edits different sections, but whichever lands second may need a small rebase.Testing
mkdocs build --clean: builds; only the existing warnings for files fetched at build time.scripts/check_doc_links.py --internal-only: all internal links OK.scripts/check_api_drift.py --surfaceagainst tangoorigin/main: budget filters and shapes documented; the one coverage error is the unrelatedebuy/requestsendpoint (covered by #79).🤖 Generated with Claude Code