feat: add localized taxonomy and term delivery (CDA) support#190
feat: add localized taxonomy and term delivery (CDA) support#190cs-raj wants to merge 6 commits into
Conversation
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
Extends the .NET SDK with published-taxonomy fetch and term delivery
endpoints to match the TypeScript feat/taxonomy-publishing parity (CD-11371).
New:
- Term.cs — Fetch(locale?), Locales<T>(), Ancestors<T>(), Descendants<T>()
- TermQuery.cs — SetLocale()/IncludeFallback() chainable builder + Find<T>()
Extended Taxonomy class:
- Taxonomy(stack, uid) constructor
- _Url switches to /taxonomies/{uid} when uid is set
- Fetch<T>(locale?) — own HTTP path, parses $.taxonomy
- Term(termUid) → Term, Terms() → TermQuery
Extended ContentstackClient:
- Taxonomies(uid) overload
Tests:
- TaxonomyUnitTests — 46 unit tests (all pass)
- TaxonomyLocalisationTest — integration tests per CDA call
- TestDataHelper — taxonomy-publish stack config properties
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6274caa to
1940b78
Compare
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
…ntegration tests - Add includeFallback param to Term.Fetch<T>; serialize as string "true" to match CDA case-sensitivity (bool true serializes as "True" which the API rejects) - Pass includeFallback: true in Fetch_SingleTerm test to be consistent with how GetFirstTermUidAsync lists terms (with IncludeFallback) - Rewrite Find_AllTaxonomies test to call Terms().Find<JObject>() without locale instead of the entries-by-taxonomy endpoint which requires tagged entries
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
fix: added branch set via the stack config
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
| @@ -1,3 +1,11 @@ | |||
| ### Version: 2.29.0 | |||
| #### Date: Jul-15-2026 | |||
There was a problem hiding this comment.
pls update the date to release date @cs-raj / @OMpawar-21
Extends the .NET SDK with published-taxonomy fetch and term delivery endpoints to match the TypeScript feat/taxonomy-publishing parity (CD-11371).
New:
Extended Taxonomy class:
Extended ContentstackClient:
Tests: