RI-7517 Hide custom indexes from "Saved Queries" list #4993
+47
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Stop showing custom indexes in the list with the "Saved Queries" on the new Search page. Only preset sample data indexes come with such queries, so we should show only them in the list.
Note: Previously, we were showing the index, but with a blank space, leaving the users without any control over it.
How it was tested
When only custom indexes are available
Note: If the database is not empty, you can run
flushdb
in the CLI, to make sure you can import sample dataYou shouldn't see any indexes in the list, although you have such in the Manage Indexes panel. They're not related to preset sample data for the Vector Search onboarding feature, so they don't have any saved queries.
When sample preset indexes with saved queries are available
Now, you should be able to see only these indexes in the Saved Queries panel.