FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: taxonomy publish/unpublish/localize/unlocalize + terms localize/unlocalize by OMpawar-21 · Pull Request #179 · contentstack/contentstack-management-python · GitHub

feat: taxonomy publish/unpublish/localize/unlocalize + terms localize/unlocalize - #179

Closed
OMpawar-21 wants to merge 2 commits into
developmentfrom
feat/taxonomy-publish-unpublish-localize
Closed

feat: taxonomy publish/unpublish/localize/unlocalize + terms localize/unlocalize#179
OMpawar-21 wants to merge 2 commits into
developmentfrom
feat/taxonomy-publish-unpublish-localize

Conversation

Copy link
Copy Markdown
Contributor

Summary

  • Adds publish(data) and unpublish(data) to Taxonomy — POST /taxonomies/publish|unpublish (collection-level)
  • Adds localize(data, locale) and unlocalize(locale) to Taxonomy — POST|DELETE /taxonomies/{uid}?locale= (instance-level)
  • Adds localize(data, locale) and unlocalize(locale) to Terms — 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 passed
  • test_publish → verifies POST to taxonomies/publish
  • test_unpublish → verifies POST to taxonomies/unpublish
  • test_localize → verifies POST to taxonomies/{uid}?locale=hi-in
  • test_unlocalize → verifies DELETE to taxonomies/{uid}?locale=hi-in
  • test_localize (terms) → verifies POST to .../terms/{uid}?locale=hi-in
  • test_unlocalize (terms) → verifies DELETE to .../terms/{uid}?locale=hi-in

🤖 Generated with Claude Code

…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>
OMpawar-21 requested a review from a team as a code owner August 3, 2026 18:08

snyk-io Bot commented Aug 3, 2026
edited
Loading

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 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

Copy link
Copy Markdown
Contributor Author

Closing for now — demo preparation in progress. Will reopen when ready to build.

OMpawar-21 closed this Aug 4, 2026
OMpawar-21 deleted the feat/taxonomy-publish-unpublish-localize branch August 4, 2026 02:07
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL