Skip to content

Settings: shared indexing switch - #491

Open
generall wants to merge 3 commits into
masterfrom
feat/shared-indexing-settings
Open

generall wants to merge 3 commits into
masterfrom
feat/shared-indexing-settings

Conversation

@generall

@generall generall commented Dec 4, 2026

Copy link
Copy Markdown
Member

What

UI for the runtime shared indexing switch added in qdrant/qdrant#11828 (GET/PUT /cluster/settings/shared_indexing, Qdrant ≥ 1.20.4).

A Shared Indexing card on the Settings page, below Quotas:

  • Off/On switch in the card header, styled like the Quotas one. It applies on click (PUT …?wait=true with {"enabled": bool}), with no Save button, since there is only one flag. The switch moves right away and the state is re-read from the server. If the change is refused (e.g. 400 because not all peers are on ≥ 1.20.4, or 403 without manage access), the switch is restored and the server's error is shown.
  • Status line: "New index builds go to the indexing service" / "New index builds run locally". The description notes that the switch applies cluster-wide and that builds already running on the indexing service are not stopped.
  • configured: false: the switch is disabled, and a notice says shared indexing is only available in Qdrant Cloud and has to be set up by Qdrant Cloud.
  • The card is hidden when the endpoint returns 404 (Qdrant < 1.20.4) or 403 (no global read access).
  • Other load errors show an error with a Retry button.

Also adds MSW mock handlers (configured: true, enabled: false) for npm run dev:msw.

Screenshots (mock data)

Configured, off Configured, on Not configured
off on not configured

Testing

  • src/components/Settings/SharedIndexingCard.test.jsx: 7 tests covering loading the state, turning it on, a refused change, not configured, hiding on 404/403, and Retry.
  • npx vitest run: all tests pass. eslint, prettier and npm run build are clean.
  • Checked in the browser with npm run dev:msw: toggling sends the PUT and the status line updates.
  • Not checked against a real Qdrant ≥ 1.20.4 with indexing_service configured.

Open points

  • configured is reported by the peer serving the request, so a cluster where only some peers have the indexing service set up can show different states depending on the peer.
  • The card loads once and doesn't poll (Quotas refreshes every 5 s), so a change made elsewhere shows up only after a reload.

🤖 Generated with Claude Code

Written with Overlord from https://overlord.qdrant.tech/r/1531/t/10725

Andrey Vasnetsov and others added 2 commits December 2, 2026 08:50
Card on the Settings page for GET/PUT /cluster/settings/shared_indexing
(qdrant/qdrant#11828). The switch applies immediately with wait=true and
is restored if the server refuses the change. It is disabled with a hint
when the indexing service is not configured on the peer, and the card is
hidden when the endpoint is missing (Qdrant < 1.20.4) or not readable (403).

Includes MSW mock handlers and component tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lockfile-only, all within existing semver ranges:
- react-router 8.3.0 -> 8.5.3 (npm audit fix)
- @tailwindcss/cli 4.1.11 -> 4.3.5 (via @uppy/components), which drops tar
- plus in-range transitive bumps pulled in by npm audit fix

npm audit --production now reports 0 vulnerabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@generall
generall requested a review from trean December 4, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant