Repository navigation
Conversation
a3af56c to
2edb9c1
Compare
|
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 |
…client for Edge3 plugin
1b72d2b to
5fe8491
Compare
- Resolving conflict issues
jscheffl
left a comment
There was a problem hiding this comment.
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.
- Back to the old version of codegen
jscheffl
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
That looks good now! Did a manual regression and am happy now. Thanks for the rework!
* 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]>



Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.