Merged in feature/mutable-metadata1 (pull request #221)

M1, M2 and M3 complete

* M1, M2 and M3 complete

* review changes

* docs

* docs
This commit is contained in:
Jay Brown
2026-04-16 23:11:26 +00:00
parent ad7b21f3a2
commit 17fc813823
164 changed files with 44700 additions and 371 deletions
+11 -5
View File
@@ -113,12 +113,18 @@ func TestGetDocument(t *testing.T) {
err = cons.GetDocument(ctx, docId, queryapi.GetDocumentParams{})
require.NoError(t, err)
assert.Equal(t, http.StatusOK, rec.Code)
// Milestone 2.3a adds two new fields to DocumentEnriched. They are
// populated unconditionally (HasCustomMetadata as a *bool pointing to
// false when the document has no metadata; CustomSchemaId stays nil
// when no schema is bound).
falseVal := false
assertBody(t, rec, queryapi.DocumentEnriched{
Id: docId,
ClientId: "client_id",
Hash: "hash",
HasTextRecord: false,
Labels: []queryapi.LabelRecord{},
Id: docId,
ClientId: "client_id",
Hash: "hash",
HasTextRecord: false,
Labels: []queryapi.LabelRecord{},
HasCustomMetadata: &falseVal,
})
}