Skip to content

Add Tier 2 Pydantic models: bulk actions and errors - #29

Merged
mehmetkr merged 1 commit into
mainfrom
tier2-models-bulk-errors
Dec 2, 2026
Merged

mehmetkr merged 1 commit into
mainfrom
tier2-models-bulk-errors

Conversation

@mehmetkr

@mehmetkr mehmetkr commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add bulk_actions.py with 11 models + 3 Literals: discriminated union CreateBulkActionRequestBody via TypeAdapter (4 variants), filter with polymorphic fields (scalar/list status, datetime/epoch timestamps, single/list queue)
  • Add errors.py with 6 models + 1 Literal: grouped error CRUD, resolve/ignore bodies
  • Add QueueType Literal and QueueTypeName model to shared.py (used by bulk action filters)
  • Finalize types/__init__.py with all 120 exports (48 Tier 1 + 72 Tier 2)
  • 28 tests including TypeAdapter union dispatch, full export completeness assertion
  • Fix duplicate batch imports from runs module in __init__.py

Part 3/3 of Tier 2 model generation (operational management domain). Stack: #27 -> #28 -> this PR.

Test plan

  • ./scripts/ci-local.sh passes (ruff, pyright strict, mypy strict, 317 tests)
  • All models validated against OpenAPI spec field-by-field
  • TestExportsComplete asserts all 72 Tier 2 names present in types.__all__

@mehmetkr
mehmetkr force-pushed the tier2-models-webhooks-waitpoints branch from f3b12af to 407f6d9 Compare December 1, 2026 23:45
@mehmetkr
mehmetkr force-pushed the tier2-models-bulk-errors branch from 405e84d to fb00d1c Compare December 1, 2026 23:45
Base automatically changed from tier2-models-webhooks-waitpoints to main December 2, 2026 09:02
@mehmetkr
mehmetkr force-pushed the tier2-models-bulk-errors branch from fb00d1c to effbf3d Compare December 2, 2026 09:03
@mehmetkr
mehmetkr merged commit 00f1443 into main Dec 2, 2026
7 checks passed
@mehmetkr
mehmetkr deleted the tier2-models-bulk-errors branch December 2, 2026 11:21
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