Skip to content

feat(5736): add GetVariantMetadataTags; deprecate GetDataCsvariantsAttribute#50

Open
OMpawar-21 wants to merge 3 commits intodevelopmentfrom
enhc/DX-5736
Open

feat(5736): add GetVariantMetadataTags; deprecate GetDataCsvariantsAttribute#50
OMpawar-21 wants to merge 3 commits intodevelopmentfrom
enhc/DX-5736

Conversation

@OMpawar-21
Copy link
Copy Markdown
Contributor

Description

Summary

Introduces GetVariantMetadataTags (JObject / JArray + content type UID) as the supported API for building the data-csvariants HTML payload. Behavior matches the previous implementation.

Marks GetDataCsvariantsAttribute as [Obsolete]; both overloads are thin wrappers that delegate to GetVariantMetadataTags so 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: New GetVariantMetadataTags overloads with XML docs; obsolete GetDataCsvariantsAttribute delegating to them.
  • Contentstack.Utils.Tests/VariantAliasesTest.cs: Tests renamed/updated to use GetVariantMetadataTags; delegation test with #pragma for obsolete API.
  • CHANGELOG.md: 1.2.0 entry.
  • Directory.Build.props: 1.1.01.2.0.

Migration

Replace:

  • Utils.GetDataCsvariantsAttribute(entry, contentTypeUid)
    Utils.GetVariantMetadataTags(entry, contentTypeUid)
  • Utils.GetDataCsvariantsAttribute(entries, contentTypeUid)
    Utils.GetVariantMetadataTags(entries, contentTypeUid)

…orkflow

Adds generate_test_report.py, run-test-case/run-unit-test-case.sh, unit-test workflow, and test project cleanup .
@OMpawar-21 OMpawar-21 requested review from cs-raj and reeshika-h March 31, 2026 13:15
@OMpawar-21 OMpawar-21 requested a review from a team as a code owner March 31, 2026 13:15
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