Skip to content

Add AddQueryResource alternatives for bulk unpublish query params in …#135

Closed
OMpawar-21 wants to merge 2 commits intodevelopmentfrom
enhc/DX-3233
Closed

Add AddQueryResource alternatives for bulk unpublish query params in …#135
OMpawar-21 wants to merge 2 commits intodevelopmentfrom
enhc/DX-3233

Conversation

@OMpawar-21
Copy link

Pull Request: Add commented AddQueryResource alternatives in BulkUnpublishService (DX-3233)

Summary

Documents an alternative way to pass bulk unpublish options by adding commented AddQueryResource calls in BulkUnpublishService.cs. No behavior change; options are still sent via request headers only.

Changes

  • File: Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs
  • Added comment // AddQueryResource("skip_workflow_stage_check", "true"); next to Headers["skip_workflow_stage_check"] = "true";
  • Added comment // AddQueryResource("approvals", "true"); next to Headers["approvals"] = "true";

Rationale

The comments serve as a reference for sending these options as query parameters via AddQueryResource instead of (or in addition to) headers, e.g. for API compatibility or future refactors.

Testing

  • No functional change; existing tests remain valid.
  • Verified existing bulk unpublish behavior (manual or automated).

Related

  • Ticket: DX-3233

…BulkUnpublishService.cs.

Description
In BulkUnpublishService.cs, two comment-only lines were added to document an alternative way of sending the bulk unpublish options:
skip_workflow_stage_check – A commented call AddQueryResource("skip_workflow_stage_check", "true") was added next to the existing Headers["skip_workflow_stage_check"] = "true" assignment.
approvals – A commented call AddQueryResource("approvals", "true") was added next to the existing Headers["approvals"] = "true" assignment.
@OMpawar-21 OMpawar-21 requested a review from a team as a code owner February 25, 2026 08:52
@OMpawar-21 OMpawar-21 requested review from cs-raj and sunil-lakshman and removed request for a team February 25, 2026 08:52
@OMpawar-21 OMpawar-21 closed this Feb 27, 2026
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