Skip to content

undirected_relation: write and read relatum_id only (drop entity_id) - #365

Merged
jesshaley merged 2 commits into
V2from
claude/relata-only
Nov 2, 2026
Merged

jesshaley merged 2 commits into
V2from
claude/relata-only

Conversation

@jesshaley

Copy link
Copy Markdown
Collaborator

Builds the DID-matlab part of [undirected ends are relata] (Decided by Jess Haley, 2026-11-01, did-schema docs/plans/did_v2_go_forward_class_audit.md): "undirected_relation.entity_id is renamed relatum_id. ... DID-matlab and NDI-matlab read both names and write the one the schema declares first, then the schema renames it, then the code drops entity_id." Its tail on did-schema main: Build pending: DID-matlab, NDI-matlab (drop entity_id).

did-schema main declares only relatum_id on schemas/did_v2/relation/undirected_relation.json (its depends_on has one entry, relatum_id).

Changes

  • did2.build.undirectedRelation writes relatum_id always. The schema probe that fell back to entity_id is deleted.
  • did2.build.relatumIds reads relatum_id edges only. An entity_id edge is not an end.
  • testBuild: the builder writes relatum_id only, and the loaded schema declares relatum_id and not entity_id. relatumIds reads no entity_id edge.
  • tests/+did2/+unittest/+helpers/geneMappingSchema.m no longer rewrites undirected_relation.json (did-schema declares relatum_id).
  • Comment in +migrators_j/gene_list_mapping.m. No migration behaviour changes: on did-schema main the builder already wrote relatum_id.

The NDI-matlab part is a separate PR (NDI-matlab claude/relata-only).

Not run locally (no MATLAB here). CI is the first run.


Generated by Claude Code

Builds the last step of [undirected ends are relata] (Jess Haley,
2026-11-01, did-schema did_v2_go_forward_class_audit.md): the code read both
names (#338), did-schema renamed the edge (main declares only relatum_id),
and now the code drops entity_id.

- did2.build.undirectedRelation writes relatum_id always; the schema probe
  for the old name is gone.
- did2.build.relatumIds reads relatum_id edges only.
- testBuild: the builder writes relatum_id only and the schema in use
  declares relatum_id and not entity_id; an entity_id edge is not an end.
- geneMappingSchema no longer rewrites undirected_relation (did-schema
  declares relatum_id).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
@jesshaley
jesshaley marked this pull request as ready for review November 2, 2026 03:31
@jesshaley
jesshaley merged commit e3b0d06 into V2 Nov 2, 2026
12 of 13 checks passed
@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (ee4ae61) to head (e6ae4f6).
⚠️ Report is 9 commits behind head on V2.

Additional details and impacted files
@@    Coverage Diff    @@
##   V2   #365   +/-   ##
=========================
=========================

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

jesshaley pushed a commit to Waltham-Data-Science/DID-schema that referenced this pull request Nov 2, 2026
- [ndi_document read as base], [rename clashes are malformed]: the
  second-pass readers read raw v1, NDI-matlab c648e3d1 (#1144).
- [fields outside the template are malformed]: second-pass carries of an
  off-template field cite carry-100, NDI-matlab c648e3d1 (#1144).
- [ensemble and generic_file keep their conversions]: ensembleMembership
  reads the raw v1 map, NDI-matlab fdeb77a1 (#1143).
- [undirected ends are relata]: NDI-matlab drops entity_id, 646f4c0f
  (#1142); DID-matlab stays pending on VH-Lab/DID-matlab#365.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
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.

2 participants