Skip to content

Commit b5a3d77

Browse files
committed
Add AddQueryResource alternatives for bulk unpublish query params in 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.
1 parent 904fe3d commit b5a3d77

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Contentstack.Management.Core.Tests/Contentstack.Management.Core.Tests.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
<ItemGroup>
3636
<EmbeddedResource Include="Mock\*.json" />
3737
</ItemGroup>
38-
<ItemGroup>
39-
<Content Include="appsettings.json">
40-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
41-
</Content>
42-
</ItemGroup>
4338
<ItemGroup>
4439
<None Remove="Microsoft.AspNetCore.Http" />
4540
</ItemGroup>

Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ public BulkUnpublishService(JsonSerializer serializer, Contentstack.Management.C
3939
if (_skipWorkflowStage)
4040
{
4141
Headers["skip_workflow_stage_check"] = "true";
42+
// AddQueryResource("skip_workflow_stage_check", "true");
4243
}
4344

4445
if (_approvals)
4546
{
4647
Headers["approvals"] = "true";
48+
// AddQueryResource("approvals", "true");
4749
}
4850

4951
if (_isNested)

0 commit comments

Comments
 (0)