Skip to content

Port /data/participants/{id}/participatingPhysicalEntities to content-node - #517

Merged
adamjohnwright merged 3 commits into
mainfrom
port/participating-entities
Oct 17, 2026
Merged

adamjohnwright merged 3 commits into
mainfrom
port/participating-entities

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Spec 006 T077.

This endpoint lists every physical entity taking part in an event, all the way down.

  • Query: graph-core's PhysicalEntityRepository.getParticipatingPhysicalEntities, kept as written.
  • Serialisation: each entity is written by physicalEntityJson, which now covers every class (Port /data/complex/{id}/subunits and /data/complexes/{resource}/{identifier} #514).
  • Ids: read by graphCoreId.
  • Empty answers, as Java gives them: nothing found is []. An id that is neither a stable id nor a dbId gets a 200 with no body.

Parity: 14 requests against Java, all byte-identical. They cover every id form, REACT_ (found and not), unreadable ids and the 500, and a top-level pathway's 285 KB. The reviewer separately matched one reaction for each awkward entity class (Cell, Polymer, the three drugs, GenomeEncodedEntity, OtherEntity, CandidateSet), all byte-identical.

Review: an adversarial review found no defect. Its one surviving mutation (the id handed to the query) is now caught.

Routing: nginx and the dev proxy, beside /referenceEntities; the routing tests were shown failing first.

🤖 Generated with Claude Code

adamjohnwright and others added 3 commits October 17, 2026 20:05
…-node

graph-core's PhysicalEntityRepository query as written, every entity
written by physicalEntityJson, the id read by graphCoreId, and Java's
contract: [] for nothing found, a bare 200 for an id that is neither.
Byte-identical to Java over 14 requests. Routed in nginx and the dev
proxy beside /referenceEntities. Spec 006 T077.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 9eaa3e8 into main Oct 17, 2026
7 checks passed
@adamjohnwright
adamjohnwright deleted the port/participating-entities branch October 17, 2026 20:31
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