feat(5736): add GetVariantMetadataTags; deprecate GetDataCsvariantsAttribute#50
Merged
OMpawar-21 merged 4 commits intodevelopmentfrom Apr 1, 2026
Merged
feat(5736): add GetVariantMetadataTags; deprecate GetDataCsvariantsAttribute#50OMpawar-21 merged 4 commits intodevelopmentfrom
OMpawar-21 merged 4 commits intodevelopmentfrom
Conversation
…orkflow Adds generate_test_report.py, run-test-case/run-unit-test-case.sh, unit-test workflow, and test project cleanup .
reeshika-h
previously approved these changes
Mar 31, 2026
cs-raj
approved these changes
Apr 1, 2026
cs-raj
requested changes
Apr 1, 2026
cs-raj
previously approved these changes
Apr 1, 2026
cs-raj
approved these changes
Apr 1, 2026
reeshika-h
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
Introduces
GetVariantMetadataTags(JObject/JArray+ content type UID) as the supported API for building thedata-csvariantsHTML payload. Behavior matches the previous implementation.Marks
GetDataCsvariantsAttributeas[Obsolete]; both overloads are thin wrappers that delegate toGetVariantMetadataTagsso existing callers keep working. Removal is planned in a future major release.Bumps package version to 1.2.0 (minor, backward compatible).
Changes
Contentstack.Utils/Utils.cs: NewGetVariantMetadataTagsoverloads with XML docs; obsoleteGetDataCsvariantsAttributedelegating to them.Contentstack.Utils.Tests/VariantAliasesTest.cs: Tests renamed/updated to useGetVariantMetadataTags; delegation test with#pragmafor obsolete API.CHANGELOG.md: 1.2.0 entry.Directory.Build.props:1.1.0→1.2.0.Migration
Replace:
Utils.GetDataCsvariantsAttribute(entry, contentTypeUid)→
Utils.GetVariantMetadataTags(entry, contentTypeUid)Utils.GetDataCsvariantsAttribute(entries, contentTypeUid)→
Utils.GetVariantMetadataTags(entries, contentTypeUid)