Skip to content

Commit 5d293b5

Browse files
authored
Merge pull request #198 from contentstack/enhc/DX-9681-taxonomy
feat(9681): add Taxonomy Publishing CDA support with localization
2 parents a16c6a9 + a313f8a commit 5d293b5

11 files changed

Lines changed: 2255 additions & 212 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
### Version: 3.2.0
2+
#### Date: Aug-3-2026
3+
4+
##### Feat:
5+
- Taxonomy Publishing CDA support
6+
- `Taxonomies(uid)` scopes to a specific taxonomy: `.Fetch<T>()`, `.Term(termUid)`, `.Terms()`
7+
- `Taxonomies().Find<T>()` — list all published taxonomies (`GET /taxonomies`)
8+
- New `Term` class: `.Fetch<T>()`, `.Locales<T>()`, `.Ancestors<T>()`, `.Descendants<T>()`
9+
- New `TermQuery` class: `.Find<T>()` for listing terms within a taxonomy
10+
- `Depth(int)` and `IncludeBranch()` on `Term`/`TermQuery` for hierarchy traversal control
11+
- `Skip(int)`, `Limit(int)`, `IncludeCount()` on `TermQuery` for paginated term listing
12+
- Added `Internals/TaxonomyRequestHelper` — shared request-building, header-merging, and error-parsing for `Taxonomy`/`Term`/`TermQuery`
13+
14+
- Taxonomy / Term / TermQuery — localization support
15+
- `SetLocale(string)` filters the taxonomy/term response to a specific locale (e.g. `"fr-fr"`)
16+
- `IncludeFallback()` returns the master-locale (`en-us`) version when a term/taxonomy isn't translated into the requested locale, instead of omitting it
17+
- Both compose correctly with hierarchy traversal — `Term(uid).SetLocale("fr-fr").IncludeFallback().Depth(2).Descendants<T>()` returns a full localized subtree, with untranslated nodes individually falling back to master locale in the same response
18+
- Fallback is per-node, not all-or-nothing: a single hierarchy fetch can return some terms translated and others fallen-back simultaneously — safe to use on partially-translated taxonomies
19+
20+
---
21+
122
### Version: 3.1.0
223
#### Date: Jul-20-2026
324

Contentstack.Core.Tests/Helpers/TestDataHelper.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,21 @@ static TestDataHelper()
127127
/// <summary>
128128
/// Gets the taxonomy term for India state (e.g., "maharashtra")
129129
/// </summary>
130-
public static string TaxIndiaState =>
130+
public static string TaxIndiaState =>
131131
GetRequiredConfig("TAX_INDIA_STATE");
132-
132+
133+
/// <summary>
134+
/// UID of the published taxonomy to use in localization tests (e.g. "gadgets").
135+
/// </summary>
136+
public static string TaxPublishTaxonomyUid =>
137+
GetRequiredConfig("TAX_PUBLISH_TAXONOMY_UID");
138+
139+
/// <summary>
140+
/// Locale code used for localized taxonomy/term delivery tests (e.g. "fr-fr").
141+
/// </summary>
142+
public static string TaxPublishLocale =>
143+
GetRequiredConfig("TAX_PUBLISH_LOCALE");
144+
133145
#endregion
134146

135147
#region Live Preview

0 commit comments

Comments
 (0)