Vehicles 4.3.0 filters/ordering + 4.2.x schema catch-up#22
Closed
makegov-mark[bot] wants to merge 2 commits intomainfrom
Closed
Vehicles 4.3.0 filters/ordering + 4.2.x schema catch-up#22makegov-mark[bot] wants to merge 2 commits intomainfrom
makegov-mark[bot] wants to merge 2 commits intomainfrom
Conversation
list_vehicles now exposes 21 explicit filter parameters (vehicle_type, type_of_idc, contract_type, set_aside, who_can_use, naics_code, psc_code, program_acronym, agency, organization_id, total_obligated_min/max, idv_count_min/max, order_count_min/max, fiscal_year, award_date_after/before, last_date_to_order_after/before) plus an ordering parameter, matching API v4.3.0. list_vehicle_awardees gains a search parameter for entity-aware full-text search across IDV and recipient fields. Schema additions catch the SDK up through API 4.2.x: new top-level Vehicle fields (is_synthetic_solicitation, program_acronym, idv_count, total_obligated, latest_award_date), a bundled metrics expansion (12 lakehouse rollups), an organization(*) expand on Vehicle/Forecast/Grant/ITDashboard/Protest returning the canonical 7-key office payload, and a vehicle(*) expand on Contract. VEHICLES_MINIMAL/COMPREHENSIVE defaults updated to surface the new fields. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Refresh the three vehicle cassettes against the live API so they match the new default shape (adds is_synthetic_solicitation, program_acronym, idv_count, total_obligated). Make test_get_vehicle_supports_joiner_and_flat_lists robust to the new default ordering: list 20 vehicles with shape=uuid,opportunity(title) and pick one whose opportunity is populated, so the joiner/flat_lists behavior is meaningfully exercised. Skip if none have one. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
Catches the SDK up to Tango API 4.3.0 (vehicle filters/ordering) and the 4.2.x schema additions that landed since v0.5.0.
Endpoints
list_vehicles— 21 explicit filter params:vehicle_type,type_of_idc,contract_type,set_aside(multi-value via|),who_can_use,naics_code,psc_code,program_acronym,agency,organization_id,total_obligated_min/max,idv_count_min/max,order_count_min/max,fiscal_year,award_date_after/before,last_date_to_order_after/before. Neworderingparam (whitelist:vehicle_obligations,latest_award_date,total_obligated,award_date,last_date_to_order,fiscal_year,idv_count,order_count).list_vehicle_awardees— newsearchparam for entity-aware full-text search across IDV fields and recipient entity details.Schema (4.2.x catch-up)
is_synthetic_solicitation,program_acronym,idv_count,total_obligated,latest_award_date.metricsexpansion on vehicle detail (12 lakehouse rollups: HHI, competed_rate, avg/max order value, etc.).organization(*)expand onVehicle,Forecast,Grant,ITDashboardInvestment,Protest— canonical 7-key office payload (organization_id,office_code,office_name,agency_code,agency_name,department_code,department_name).vehicle(*)expand onContract(API 4.2.0).Defaults
ShapeConfig.VEHICLES_MINIMAL/VEHICLES_COMPREHENSIVEupdated to surface the new top-level fields. Comprehensive default now includesorganization(*)andmetrics(*).Additive only — no breaking changes.
Test plan
uv run ruff format .— cleanuv run ruff check tango/— cleanuv run mypyon touched files — cleanuv run pytest tests/test_client.py tests/test_shapes.py tests/test_models.py— 215 passedmakegov/docsdocumenting the new SDK params