miroir/crates
jedarden b835c76525 fix(aliases): implement require_target_exists index validation
When aliases.require_target_exists config is set to true, alias creation
and updates now validate that the target index exists on all Meilisearch
nodes before proceeding.

Replaced two TODOs in routes/aliases.rs with actual implementation:
- create_alias: validates single target and all multi-targets
- update_alias: validates new target on alias flip

The check uses Meilisearch's GET /indexes/{uid} endpoint which returns:
- 200 if index exists
- 404 if index not found
- Other HTTP errors for connectivity/auth issues

Closes: bf-gfiw8

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 18:50:14 -04:00
..
miroir-core fix(reshard): implement real progress tracking for reshard status endpoint 2026-05-26 18:42:45 -04:00
miroir-ctl feat(explain): complete Explain API integrations (plan §13.20) 2026-05-26 17:55:36 -04:00
miroir-proxy fix(aliases): implement require_target_exists index validation 2026-05-26 18:50:14 -04:00