Skip to content

RI-7944: Handle edge cases when making keys searchable from Browser Page#5638

Draft
dantovska wants to merge 2 commits intomainfrom
fe/feature/RI-7944/browser-index-edge-cases
Draft

RI-7944: Handle edge cases when making keys searchable from Browser Page#5638
dantovska wants to merge 2 commits intomainfrom
fe/feature/RI-7944/browser-index-edge-cases

Conversation

@dantovska
Copy link
Contributor

What

Handle two edge cases for the "Make keys searchable from Browser" feature:

  • Redis < 6.0: The SCAN ... TYPE filter is not supported. Added a proactive version check (RedisFeature.ScanTypeFilter) so the endpoint returns empty results immediately without issuing SCAN commands or producing error logs.
  • RediSearch module missing: The create-index page now checks module availability via useRedisInstanceCompatibility and shows the RqeNotAvailable guard instead of the create-index form, matching the behavior on the main Vector Search page.

Testing

  • Verify on Redis < 6: no Index buttons appear on folders, no server errors logged.
  • Verify with RediSearch absent: clicking Index on a folder navigates to vector search and shows the "RQE not available" screen.
  • yarn test:api -- --testPathPattern='keys.service.spec.ts' — includes test for Redis < 6 skip.
  • node node_modules/.bin/jest redisinsight/ui/src/pages/vector-search/pages/VectorSearchCreateIndexPage -c jest.config.cjs — includes 4 tests for the module guard.

@dantovska dantovska self-assigned this Mar 13, 2026
@jit-ci
Copy link

jit-ci bot commented Mar 13, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@github-actions
Copy link
Contributor

github-actions bot commented Mar 13, 2026

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.15% 23092/28110
🟡 Branches 67.32% 9714/14430
🟡 Functions 77.19% 6254/8102
🟢 Lines 82.61% 22600/27358

Test suite run success

6408 tests passing in 763 suites.

Report generated by 🧪jest coverage report action from 92fe6ea

@dantovska dantovska force-pushed the fe/feature/RI-7944/tree-list-index-button branch from d06a440 to 7da66b5 Compare March 13, 2026 12:19
Base automatically changed from fe/feature/RI-7944/tree-list-index-button to main March 13, 2026 13:45
Add ScanTypeFilter to RedisFeature enum with version >= 6.0 check.
getNamespaceSearchable now proactively skips SCAN with TYPE filter
when not supported, avoiding unnecessary errors and log noise.

References: #RI-7944
Made-with: Cursor
Show RqeNotAvailable when RediSearch module is missing, matching
the guard already present on the main vector search page.

References: #RI-7944
Made-with: Cursor
@dantovska dantovska force-pushed the fe/feature/RI-7944/browser-index-edge-cases branch from abc5ae0 to 92fe6ea Compare March 13, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant