feat: taxonomy publish/unpublish/unlocalize + terms unlocalize - #213
Closed
OMpawar-21 wants to merge 2 commits into
Closed
feat: taxonomy publish/unpublish/unlocalize + terms unlocalize#213OMpawar-21 wants to merge 2 commits into
OMpawar-21 wants to merge 2 commits into
Conversation
Closes parity gap with JS SDK and Java (feat/DX-9676-taxonomy-publish).
Taxonomy (Taxonomy.cs):
- Publish(model) + PublishAsync → POST /taxonomies/publish (ThrowIfUidNotEmpty)
- Unpublish(model) + UnpublishAsync → POST /taxonomies/unpublish (ThrowIfUidNotEmpty)
- Unlocalize(locale) + UnlocalizeAsync → DELETE /taxonomies/{uid}?locale= (ThrowIfUidEmpty)
Term (Term.cs):
- Unlocalize(locale) + UnlocalizeAsync → DELETE .../terms/{uid}?locale= (ThrowIfUidEmpty)
New: TaxonomyPublishModel.cs, TaxonomyPublishService.cs (root-level body serializer).
44/44 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. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
… and terms unlocalize (Test280-289)
Test280-283: Publish/Unpublish (sync + async) — looks up environment at runtime; marks Inconclusive
if taxonomy_publish feature flag is not enabled on the test stack.
Test284-285: Taxonomy.Unlocalize/UnlocalizeAsync — localizes first, then removes the locale.
Test286-287: Term.Unlocalize/UnlocalizeAsync — same pattern on root term.
Test288: Guard — Publish throws InvalidOperationException when UID is set.
Test289: Guard — Unlocalize throws ArgumentException when no UID is set.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
OMpawar-21
marked this pull request as draft
August 3, 2026 19:00
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(model)/PublishAsynctoTaxonomy—POST /taxonomies/publish(collection-level,ThrowIfUidNotEmpty)Unpublish(model)/UnpublishAsynctoTaxonomy—POST /taxonomies/unpublish(collection-level,ThrowIfUidNotEmpty)Unlocalize(locale)/UnlocalizeAsynctoTaxonomy—DELETE /taxonomies/{uid}?locale=(instance-level,ThrowIfUidEmpty)Unlocalize(locale)/UnlocalizeAsynctoTerm—DELETE .../terms/{uid}?locale=(instance-level,ThrowIfUidEmpty)TaxonomyPublishModel(locales, environments, items, scheduled_at)TaxonomyPublishService<T>— root-level body serializer (publish/unpublish body is not field-wrapped unlikeCreateUpdateService)Reference: Java SDK feat/DX-9676-taxonomy-publish
TRD: https://contentstack.atlassian.net/wiki/spaces/CD/pages/3573580300
Test plan
dotnet test --filter "TaxonomyTest|TermTest"— 44/44 passedPublish/UnpublishthrowInvalidOperationExceptionwhen UID is setTaxonomy.Unlocalize/Term.UnlocalizethrowArgumentExceptionwhen UID is emptyPublish,Unpublish,Unlocalize(sync + async) returnContentstackResponse🤖 Generated with Claude Code