Repository navigation
[v3-4-test] Let plugins add their own actions to Dag, run and task instance rows (#75229) - #75427
Merged
Merged
Conversation
…pache#75229) Airflow draws a fixed set of actions beside a Dag, a Dag Run and a Task Instance -- trigger, clear, mark state -- and a plugin had no way to put anything next to them. A plugin could add a whole page as a tab, but not a single button on the row or header card where the user already is, so the work it offers for one entity had to be reached by navigating away from that entity. An action is either a `link`, which opens a URL templated with the entity's context, or `react`, which mounts the plugin's own component behind a trigger button. The React kind is handed `open`, `onClose` and `triggerRef` and portals whatever surface it wants -- a popover, a dialog, a drawer -- rather than being given a modal to fill, because the right surface depends on what the plugin is showing. Actions are scoped by the same `applies_to` field paths as tabs and panels, through the same matchers, so a button can be offered only where it applies: only on failed task instances, only on Dags of a given team. That is the reason the two were designed together. A React action's `name` is the global its bundle registers under, so it cannot share one with a React App or another React action -- the second to load would silently win. Such an action is refused rather than loaded. (cherry picked from commit c510e4d)
bbovenzi
requested review from
amoghrajesh,
ashb,
bugraoz93,
choo121600,
dheerajturaga,
ephraimbuddy,
guan404ming,
henry3260,
jason810496,
pierrejeambrun,
potiuk,
rawwar,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
October 22, 2026 19:43
Contributor
|
Hi maintainer, this PR was merged without a milestone set.
|
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.
Backport of #75229 to
v3-4-test.The automatic backport workflow failed on a transient GitHub API error in its "Get PR information" step (run 39811753215), so it never attempted the cherry-pick. Picked by hand from c510e4d — it applied with no conflicts, and the resulting diff matches the original commit line for line.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5) following the guidelines
🤖 Generated with Claude Code