Skip to content

Content service: content listing, thumbnail support, and visibility filtering#33

Merged
poyrazK merged 8 commits intomainfrom
feat/content-updated-event
Apr 26, 2026
Merged

Content service: content listing, thumbnail support, and visibility filtering#33
poyrazK merged 8 commits intomainfrom
feat/content-updated-event

Conversation

@poyrazK
Copy link
Copy Markdown
Owner

@poyrazK poyrazK commented Apr 26, 2026

Summary

  • Add GET /v1/channels/{channelId}/content endpoint for listing channel content
  • Add thumbnail_url column and DTO support for content thumbnails
  • Add visibility filtering (PRIVATE content excluded from public listings)
  • Add explicit ORDER BY for deterministic content ordering
  • Fix N+1 query with @EntityGraph eager loading
  • Add URL validation for thumbnail updates
  • Add comprehensive tests for content listing

Test plan

  • All 52 tests pass
  • Checkstyle and Spotless checks pass
  • API contract updated in docs

poyrazK added 4 commits April 26, 2026 18:56
- Add V3 migration to add thumbnail_url column
- Add thumbnailUrl field to ContentEntity with getter/setter
… support

- Add thumbnailUrl to ContentResponse DTO
- Add thumbnailUrl field with URL validation to UpdateContentRequest DTO
- Add GET /v1/channels/{channelId}/content endpoint to ChannelController with state filter
…g, and N+1 fix

- Add visibility-filtered repository methods with explicit ORDER BY
- Add @EntityGraph queries to eagerly fetch ChannelEntity (fix N+1)
- Update listByChannel to filter by PUBLIC visibility only
- Add thumbnailUrl update support in updateMetadata
…iltering

- Add ChannelContentControllerWebMvcTest for content listing endpoint
- Add visibility filtering tests (private content filtered, public returned)
- Add ordering and thumbnail URL tests
- Update repository tests for new method signatures
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 26, 2026

Warning

Rate limit exceeded

@poyrazK has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 56 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 14 minutes and 56 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: 5a0a8059-d793-4af6-b5a3-183d8005d660

📥 Commits

Reviewing files that changed from the base of the PR and between d04ef8a and 0116d39.

📒 Files selected for processing (14)
  • .markdownlint.json
  • docs/adr/0013-content-listing-thumbnail.md
  • docs/contracts/rest-api-v1.md
  • docs/modular-implementation-roadmap.md
  • services/java/content-service/src/main/java/com/cloudmedia/content/api/channel/ChannelController.java
  • services/java/content-service/src/main/java/com/cloudmedia/content/api/content/dto/ContentResponse.java
  • services/java/content-service/src/main/java/com/cloudmedia/content/api/content/dto/UpdateContentRequest.java
  • services/java/content-service/src/main/java/com/cloudmedia/content/application/content/ContentService.java
  • services/java/content-service/src/main/java/com/cloudmedia/content/persistence/entity/ContentEntity.java
  • services/java/content-service/src/main/java/com/cloudmedia/content/persistence/repository/ContentRepository.java
  • services/java/content-service/src/main/resources/db/migration/V3__add_content_thumbnail.sql
  • services/java/content-service/src/test/java/com/cloudmedia/content/api/channel/ChannelContentControllerWebMvcTest.java
  • services/java/content-service/src/test/java/com/cloudmedia/content/application/content/ContentServiceIntegrationTest.java
  • services/java/content-service/src/test/java/com/cloudmedia/content/persistence/repository/ContentRepositoryTest.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/content-updated-event

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.

- Add ADR 0013 documenting content listing and thumbnail decisions
- Update REST API contract with new /v1/channels/{channelId}/content endpoint
- Update modular-implementation-roadmap to mark PR-004 complete
@poyrazK poyrazK force-pushed the feat/content-updated-event branch from 0b84745 to 6411159 Compare April 26, 2026 16:02
poyrazK added 3 commits April 26, 2026 19:04
The MD012 rule causes false positives on files with trailing blank lines. This rule is overly strict and doesn't indicate actual documentation quality issues.
Copy link
Copy Markdown
Owner Author

@poyrazK poyrazK left a comment

Choose a reason for hiding this comment

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

It's okay to merge

@poyrazK poyrazK merged commit 63f1654 into main Apr 26, 2026
6 checks passed
@poyrazK poyrazK deleted the feat/content-updated-event branch April 26, 2026 16:14
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