mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-24 22:08:16 +00:00
* fix(ingestion): drop member edges to owners the file never emitted (#3747) The parse worker could emit HAS_METHOD/HAS_PROPERTY edges whose owner id named a node in the same file that was never materialized, so LadybugDB's COPY rejected them with "Unable to find primary key value" and the retry silently dropped the edge: - `const X = z.object({ k: f(cb) }).refine(cb)` is emitted as a Function, but its key's owner was spelled `Const:<file>:X`. - A TS `declare module 'm' {}` parses as a bare `module` node, which the shared container map labels `Trait`; no TS capture emits that node. After each file, the worker now removes member edges whose in-file owner was not emitted and re-attaches the member to its File with DEFINES (unless it already has one). Owners in other files are untouched and no node ids change. * fix(ingestion): settle the owner-edge guard when a file group throws processBatch catches a throw from processFileGroup and still returns the partial result, but the guard only settled the last open file after the loop completed. A throw after a member edge was appended (e.g. from an unguarded provider hook) let that file's dangling owner edge escape the guard and reach COPY. Per-file tracking now lives in createOwnerEdgeGuard, and processFileGroup settles it in a finally block around the per-file loop, so the partially processed file is checked on the error path too. --------- Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| config | ||
| core | ||
| lib | ||
| mcp | ||
| server | ||
| storage | ||
| types | ||
| utils | ||