Skip to content

fix(search): not all documents showing for search soup index#2489

Merged
gbirman merged 5 commits into
mainfrom
gab/fix/search-soup-index
Apr 10, 2026
Merged

fix(search): not all documents showing for search soup index#2489
gbirman merged 5 commits into
mainfrom
gab/fix/search-soup-index

Conversation

@gbirman
Copy link
Copy Markdown
Contributor

@gbirman gbirman commented Apr 10, 2026

changing to document-or-file to handle file search, also bumping version so people get updates

@gbirman gbirman requested a review from a team as a code owner April 10, 2026 00:07
@gbirman gbirman changed the title fix: not all documents showing for search soup index fix(search): not all documents showing for search soup index Apr 10, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 10, 2026

Warning

Rate limit exceeded

@gbirman has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 50 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 51aea90b-228d-4aec-8c97-00bc39aa42cd

📥 Commits

Reviewing files that changed from the base of the PR and between 06de5d5 and 5b66ddd.

📒 Files selected for processing (2)
  • js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
  • js/app/packages/core/util/dateSearch/useDateSearch.test.ts
📝 Walkthrough

Walkthrough

Updated the Documents filter backing value from document to document-or-file in search-filter-controls.tsx, and incremented SoupView persisted state version from 1 to 2 in soup-view.tsx so persisted queryFilters are treated as stale and not reapplied on mount.

Changes

Cohort / File(s) Summary
Search filter control
js/app/packages/app/component/next-soup/soup-view/filters-bar/search-filter-controls.tsx
Changed the Documents index option backing value from 'document''document-or-file'; displayed label/icon and QUERY_FILTERS.documentAndFile remain unchanged.
Soup view persisted state
js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
Bumped PERSISTED_STATE_VERSION 1 → 2 and changed mount logic to treat persisted queryFilters as stale (initial mount sets query filters to {} when stale).

Possibly related PRs

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title follows conventional commits format with 'fix:' prefix and is 60 characters, within the 72-character limit. It clearly summarizes the main change addressing the search soup index issue.
Description check ✅ Passed The description is related to the changeset, explaining the switch to document-or-file filter for file search and the version bump mentioned in the file changes.

✏️ 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 2aa269d and f033c27.

📒 Files selected for processing (2)
  • js/app/packages/app/component/next-soup/soup-view/filters-bar/search-filter-controls.tsx
  • js/app/packages/app/component/next-soup/soup-view/soup-view.tsx

Comment thread js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between f033c27 and 06de5d5.

📒 Files selected for processing (1)
  • js/app/packages/app/component/next-soup/soup-view/soup-view.tsx

Comment thread js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
@gbirman gbirman merged commit 2e4bc34 into main Apr 10, 2026
23 checks passed
@gbirman gbirman deleted the gab/fix/search-soup-index branch April 10, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant