Skip to content

feat(content): add draft-to-published workflow endpoint#29

Merged
poyrazK merged 4 commits intomainfrom
feat/content-publish-workflow-v2
Apr 6, 2026
Merged

feat(content): add draft-to-published workflow endpoint#29
poyrazK merged 4 commits intomainfrom
feat/content-publish-workflow-v2

Conversation

@poyrazK
Copy link
Copy Markdown
Owner

@poyrazK poyrazK commented Apr 6, 2026

Summary

  • add POST /v1/content/{contentId}/publish with a dedicated request DTO and standard API envelope
  • enforce publish rules in content-service: channel membership, DRAFT state requirement, and playbackReady=true guard
  • add controller/service coverage for publish success, non-member access denial, and conflict paths (CONTENT_NOT_READY, CONTENT_STATE_INVALID), and document contract updates

Verification

  • mvn -pl content-service spotless:apply checkstyle:check
  • mvn -pl content-service test

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 6, 2026

Warning

Rate limit exceeded

@poyrazK has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 11 minutes and 32 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 11 minutes and 32 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 15399ecd-28d6-44f3-b96d-d1c44ebb5f1e

📥 Commits

Reviewing files that changed from the base of the PR and between 7516a6c and 7aaabea.

📒 Files selected for processing (6)
  • docs/contracts/rest-api-v1.md
  • services/java/content-service/src/main/java/com/cloudmedia/content/api/content/ContentController.java
  • services/java/content-service/src/main/java/com/cloudmedia/content/api/content/dto/PublishContentRequest.java
  • services/java/content-service/src/main/java/com/cloudmedia/content/application/content/ContentService.java
  • services/java/content-service/src/test/java/com/cloudmedia/content/api/content/ContentControllerWebMvcTest.java
  • services/java/content-service/src/test/java/com/cloudmedia/content/application/content/ContentServiceIntegrationTest.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/content-publish-workflow-v2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@poyrazK poyrazK merged commit 0a8c560 into main Apr 6, 2026
6 checks passed
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