social.colibri.beta.polyfill.completeMigration
Asks the AppView to verify one repo the client copied to its PDS. The AppView syncs the repo from the PDS and compares it with its own copy. On a match the PDS becomes the source of truth. On a mismatch the repo stays hosted by the AppView, and the client may try again.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | polyfill.beta.colibri.social |
| Commit rev | 3n2benzskvd22 |
| Indexed |
Procedure
procedure · POSTInput
application/jsonThe space holding the repo.
Output
application/jsonmissing
arrayRecords the AppView holds that the PDS copy lacks or differs on, when verification fails.
Where the user's repos live after this call.
Errors
AuthRequired
The request has no valid service auth.
InvalidRequest
The arguments are inconsistent or malformed beyond schema validation.
SpaceNotFound
No space matches the given space reference.
NotAuthorized
The caller may not write to or read from this repo in the space.
RepoNotHosted
The AppView does not host the caller's repo in this space, because it lives on the caller's PDS. Write to the PDS instead.
MigrationNotStarted
The repo is not in the migrating state.
VerificationFailed
The PDS copy could not be read or did not match.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Starts moving the requesting user's hosted repos to their PDS. Each repo enters the migrating state, in which the AppView still accepts its writes. Calling it again resumes an interrupted migration.
-
Reports where the requesting user's space repos live and whether their PDS can host spaces now. The client routes space reads and writes by the mode, and starts a migration when the mode is polyfill and the PDS supports spaces.
-
Where a member's repos live. polyfill: the AppView hosts them because the member's PDS cannot. migrating: the client is copying them to the PDS, and the AppView stays authoritative until each copy verifies. native: the PDS hosts them and the AppView syncs from it.
-
Pages through every record in the requesting user's hosted repo in one space, in record key order per collection, so the client can replay them on its PDS.
-
social.colibri.beta.community.migrate
procedureStarts moving a repo-backed community onto spaces and returns once the move is queued. Structure, roles, members and bans are recreated in spaces stamped with migratedFrom. Message history of current members is copied from their public repos and served alongside as read-only legacy messages. The move runs in the background and reports progress through social.colibri.beta.sync.defs#communityProgressEvent. Calling it again while it runs returns the current state, and calling it after a failed atte