fix/wikijs-docs-recovery #174
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/wikijs-docs-recovery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
getPageByPath resolved pages through pages/search — a prefix-filtered, relevance-ranked query whose server-side default window can crowd the bound page out of the first result page, so provisioning reported live bound pages as 'missing remotely' and refused to proceed. Resolve by the deterministic path hash (cyrb53, the same lookup the viewer uses) with a paginated exact-match search fallback, and distinguish 401/403 inaccessible from 404 missing so a denied page is never treated as absent. Add a verified-state recovery surface for org Owners/Administrators: GET /o/{org}/projects/{project}/docs/diagnose reports site resolution, provisioner session health, bindings, and the real remote state of each bound page (found/moved/inaccessible/foreign/missing) plus the narrowest recommended action. POST .../docs/repair applies rebind (bookkeeping only), rebind_moved (ULID-marker-verified moved page inside the org subtree), or reinitialize (explicit confirm; releases only verified- absent bindings and lets the convergent ensure recreate just the missing structure). Foreign occupants and inaccessible pages always stay manual. Bound docs paths are now authoritative in provisioning so a repaired rebind to a moved location converges cleanly, while knowledge-base and public roots remain canonical since the Guests rule keys off them. provisioning errors for the bound-but-missing guard now point admins at Diagnose Docs instead of dead-ending.