Description
Since #72864 and #72862, GET /ui/next_run_assets/{dag_id} returns only the
scheduling assets the caller may read, while asset_expression keeps a hidden
slot for each unreadable one. AssetSchedule.tsx still derives both the total
and the layout from the returned events, so the UI now changes shape with the
caller's permissions.
For a Dag scheduled on assets A, B and C, a caller who may read only A sees:
- "1 of 1" instead of "1 of 3" —
scheduledTotal is nextRunEvents.length
(AssetSchedule.tsx:124).
- The single-asset layout instead of the popover, because of the
nextRunEvents.length === 1 branch (AssetSchedule.tsx:207).
- No asset schedule at all if none of the three are readable, because the
!nextRunEvents.length branch falls back to timetableSummary
(AssetSchedule.tsx:128).
Use case/motivation
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Description
Since #72864 and #72862,
GET /ui/next_run_assets/{dag_id}returns only thescheduling assets the caller may read, while
asset_expressionkeeps a hiddenslot for each unreadable one.
AssetSchedule.tsxstill derives both the totaland the layout from the returned events, so the UI now changes shape with the
caller's permissions.
For a Dag scheduled on assets A, B and C, a caller who may read only A sees:
scheduledTotalisnextRunEvents.length(
AssetSchedule.tsx:124).nextRunEvents.length === 1branch (AssetSchedule.tsx:207).!nextRunEvents.lengthbranch falls back totimetableSummary(
AssetSchedule.tsx:128).Use case/motivation
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct