Skip to content

feat(9681): add Taxonomy Publishing CDA support with localization - #198

Draft
OMpawar-21 wants to merge 2 commits into
developmentfrom
enhc/DX-9681-taxonomy
Draft

feat(9681): add Taxonomy Publishing CDA support with localization#198
OMpawar-21 wants to merge 2 commits into
developmentfrom
enhc/DX-9681-taxonomy

Conversation

@OMpawar-21

Copy link
Copy Markdown
Contributor

Summary

  • Adds Taxonomy Publishing access via the CDA: list all taxonomies, fetch a taxonomy, list/fetch terms, and walk term hierarchy (locales, ancestors, descendants).
  • Taxonomies(uid) scopes to a specific taxonomy; the existing Taxonomies() (entry-filtering) is untouched.
  • All calls support locale filtering and locale fallback, verified across multi-level term hierarchies (parent → child → grandchild).
  • Centralizes request-building, header-merging, and error-parsing for the new Taxonomy/Term/TermQuery classes into a single internal helper — no duplicated logic across the three.

API surface

stack.Taxonomies().Find<T>()                                  // list all taxonomies
stack.Taxonomies(uid).Fetch<T>()                               // fetch one taxonomy
stack.Taxonomies(uid).Terms().Find<T>()                        // list terms
stack.Taxonomies(uid).Term(termUid).Fetch<T>()                 // fetch one term
stack.Taxonomies(uid).Term(termUid).Locales<T>()               // term's locales
stack.Taxonomies(uid).Term(termUid).Ancestors<T>()             // term's ancestors
stack.Taxonomies(uid).Term(termUid).Descendants<T>()           // term's descendants

// modifiers: SetLocale, IncludeFallback, Depth, IncludeBranch, Skip, Limit, IncludeCount, AddParam

Test plan

  • Unit tests (mocked, no network) covering every modifier, factory guard, and constructor validation
  • Live integration tests against a real stack covering all endpoints, locale/fallback, and depth-limited hierarchy traversal (parent/child/grandchild)
  • Full existing unit suite passes with no regressions

🤖 Generated with Claude Code

Adds full read access to Taxonomy Publishing via the CDA: list all
taxonomies, fetch a single taxonomy, list/fetch terms within a taxonomy,
and walk term hierarchy (locales, ancestors, descendants). All calls
support locale filtering and locale fallback, including across nested
term hierarchies.

- ContentstackClient.Taxonomies(uid) scopes to a specific taxonomy;
  Taxonomies() (no uid) continues to support entry-filtering unchanged.
- New Term/TermQuery classes provide Fetch/Locales/Ancestors/Descendants
  and a fluent Find<T>() query builder (locale, depth, branch, pagination).
- New Internals/TaxonomyRequestHelper centralizes request-building,
  header-merging, and error-parsing across Taxonomy/Term/TermQuery.
- Unit tests (mocked) and live integration tests cover every endpoint,
  locale/fallback behavior, and multi-level term hierarchy traversal.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@OMpawar-21
OMpawar-21 requested a review from a team as a code owner July 28, 2026 03:27
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@OMpawar-21
OMpawar-21 requested a review from reeshika-h July 28, 2026 03:27
@OMpawar-21 OMpawar-21 changed the title feat(taxonomy): add Taxonomy Publishing CDA support with localization feat(9681): add Taxonomy Publishing CDA support with localization Jul 28, 2026
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@OMpawar-21 OMpawar-21 self-assigned this Jul 28, 2026
@OMpawar-21
OMpawar-21 marked this pull request as draft July 28, 2026 03:42
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