Repository navigation
fix(search): preserve loaded jobs when retrying facets - #4608
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 5a7a7142-a7b2-4c38-9ebe-e7b7c3de2e26) |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
OpenCodeReview — commit low · |
When only facet counts hit the search quota, retrying currently reloads the healthy job list too. If that extra request is also limited, visible vacancies disappear behind an error.
Retry facet counts on every retry, and reload vacancies only when the list itself failed. This also preserves the recovery path for simultaneous list and facet failures introduced in #4596.
Validation: the extended facets-only Playwright scenario failed before the guard and passed afterward; all three search-quota browser scenarios passed. The browser ran the real Svelte app against read-only production API requests because local Docker was unavailable. The original feature was previously verified against an isolated Go/Postgres/Meilisearch stack. Changed-file ESLint, formatting and the repository file-size check passed; independent review found no actionable issues.
Note
Low Risk
Small UX guard in client search retry logic with added E2E coverage; no auth, billing, or server API changes.
Overview
Retry search no longer reloads the job list when vacancies loaded successfully but only facet counts hit the quota.
retrySearchstill always refreshes facet counts;reloadListruns only whenjobs.status === 'error', so a healthy list stays on screen instead of being replaced by a second rate-limited search request.The facets-only Playwright scenario now asserts that after Retry search, facet requests fire again while search is not retried (
listRetries === 0), the limit notice remains, and job cards stay visible even if search would still return 429.Reviewed by Cursor Bugbot for commit 7d56100. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
Deployment status: activated in production at 2026-11-15 01:57:43 UTC after the operator hold was cleared and the UI including freehire#4608 was deployed. Public search and facets return HTTP 200 with X-RateLimit-Limit: 300. Authenticated MCP search returned 10 actual vacancies; anonymous MCP initialization returns 401. Three production-browser quota/retry scenarios passed, and the live Sao Paulo page renders job cards.