Skip to content

TEDEFO-5032 accept dateFieldId/timeFieldId on Field#78

Merged
rousso merged 1 commit into
developfrom
feature/TEDEFO-5029-analyze-emd
May 1, 2026
Merged

TEDEFO-5032 accept dateFieldId/timeFieldId on Field#78
rousso merged 1 commit into
developfrom
feature/TEDEFO-5029-analyze-emd

Conversation

@rousso
Copy link
Copy Markdown
Contributor

@rousso rousso commented May 1, 2026

Summary

Adds two new optional slots to Field so the analyser can deserialise V1-shape fields.json:

  • dateFieldId — set on time fields, points at the sibling date field.
  • timeFieldId — set on date fields, points at the sibling time field.

These two properties were re-added to V1's exported fields.json by TEDEFO-5016 (recovering shape that was silently dropped after the V1/V2 export split). The analyser's Jackson mapper runs with FAIL_ON_UNKNOWN_PROPERTIES, so any V1 export now fails to load until these slots exist on the analyser-side POJO.

Surfaced by the EMD round-trip comparison work (TEDEFO-5032 / Phase 3a) which routes a freshly-exported SDK through SdkLoader for diff-against-EMD.

No Drools rule reads either property today; this is purely about being able to deserialise without an UnrecognizedPropertyException. Getters/setters and the @JsonPropertyOrder entry are added for completeness.

Test plan

  • mvn clean install — existing Cucumber suite stays green
  • Round-trip equivalence test (in MDM repo, separate PR) loads a V1 fields.json without throwing

V1-shape fields.json (re-introduced by TEDEFO-5016) carries these two
sibling references on date/time fields. The analyser's strict Jackson
mapper (FAIL_ON_UNKNOWN_PROPERTIES) rejected them. Surfaced by the
EMD round-trip comparison.
@rousso rousso merged commit a047b02 into develop May 1, 2026
2 checks passed
@rousso rousso deleted the feature/TEDEFO-5029-analyze-emd branch May 1, 2026 09:45
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