Skip to content

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

Merged
OMpawar-21 merged 4 commits intodevelopmentfrom
enhc/DX-5736
Apr 1, 2026
Merged

feat(5736): add GetVariantMetadataTags; deprecate GetDataCsvariantsAttribute#50
OMpawar-21 merged 4 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
reeshika-h
reeshika-h previously approved these changes Mar 31, 2026
cs-raj
cs-raj previously approved these changes Apr 1, 2026
@OMpawar-21 OMpawar-21 dismissed stale reviews from cs-raj and reeshika-h via d3642e5 April 1, 2026 06:56
@OMpawar-21 OMpawar-21 merged commit 32ec84f into development Apr 1, 2026
11 checks passed
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.

3 participants