feat: taxonomy publish/unpublish/localize/unlocalize + terms localize/unlocalize - #179
Closed
OMpawar-21 wants to merge 2 commits into
Closed
feat: taxonomy publish/unpublish/localize/unlocalize + terms localize/unlocalize#179OMpawar-21 wants to merge 2 commits into
OMpawar-21 wants to merge 2 commits into
Conversation
…calize/unlocalize
Closes parity gap with JS SDK and Java (feat/DX-9676-taxonomy-publish).
Taxonomy (taxonomy.py):
- publish(data) → POST /taxonomies/publish (collection-level)
- unpublish(data) → POST /taxonomies/unpublish (collection-level)
- localize(data, locale) → POST /taxonomies/{uid}?locale= (instance-level)
- unlocalize(locale) → DELETE /taxonomies/{uid}?locale= (instance-level)
Terms (terms.py):
- localize(data, locale) → POST /taxonomies/{t}/terms/{uid}?locale= (instance-level)
- unlocalize(locale) → DELETE /taxonomies/{t}/terms/{uid}?locale= (instance-level)
21/21 unit tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
…nlocalize and terms localize/unlocalize test_07_taxonomy.py: - TestTaxonomyLocalize: localize → unlocalize against live stack - TestTaxonomyPublish: publish → unpublish (skips gracefully if taxonomy_publish feature not enabled) test_08_terms.py: - TestTermsLocalize: localize → unlocalize against live stack Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
OMpawar-21
marked this pull request as draft
August 3, 2026 19:01
Contributor
Author
|
Closing for now — demo preparation in progress. Will reopen when ready to build. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
publish(data)andunpublish(data)toTaxonomy—POST /taxonomies/publish|unpublish(collection-level)localize(data, locale)andunlocalize(locale)toTaxonomy—POST|DELETE /taxonomies/{uid}?locale=(instance-level)localize(data, locale)andunlocalize(locale)toTerms—POST|DELETE /taxonomies/{t}/terms/{uid}?locale=(instance-level)Reference: Java SDK feat/DX-9676-taxonomy-publish
TRD: https://contentstack.atlassian.net/wiki/spaces/CD/pages/3573580300
Test plan
python3 -m pytest tests/unit/taxonomies/ tests/unit/terms/— 21/21 passedtest_publish→ verifies POST totaxonomies/publishtest_unpublish→ verifies POST totaxonomies/unpublishtest_localize→ verifies POST totaxonomies/{uid}?locale=hi-intest_unlocalize→ verifies DELETE totaxonomies/{uid}?locale=hi-intest_localize(terms) → verifies POST to.../terms/{uid}?locale=hi-intest_unlocalize(terms) → verifies DELETE to.../terms/{uid}?locale=hi-in🤖 Generated with Claude Code