test(glm5): review #36275 — zai.glm-5#40
Closed
wezell wants to merge 1 commit into
Closed
Conversation
…tCMS#36275) ### Include scheduled bundles in GET /api/v1/publishing (resolves dotCMS#36267) ### Problem /api/v1/publishing only reads publishing_queue_audit. Bundles pushed with a future publish date have no audit row until the cron picks them up, so they were invisible to the API (the legacy JSP Queue tab showed them by reading publishing_queue directly). ### Change Surface those bundles through the existing endpoints as a new SCHEDULED status — no new endpoint. - PublishAuditStatus.Status: add SCHEDULED (negative sentinel code, never persisted). - PublisherAPI: add countScheduledBundleIds / getScheduledBundleIds — queue rows with publish_date IS NOT NULL and no audit row (excludes drafts); asset count from queue rows, env count via correlated subquery. - GET /api/v1/publishing: unions the scheduled tier with the audit tier as a contiguous block; pagination total and slicing stay exact. ?status=SCHEDULED filters to that tier; mixed filters work. - GET /api/v1/publishing/{id}: returns a synthesized SCHEDULED detail instead of 404. - DELETE /api/v1/publishing/purge?status=SCHEDULED: rejected (audit-based purge can't match it; points to per-bundle DELETE). - Views: add nullable scheduledPublishDate (future run time) so createDate keeps its meaning. - Regenerated openapi.yaml. ### Tests Integration tests in PublishingResourceIntegrationTest using the real push path: visibility/status, status filter (single + mixed), pagination total, detail-not-404, delete-cancels, transition to WAITING_FOR_PUBLISHING once an audit row appears, and a legacy-getQueueBundleIds-vs-API parity check. --------- Co-authored-by: Will Ezell <will@dotcms.com> Co-authored-by: Humberto Morera <31667212+hmoreras@users.noreply.github.com>
🤖 dotBot Review (Bedrock)Reviewed 11 file(s); 8 candidate(s) → 2 confirmed, 6 uncertain (unverified, kept for review). Confirmed findings
🔎 Uncertain (could not confirm or disprove — review manually)
zai.glm-5 · Run: #28257821964 · tokens: in: 24629 · out: 811 · total: 25440 · calls: 11 · est. ~$0.017 |
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.
Agentic reviewer @v3.3.0-beta.18 on a NEW dotCMS/core change (dotCMS#36275 — publishing API: include scheduled bundles). Model:
zai.glm-5. Reviewed diff = only dotCMS#36275 (11 files). Throwaway.