Skip to content

feat(datacomparison): reference a column by tag DEV-231852 - #26

Merged
TimmersThomas merged 2 commits into
mainfrom
DEV-231852-column-reference-by-tag
Nov 9, 2026
Merged

TimmersThomas merged 2 commits into
mainfrom
DEV-231852-column-reference-by-tag

Conversation

@TimmersThomas

@TimmersThomas TimmersThomas commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • New EntityTypeColumnReferenceByTag on datacomparison.Reference, with optional TagKey / TagValue fields (json/yaml/gqlgen tagKey, tagValue).
  • Validate() returns ErrTagKeyRequired when the entity type is ColumnReferenceByTag and TagKey is empty. An empty TagValue means any value for the key.
  • language grammar documents the new reference form.
  • Enumer output regenerated (with the pinned Go 1.25.4 toolchain, because enumer v1.6.1 fails under newer Go).

Existing visitors keep working: Accept still calls Visitor.Literal, so a visitor that does not support the new type decides how to fail on it.

Test plan

  • go test -race -mod=readonly ./... passes (JSON and YAML round-trips, validation, enum string/parse, visitor accept)
  • go generate ./datacomparison leaves the generated files unchanged
  • golangci-lint run ./... reports 0 issues
  • After merge, tag a release (no tag created here); the backend PR (#1868) pins commit bd91586 until then, and moves to the release tag afterwards. Pushing the review commit changed this branch's head away from bd91586, which is fine because that commit stays reachable through this PR's history

🤖 Generated with Claude Code

Add EntityTypeColumnReferenceByTag with optional TagKey and TagValue
fields on Reference. Validate requires TagKey for the new type.

Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
@TimmersThomas
TimmersThomas requested a review from rmennes November 5, 2026 12:08
@TimmersThomas
TimmersThomas marked this pull request as ready for review November 5, 2026 12:10
Document the tag reference in the language grammar, add a YAML round-trip
test and fold the tag Accept test into the existing table. gopkg.in/yaml.v3
becomes a direct dependency for the test.

Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
@sonarqube-collibra

Copy link
Copy Markdown

@TimmersThomas
TimmersThomas merged commit d184ea9 into main Nov 9, 2026
5 checks passed
@TimmersThomas
TimmersThomas deleted the DEV-231852-column-reference-by-tag branch November 9, 2026 10:39
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