Skip to content

[v3-3-test] Add has_note key to the Grid Runs API response (#69121) - #70834

Merged
vatsrahul1001 merged 1 commit into
v3-3-testfrom
backport-69121-v3-3-test
Aug 3, 2026
Merged

[v3-3-test] Add has_note key to the Grid Runs API response (#69121)#70834
vatsrahul1001 merged 1 commit into
v3-3-testfrom
backport-69121-v3-3-test

Conversation

@vatsrahul1001

Copy link
Copy Markdown
Contributor

Backport of #69121 to v3-3-test (follows #70829 / #68979, which added the companion has_note plumbing).

One conflict in grid.py: on v3-3-test the Grid-runs query executes with .all(), whereas #69121's context expected .unique().all() (the .unique() comes from an unrelated main-only commit that isn't being backported). Resolved by keeping v3-3-test's .all() and adopting #69121's 3-tuple unpacking ([run for run, _, _ in results]) — the query now selects has_note as a third column, so all unpack sites use the 3-tuple consistently. All other hunks applied cleanly.

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines — cherry-pick backport with one manual conflict resolution (documented above).

* Added has_note attribute to get_grid_runs() response

* Added tests for has_note

* Added note gradient to Bar.tsx to render saved note indicator for a dag run

* Modified NOTE_GRADIENT to render constant size note indicator

* modified note gradient comment in constants.ts

* Added null check for DagRun note content

* Added saved note content check for TaskInstanceNote subq

* Added has_note to makeRun in useGridPagination.test.ts

(cherry picked from commit 6627054)
@vatsrahul1001
vatsrahul1001 requested a review from bbovenzi as a code owner July 31, 2026 14:06
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.3.1 milestone Jul 31, 2026
@vatsrahul1001 vatsrahul1001 added the type:improvement Changelog: Improvements label Jul 31, 2026
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Jul 31, 2026
@vatsrahul1001
vatsrahul1001 merged commit ce49929 into v3-3-test Aug 3, 2026
88 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-69121-v3-3-test branch August 3, 2026 05:29
vatsrahul1001 added a commit that referenced this pull request Aug 5, 2026
* Added has_note attribute to get_grid_runs() response

* Added tests for has_note

* Added note gradient to Bar.tsx to render saved note indicator for a dag run

* Modified NOTE_GRADIENT to render constant size note indicator

* modified note gradient comment in constants.ts

* Added null check for DagRun note content

* Added saved note content check for TaskInstanceNote subq

* Added has_note to makeRun in useGridPagination.test.ts

(cherry picked from commit 6627054)

Co-authored-by: Jayachandra Kasarla <jayachandra.kasarla@astronomer.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. type:improvement Changelog: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants