fix(search): not all documents showing for search soup index#2489
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 6 minutes and 50 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughUpdated the Documents filter backing value from Changes
Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@js/app/packages/app/component/next-soup/soup-view/soup-view.tsx`:
- Line 171: The persisted state version bump (PERSISTED_STATE_VERSION) isn't
enough because when isStale is true the code still assigns
initialPersistedState.queryFilters (see usage around
initialPersistedState/queryFilters and isStale); change the initialization logic
that applies initialPersistedState (the block referencing
initialPersistedState.queryFilters) so that if isStale is true you do not
restore queryFilters (reset them to the default empty/undefined value instead),
i.e., skip or overwrite initialPersistedState.queryFilters when isStale is true
to prevent carrying forward stale filter semantics.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: e4d96aa5-aa4e-4684-ad3c-cbe80d9a410c
📒 Files selected for processing (2)
js/app/packages/app/component/next-soup/soup-view/filters-bar/search-filter-controls.tsxjs/app/packages/app/component/next-soup/soup-view/soup-view.tsx
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@js/app/packages/app/component/next-soup/soup-view/soup-view.tsx`:
- Around line 678-680: The current stale-state restore unconditionally clears
query filters by calling setQueryFilters(isStale ? {} :
(initialPersistedState.queryFilters ?? {})), which wipes default filter presets;
change the logic in the component so that when isStale is true you do not
override defaults—only apply persisted filters when
initialPersistedState.queryFilters is present, otherwise keep existing defaults
(e.g., leave query filters untouched or initialize from
soup.filters/defaultQueryFilters). Update the branch around setQueryFilters to
use initialPersistedState.queryFilters when defined, otherwise skip calling
setQueryFilters or use soup.filters as the fallback, keeping references to
setQueryFilters, initialPersistedState.queryFilters, isStale, and soup.filters
to locate the code.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: bdfce4d1-8b53-4325-b4ec-a77fc42c50cc
📒 Files selected for processing (1)
js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
changing to document-or-file to handle file search, also bumping version so people get updates