The GitHub Actions job "Required Checks" on texera.git/main has failed. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: 553ab15b32947fe35ced580c2570284e04b71536 / Tanishq Gandhi <[email protected]> fix(frontend): clear the search bar’s suggestions when the user changes (#9090) ### What changes were proposed in this PR? The top search bar caches its suggestions by the typed text and never cleared that cache. After signing out you land on the About page with the same search bar, and typing text searched before sign-out showed the previous user’s suggestions again, including private workflows, datasets and models, straight from the cache. SearchBarComponent now clears the cache and the shown suggestions in its existing userChanged() handler, which runs on sign-in and sign-out. Before: signed out, “sales” still suggests the private dataset sales-2026, and no request is sent: <img width="1440" height="900" alt="before-2-logged-out-still-suggested" src="https://github.com/user-attachments/assets/818ad412-162e-4f3d-bfbc-978647753167" /> After: signed out, “sales” goes to the public search and suggests nothing: <img width="1440" height="900" alt="after-1-logged-out-no-suggestion" src="https://github.com/user-attachments/assets/10335c5f-c4a9-4241-9e42-8b383658d9a8" /> ### Any related issues, documentation, discussions? Closes #9089 ### How was this PR tested? Added a case to search-bar.component.spec.ts: after the user changes, a repeated query goes to the server as the new user instead of returning the cached suggestions. It fails without the fix. ``` cd frontend yarn ng test --watch=false --include='**/search-bar.component.spec.ts' # Tests 10 passed (10) ``` Also checked against a local stack: signed in, typed a private dataset’s name, signed out, and typed it again. No suggestion is shown, and a public search request is sent. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) Report URL: https://github.com/apache/texera/actions/runs/41014952373 With regards, GitHub Actions via GitBox
