Anurag-S1ngh opened a new pull request, #77095:
URL: https://github.com/apache/airflow/pull/77095

   ## Summary
   Airflow 2.x let users search DAG names by substring; 3.x defaults to 
prefix-of-name. This adds a server-side option so admins can default the search 
mode to match anywhere, while users keep their own per-browser choice if they 
set one.
   
   ## Changes
   - New `[api] default_match_anywhere` boolean config option (default `False`)
   - Exposed via `/ui/config` as `default_match_anywhere`
   - Stored default still wins; the setting falls back to the admin-configured 
value when the user never saved one
   - `useDefaultMatchAnywhere` reads the stored value when present, otherwise 
the server default, otherwise `false`
   - UI tests and Python `test_config.py` updated; `Overview.test.tsx`'s 
openapi/queries mock now exports `useConfigServiceGetConfigs`
   
   ## Testing
   - UI: `pnpm exec vitest run src/hooks/useUserSettings.test.tsx 
src/hooks/useAdvancedSearch.test.tsx src/pages/Settings/Settings.test.tsx` (all 
pass)
   - TypeScript: `tsc --noEmit` clean
   - Python: `pytest 
airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_config.py -q` (6 
passed)
   
   Closes #77088


-- 
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]

Reply via email to