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
Type asset_expression on the API side so the UI doesn't cast through unknown #67692
The UI endpoints that return asset_expression declare it as dict | None on the Python datamodel — datamodels/dags.py, datamodels/ui/dags.py, datamodels/ui/assets.py, datamodels/ui/partitioned_dag_runs.py. OpenAPI gen turns this into { [k: string]: unknown } | null in the generated TypeScript, so the UI hand-writes an ExpressionType discriminated union in src/components/AssetExpression/ and the consumers (AssetProgressCell.tsx, pages/DagsList/AssetSchedule.tsx) cast unknown as ExpressionType with no runtime check.
If the server-side shape ever changes the TypeScript build won't catch it — the failure mode is a blank render or a discriminator-missing crash at runtime.
Activity