fix(llm): also add note_embeddings to froca and consistency tests

This commit is contained in:
perf3ct 2025-06-02 15:49:45 +00:00
parent f3a21cda98
commit cc0795f812
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
3 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,7 @@ async function processEntityChanges(entityChanges: EntityChange[]) {
loadResults.addOption(attributeEntity.name);
} else if (ec.entityName === "attachments") {
processAttachment(loadResults, ec);
} else if (ec.entityName === "blobs" || ec.entityName === "etapi_tokens") {
} else if (ec.entityName === "blobs" || ec.entityName === "etapi_tokens" || ec.entityName === "note_embeddings") {
// NOOP
} else {
throw new Error(`Unknown entityName '${ec.entityName}'`);

View File

@ -48,6 +48,7 @@ interface ContentNoteIdToComponentIdRow {
noteId: string;
componentId: string;
}
interface NoteEmbeddingRow {}
type EntityRowMappings = {
notes: NoteRow;
@ -56,6 +57,7 @@ type EntityRowMappings = {
options: OptionRow;
revisions: RevisionRow;
note_reordering: NoteReorderingRow;
note_embeddings: NoteEmbeddingRow;
};
export type EntityRowNames = keyof EntityRowMappings;

View File

@ -799,6 +799,7 @@ class ConsistencyChecks {
this.runEntityChangeChecks("attributes", "attributeId");
this.runEntityChangeChecks("etapi_tokens", "etapiTokenId");
this.runEntityChangeChecks("options", "name");
this.runEntityChangeChecks("note_embeddings", "embedId");
}
findWronglyNamedAttributes() {