Skip to content

Show Dag version diff values-hidden pill only when values are hidden - #74746

Merged
jedcunningham merged 1 commit into
apache:mainfrom
astronomer:version-diff-values-hidden-pill
Oct 14, 2026
Merged

jedcunningham merged 1 commit into
apache:mainfrom
astronomer:version-diff-values-hidden-pill

Conversation

@jedcunningham

Copy link
Copy Markdown
Member

Tidies the disclosure pills in the Dag version comparison header (Versions tab):

  • Removed the static "Observed state" pill; the ⓘ tooltip still explains that this compares stored state, not source.
  • Removed the "Values shown" pill.
  • The "Values hidden" pill now appears only when the server withholds values (the caller lacks Dag code access), and "Values require access to Dag code" moved from inline text to that pill's hover tooltip. Previously the hint showed even to users who had that access.

Checked manually with the FAB auth manager: an Admin user sees values and no pill; a user with Viewer permissions minus "can read on DAG Code" gets the redacted diff and the "Values hidden" pill with its tooltip.

Values visible, before:

Screenshot 2026-10-14 at 9 41 44 AM

Values visible, after:

Screenshot 2026-10-14 at 9 41 59 AM

Values hidden (user without DAG Code read), after, hovering the pill. Before, this showed "Observed state" + "Values hidden" + the hint inline:

Screenshot 2026-10-14 at 9 42 11 AM

The comparison header always showed an "Observed state" pill, a "Values
shown"/"Values hidden" pill and a "Values require access to Dag code"
hint, so users who could see values were still told they needed access.

Drop the static "Observed state" and "Values shown" pills and show the
"Values hidden" pill only when values are withheld, with the access hint
as its hover tooltip. Remove the now-unused translation keys.
@jedcunningham
jedcunningham merged commit 27433bf into apache:main Oct 14, 2026
91 checks passed
@jedcunningham
jedcunningham deleted the version-diff-values-hidden-pill branch October 14, 2026 17:53
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

vatsrahul1001 pushed a commit that referenced this pull request Oct 18, 2026
… are hidden (#74746) (#74960)

The comparison header always showed an "Observed state" pill, a "Values
shown"/"Values hidden" pill and a "Values require access to Dag code"
hint, so users who could see values were still told they needed access.

Drop the static "Observed state" and "Values shown" pills and show the
"Values hidden" pill only when values are withheld, with the access hint
as its hover tooltip. Remove the now-unused translation keys.
(cherry picked from commit 27433bf)

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
… are hidden (#74746) (#74960)

The comparison header always showed an "Observed state" pill, a "Values
shown"/"Values hidden" pill and a "Values require access to Dag code"
hint, so users who could see values were still told they needed access.

Drop the static "Observed state" and "Values shown" pills and show the
"Values hidden" pill only when values are withheld, with the access hint
as its hover tooltip. Remove the now-unused translation keys.
(cherry picked from commit 27433bf)

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants