feat
patch
task/admin-repair-identity-repo
#1 / 1
feat: admin repair-identity-repo endpoint
POST /api/admin/repair-identity-repo recreates the canonical {handle}/identity repo for identities whose repo was lost in a DB reset. Idempotent: returns created=false when the repo already exists. Requires is_admin=True.
Tests: AR_01 (403 non-admin), AR_02 (404 unknown), AR_03 (creates), AR_04 (idempotent), AR_05 (private/identity domain/correct pubkey).
sha256:b59e2315ea65229202f685648100a8f2111013205b1239a8694b60541d0d0d81
sha
+34
symbols
2 changed · 977 in snapshot
files
sha256:1686f60653d9e2b99182013cf3edadfc24a243412c4c1f25a398afec935938a7
snapshot
+34
symbols added
2
files changed
977
files in snapshot
0
dead code introduced
Semantic Changes
34 symbols
+
test_ar02_unknown_handle_gets_404
function
async_function test_ar02_unknown_handle_gets_404 L141–151
+
test_ar03_creates_repo_when_missing
function
async_function test_ar03_creates_repo_when_missing L158–182
+
test_ar04_idempotent_when_repo_exists
function
async_function test_ar04_idempotent_when_repo_exists L189–217
+
test_ar05_created_repo_attributes
function
async_function test_ar05_created_repo_attributes L224–293
Files Changed
+1
~1
977 in snapshot
+1
~1
977 in snapshot
← Older
Oldest on task/admin-repair-identity-repo
All commits
Newer →
Latest on task/admin-repair-identity-repo
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:b59e2315ea65229202f685648100a8f2111013205b1239a8694b60541d0d0d81 --body "your comment"
No comments yet. Be the first to start the discussion.