Skip to content

Add Filtering to Edge UI Plugin Jobs Page - #61934

Merged
jscheffl merged 8 commits into
apache:mainfrom
Eason09053360:Add_Filtering_to_Edge_UI_Plugin_Jobs_Page
Feb 18, 2026
Merged

jscheffl merged 8 commits into
apache:mainfrom
Eason09053360:Add_Filtering_to_Edge_UI_Plugin_Jobs_Page

Conversation

@Eason09053360

@Eason09053360 Eason09053360 commented Feb 15, 2026 •

Copy link
Copy Markdown
Contributor

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg Bot added area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 labels Feb 15, 2026
@Eason09053360
Eason09053360 marked this pull request as draft February 15, 2026 04:01
@Eason09053360
Eason09053360 force-pushed the Add_Filtering_to_Edge_UI_Plugin_Jobs_Page branch from a3af56c to 2edb9c1 Compare February 15, 2026 04:55
@Eason09053360
Eason09053360 marked this pull request as ready for review February 15, 2026 10:21
@jscheffl

Copy link
Copy Markdown
Contributor

Thanks for the PR! I believe this is 50% of the implementation needed to be able to filter in the backend based on the form data.

What would be missing is the frontend UI so that the extended backend capabilities are experienceable for the user. Probably in providers/edge3/src/airflow/providers/edge3/plugins/www/src/pages/JobsPage.tsx

@jscheffl

Copy link
Copy Markdown
Contributor

Thanks for the PR!

When I open fresh, no jobs existing I get an error:
image

@Eason09053360
Eason09053360 force-pushed the Add_Filtering_to_Edge_UI_Plugin_Jobs_Page branch from 1b72d2b to 5fe8491 Compare February 16, 2026 13:11
@Eason09053360

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. I've addressed the comments and pushed the updated changes. Here is a screenshot showing the successful result
螢幕擷取畫面 2026-02-16 201939

- Resolving conflict issues

@jscheffl jscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Now the error is gone but something else is broken. Have you tested the UI other than displaying? (1) the workers are NOT displayed, list is always empty. (2) as well the jobs page is always empty.

@Eason09053360

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing and the feedback!
I changes Back to the old version of codegen
I think it's working now :)
螢幕擷取畫面 2026-02-17 231253

@jscheffl jscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now ..almost. Some small comments below.

One thing from the feature ticket still missing, I assume this might be good to be added: Once these filters are available the fields "queue" and "jobs" (counter) on the Worker page should be changed to links to jump to respective jobs with the queue / edge Worker name applied

This commit implements navigation links between the Worker and Jobs pages:

1. **WorkerPage.tsx changes**:
   - Queue names now link to Jobs page filtered by queue
   - Active job counts (when > 0) link to Jobs page filtered by worker name
   - Added URL parameter encoding for safe navigation

2. **JobsPage.tsx changes**:
   - Added URL parameter support (queue, worker) to pre-filter jobs
   - Added useEffect to sync URL parameters with search state
   - Added key props to SearchBar components to force re-render on state changes
   - Improved empty state messaging: now distinguishes between "no jobs" vs "no matches for current filters"

3. **package.json change**:
   - Fixed codegen command to use 'axios' instead of '@hey-api/client-axios'

The "no match" message enhancement:
When users click a queue or worker link from the Worker page, if there are
no matching jobs, they will see "No jobs match the current filters. Try
adjusting or clearing filters." instead of the generic "Currently no jobs
running" message.

@jscheffl jscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good now! Did a manual regression and am happy now. Thanks for the rework!

@jscheffl
jscheffl merged commit 4990e07 into apache:main Feb 18, 2026
85 checks passed
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
* Add Filtering to Edge UI Plugin Jobs Page

* Add filtering to Edge UI Plugin Jobs Page but not Regenerate OpenAPI client for Edge3 plugin

* Includes archives automatically generated by openapi-gen

* Fix JobsPage.tsx syntax error after rebase

- Resolving conflict issues

* fix: Correct API client usage and add job filtering parameters

- Back to the old version of codegen

* - Add runIdPattern state and search bar

* Add clickable filters from Worker to Jobs page in Edge UI

This commit implements navigation links between the Worker and Jobs pages:

1. **WorkerPage.tsx changes**:
   - Queue names now link to Jobs page filtered by queue
   - Active job counts (when > 0) link to Jobs page filtered by worker name
   - Added URL parameter encoding for safe navigation

2. **JobsPage.tsx changes**:
   - Added URL parameter support (queue, worker) to pre-filter jobs
   - Added useEffect to sync URL parameters with search state
   - Added key props to SearchBar components to force re-render on state changes
   - Improved empty state messaging: now distinguishes between "no jobs" vs "no matches for current filters"

3. **package.json change**:
   - Fixed codegen command to use 'axios' instead of '@hey-api/client-axios'

The "no match" message enhancement:
When users click a queue or worker link from the Worker page, if there are
no matching jobs, they will see "No jobs match the current filters. Try
adjusting or clearing filters." instead of the generic "Currently no jobs
running" message.

---------

Co-authored-by: Eason09053360 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Filtering to Edge UI Plugin Jobs Page

2 participants