Skip to content

feat(publishing): Implement DELETE /v1/publishing/purge endpoint - #34322#34415

Open
hassandotcms wants to merge 3 commits intomainfrom
34322-implement-purge-publishing-jobs-by-status
Open

feat(publishing): Implement DELETE /v1/publishing/purge endpoint - #34322#34415
hassandotcms wants to merge 3 commits intomainfrom
34322-implement-purge-publishing-jobs-by-status

Conversation

@hassandotcms
Copy link
Contributor

@hassandotcms hassandotcms commented Jan 27, 2026

Add bulk delete publishing jobs by status endpoint
Changes:

  • Add IN_PROGRESS_STATUSES and SAFE_PURGE_STATUSES constants to helper
  • Add isInProgressStatus() and getInProgressStatuses() validation methods
  • Add ResponseEntityPurgeView for Swagger documentation
  • Add 7 integration tests for purge endpoint validation

Checklist

  • Tests
  • Translations
  • Security Implications Contemplated (add notes if applicable)

Additional Info

** any additional useful context or info **

Screenshots

Original Updated
** original screenshot ** ** updated screenshot **

This PR fixes: #34322

…4322

Add bulk delete publishing jobs by status endpoint with async execution
and socket notifications for completion feedback.

Changes:
- Add IN_PROGRESS_STATUSES and SAFE_PURGE_STATUSES constants to helper
- Add isInProgressStatus() and getInProgressStatuses() validation methods
- Add purgePublishingJobs() endpoint with async DotSubmitter execution
- Add ResponseEntityPurgeView for Swagger documentation
- Add 7 integration tests for purge endpoint validation
@hassandotcms hassandotcms marked this pull request as ready for review February 3, 2026 11:13
@Test
public void test_purgeWithoutStatus_usesDefaults() throws Exception {
final String successBundle = createBundleWithStatus("purge-default-success", Status.SUCCESS);
final String failedBundle = createBundleWithStatus("purge-default-failed", Status.FAILED_TO_PUBLISH);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if a bundle with an InProgress status is created before invoking the callPurgeEndpoint(null)? Is that scenario covered in a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[TASK] Implement DELETE /v1/publishing/purge - Bulk delete publishing jobs by status

2 participants