dheerajturaga opened a new pull request, #70567:
URL: https://github.com/apache/airflow/pull/70567
The Grid endpoint accepts both the substring ``triggering_user`` and the
index-friendly ``triggering_user_prefix`` variants of the Triggering User
filter, and the pill on the Grid's filter bar already renders the
substring/prefix advanced-search toggle. But the Grid query hooks were only
ever sending the substring param regardless of toggle state — so the toggle
effectively did nothing on the Grid.
Route the value through ``useAdvancedSearchArg`` in ``useGridRuns`` and
``useGridStructure`` so the toggle actually selects between the two variants on
each request, matching the Run ID filter wiring landed in #70150 and the Dag
Runs page.
### Changes
- ``useGridRuns.ts`` and ``useGridStructure.ts`` — compute
``triggeringUserArg`` via ``useAdvancedSearchArg({ patternApiKey:
"triggeringUser", prefixApiKey: "triggeringUserPrefix", storageKey:
SearchParamsKeys.TRIGGERING_USER_NAME_PATTERN, value: triggeringUser })`` and
spread it into the query, replacing the plain ``triggeringUser: … ??
undefined``.
No backend, generated-file, or test changes needed:
- Backend already accepts both variants on both grid endpoints.
- Generated types (``GetGridRunsData`` / ``GetDagStructureData``) already
carry ``triggeringUser`` and ``triggeringUserPrefix``.
### Testing
- ``tsc``, ESLint, prettier, and the ``ts-compile-lint-ui`` prek hook all
pass.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 4.8)
Generated-by: Claude Code (Opus 4.8) following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]