feat(extraction): extract a bundle of a tenant, never documents without established rights #66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/38-tenant-extraction"
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?
Refs #38 (step 4c, first part: extraction). Applies the rights status of #52 to the first consumer of the documents.
Routes (any member of the tenant)
POST /t/<tenant>/api/tenant/extraction?preview: documents kept, and counts of those left out (rights, status, profile, unreadable).POST /t/<tenant>/api/tenant/extraction: the bundle,application/zip(fflate, new dependency 0.8.3): documents, index per theme, root index (okf_version: "0.2") naming the recipient, the source of authority and the commit.{ recipient, themes?, facets? }: a document is kept when, for every facet named, it lists at least one value asked.Rights enforced
unknownorexcluded, drafts, obsolete documents. A document written before v0.2 names no rights, so it waits for a curator.Library: Extraire for every member: recipient, themes, facet values, preview with the counts left out, download.
Replaces the instance-wide
/api/extract, removed in 4d. Telemetry is not in this PR: it needs a decision (see the conversation).Docs: section 11 of
docs/MULTI-TENANCY.md(EN, FR).Checks:
yarn test263/263 (4 new).yarn buildpasses.tsc --noEmit: the same 11 errors as ondevelop. Not tried in a browser.🤖 Generated with Claude Code