Skip to content

[airflow-ctl/v0-1-test] Show square brackets in airflowctl table and plain output as typed (#76175) - #76205

Merged
shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-117f115-airflow-ctl/v0-1-test
Nov 1, 2026
Merged

shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-117f115-airflow-ctl/v0-1-test

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor
  • Show square brackets in airflowctl table and plain output as typed

airflowctl ... --output table and --output plain passed values to Rich
as markup, so a value such as [/b] crashed the command with a
MarkupError and a value such as s3://[bucket]/path silently lost its
bracketed part. Render the values literally, as --output json and
--output yaml already do.

  • Show square brackets in airflowctl table headers as typed

Column headers were still passed to Rich as markup, so a key such as
[/b] raised a MarkupError and [red]name[/red] lost its tags in
--output table. Escape them like the cell values, and run the output
tests once per value, including a backslash before a tag.


(cherry picked from commit 117f115)

Co-authored-by: Rishabh [email protected]
Co-authored-by: Shahar Epstein [email protected]

…plain output as typed (#76175)

* Show square brackets in airflowctl table and plain output as typed

`airflowctl ... --output table` and `--output plain` passed values to Rich
as markup, so a value such as `[/b]` crashed the command with a
MarkupError and a value such as `s3://[bucket]/path` silently lost its
bracketed part. Render the values literally, as `--output json` and
`--output yaml` already do.

* Show square brackets in airflowctl table headers as typed

Column headers were still passed to Rich as markup, so a key such as
`[/b]` raised a MarkupError and `[red]name[/red]` lost its tags in
`--output table`. Escape them like the cell values, and run the output
tests once per value, including a backslash before a tag.

---------
(cherry picked from commit 117f115)

Co-authored-by: Rishabh <[email protected]>
Co-authored-by: Shahar Epstein <[email protected]>
@shahar1
shahar1 marked this pull request as ready for review November 1, 2026 11:14
@shahar1
shahar1 merged commit 343063a into airflow-ctl/v0-1-test Nov 1, 2026
13 checks passed
@shahar1
shahar1 deleted the backport-117f115-airflow-ctl/v0-1-test branch November 1, 2026 11:18
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