Skip to content

feat(indexes): add device scope lookup contract - #57

Merged
KilianBoute merged 3 commits into
mainfrom
feat/device-scope-index
Aug 26, 2026
Merged

KilianBoute merged 3 commits into
mainfrom
feat/device-scope-index

Conversation

@KilianBoute

@KilianBoute KilianBoute commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Description

Adds a new device scope index contract for Migration Hub and validates it through automated tests.

The new index specification captures both canonical and legacy lookup paths used by device and cloud key queries. Keeping these contracts explicitly versioned improves visibility into expected database access patterns and helps prevent accidental index regressions during future schema or migration work.

The accompanying test coverage ensures:

  • the expected device and user indexes are declared correctly,
  • index ordering and key composition remain stable,
  • legacy compatibility is preserved,
  • and indexes remain non-unique until reconciliation is completed.

This improves the reliability of index management by turning database lookup assumptions into enforceable CI checks.

@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Add the non-unique compound index serving direct authenticated device/cloud-key resolution.
@KilianBoute
KilianBoute merged commit 736e169 into main Aug 26, 2026
6 checks passed
@KilianBoute
KilianBoute deleted the feat/device-scope-index branch August 26, 2026 07: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