Skip to content

Port /data/entity/{id}/componentOf to content-node - #515

Merged
adamjohnwright merged 3 commits into
mainfrom
port/component-of
Oct 17, 2026
Merged

adamjohnwright merged 3 commits into
mainfrom
port/component-of

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Spec 006 T076.

GET /data/entity/{id}/componentOf lists what an entity or event is directly part of, grouped by relationship.

  • Query: graph-core's ComponentOfLinkageRepository query, kept as written. Groups and members come in Neo4j's order, because Java never sorts them; ComponentOf.sortByName has no caller in the deployed jars.
  • Ids: read by graphCoreId.
  • Not found: an unknown id, or one that is part of nothing, gets Java's 404 envelope.

Parity: 21 requests against Java, all byte-identical (a 404 body's url is a declared difference). They cover:

  • stable, dbId, REACT_ (found and not), versioned and matrix-parameter ids;
  • events, and every class of entity;
  • ATP's 968 KB answer.

Review: an adversarial review found no defect. It corrected two comments, and its two surviving mutations (id decoding, the 404 envelope) are now caught by tests.

Routing: nginx and the dev proxy, beside /otherForms. That route's comment no longer says in-depth stays with Java. The routing tests were shown failing first.

🤖 Generated with Claude Code

adamjohnwright and others added 3 commits October 17, 2026 19:27
graph-core's ComponentOfLinkageRepository query as written, groups and
members in Neo4j's order (Java never sorts them), the id read by
graphCoreId. Byte-identical to Java over 21 requests. Routed in nginx and
the dev proxy beside /otherForms, whose comment no longer says in-depth
stays with Java. Spec 006 T076.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elope

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 43c20e5 into main Oct 17, 2026
7 checks passed
@adamjohnwright
adamjohnwright deleted the port/component-of branch October 17, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant