Skip to content

[did2 #6] ndi.document read-time augmentation with legacy aliases #779

@stevevanhooser

Description

@stevevanhooser

Part of the NDI-matlab did2 migration. Target branch: Vnext.

Scope

When ndi.document materializes a V_delta doc (after the database layer's v1→V_delta normalization in issue 3), inject the legacy field aliases from ndi.compat.fieldAliases so customer code accessing doc.document_properties.probe_location.ontology_name (and the three other affected classes) still gets the right value.

  • Walk the alias table from issue 5.
  • For each row, copy the V_delta value into the legacy path.
  • Mirror depends_on(k).valuedepends_on(k).id for every entry.
  • Idempotent: re-running on an already-augmented struct is a no-op.

Out of scope

  • Write-back reconciliation — see issue 7.
  • Query path translation — see issue 8.

Dependencies

  • Issue 3 (database layer returns V_delta).
  • Issue 5 (alias table).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions