Skip to content

fix: make sure tenant_id is present in verifiers and issuers mongodb collection instances#32

Merged
leifj merged 2 commits intomainfrom
fix/correct-fields-in-mongodb-indexes
Feb 26, 2026
Merged

fix: make sure tenant_id is present in verifiers and issuers mongodb collection instances#32
leifj merged 2 commits intomainfrom
fix/correct-fields-in-mongodb-indexes

Conversation

@smncd
Copy link
Member

@smncd smncd commented Feb 26, 2026

An attempt to solve #31.

We explicitly drop the old index in case they already exist in the db, so this does not fall on the user.

…collection instances

- also use correct fields: `credential_issuer_identifier` instead of `identifier` and `url` instead of `did`
@smncd smncd self-assigned this Feb 26, 2026
@smncd smncd linked an issue Feb 26, 2026 that may be closed by this pull request
@smncd smncd requested a review from leifj February 26, 2026 16:15
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/storage/mongodb/mongodb.go 0.00% 10 Missing ⚠️
internal/api/admin_handlers.go 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@leifj leifj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a testcase and then we're gold

@smncd smncd marked this pull request as draft February 26, 2026 16:37
@leifj leifj marked this pull request as ready for review February 26, 2026 16:44
@leifj leifj merged commit 25189cf into main Feb 26, 2026
5 of 6 checks passed
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.

Faulty MongoDB indexes

2 participants