Skip to content

Vehicles 4.3.0 filters/ordering + 4.2.x schema catch-up#22

Closed
makegov-mark[bot] wants to merge 2 commits intomainfrom
vehicles-4.3.0-filters
Closed

Vehicles 4.3.0 filters/ordering + 4.2.x schema catch-up#22
makegov-mark[bot] wants to merge 2 commits intomainfrom
vehicles-4.3.0-filters

Conversation

@makegov-mark
Copy link
Copy Markdown
Contributor

@makegov-mark makegov-mark Bot commented May 7, 2026

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. New ordering param (whitelist: vehicle_obligations, latest_award_date, total_obligated, award_date, last_date_to_order, fiscal_year, idv_count, order_count).
  • list_vehicle_awardees — new search param for entity-aware full-text search across IDV fields and recipient entity details.

Schema (4.2.x catch-up)

  • New top-level Vehicle fields: is_synthetic_solicitation, program_acronym, idv_count, total_obligated, latest_award_date.
  • New metrics expansion on vehicle detail (12 lakehouse rollups: HHI, competed_rate, avg/max order value, etc.).
  • New organization(*) expand on Vehicle, Forecast, Grant, ITDashboardInvestment, Protest — canonical 7-key office payload (organization_id, office_code, office_name, agency_code, agency_name, department_code, department_name).
  • New vehicle(*) expand on Contract (API 4.2.0).

Defaults

  • ShapeConfig.VEHICLES_MINIMAL / VEHICLES_COMPREHENSIVE updated to surface the new top-level fields. Comprehensive default now includes organization(*) and metrics(*).

Additive only — no breaking changes.

Test plan

  • uv run ruff format . — clean
  • uv run ruff check tango/ — clean
  • uv run mypy on touched files — clean
  • uv run pytest tests/test_client.py tests/test_shapes.py tests/test_models.py — 215 passed
  • Cassette-driven integration tests (refresh against live 4.3.0 API as part of release)
  • Live smoke against vehicles endpoint with the new filters
  • Companion docs PR in makegov/docs documenting the new SDK params

vdavez and others added 2 commits May 7, 2026 12:10
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>
@makegov-mark makegov-mark Bot mentioned this pull request May 7, 2026
8 tasks
@vdavez vdavez closed this May 8, 2026
@vdavez vdavez deleted the vehicles-4.3.0-filters branch May 8, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant