Skip to content

feat: user media profile#8693

Open
Kneesal wants to merge 4 commits intomainfrom
26-00-NC-feat-user-media-profile
Open

feat: user media profile#8693
Kneesal wants to merge 4 commits intomainfrom
26-00-NC-feat-user-media-profile

Conversation

@Kneesal
Copy link
Member

@Kneesal Kneesal commented Feb 5, 2026

Summary by CodeRabbit

Release Notes

  • New Features
    • Implemented user media profile functionality with language and country interest tracking capabilities
    • Added database infrastructure to link user profiles with video content preferences
    • Optimized profile-to-video associations for efficient data retrieval

@Kneesal Kneesal requested a review from tataihono February 5, 2026 01:07
@Kneesal Kneesal self-assigned this Feb 5, 2026
@Kneesal Kneesal added the type: feat Brand new functionality, features, pages, workflows, endpoints, etc. label Feb 5, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 5, 2026

Warning

Rate limit exceeded

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

⌛ 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.

Walkthrough

Introduces a new database schema for UserMediaProfile with associated migration, establishing a many-to-many relationship between UserMediaProfile and Video entities through a join table with cascading foreign key constraints.

Changes

Cohort / File(s) Summary
Database Migration
libs/prisma/media/db/migrations/20260205004807_20260205004802/migration.sql
Creates UserMediaProfile table and _UserMediaProfileToVideo join table with foreign key constraints and indexed lookup on Video references.
Prisma Schema
libs/prisma/media/db/schema.prisma
Adds new UserMediaProfile model with id, userId, languageInterests, countryInterests, and timestamps; links Video to UserMediaProfile via userMediaProfiles relation field.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • feat: add source info to the data model #6637: Modifies the Video Prisma model by adding new relation fields to link Video to another newly introduced model, similar structural pattern to this PR's UserMediaProfile relation addition.
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: user media profile' directly and clearly summarizes the main change: introducing a new UserMediaProfile model with its associated database table and relationships.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 26-00-NC-feat-user-media-profile

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.

@nx-cloud
Copy link

nx-cloud bot commented Feb 5, 2026

View your CI Pipeline Execution ↗ for commit bfe766c

Command Status Duration Result
nx affected --target=subgraph-check --base=2ea4... ✅ Succeeded 1s View ↗
nx affected --target=extract-translations --bas... ✅ Succeeded <1s View ↗
nx affected --target=lint --base=2ea40fa76c12ff... ✅ Succeeded 1s View ↗
nx affected --target=type-check --base=2ea40fa7... ✅ Succeeded 1s View ↗
nx run-many --target=codegen --all --parallel=3 ✅ Succeeded 1s View ↗
nx run-many --target=prisma-generate --all --pa... ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-05 01:58:00 UTC

@stage-branch-merger
Copy link

I see you added the "on stage" label, I'll get this merged to the stage branch!

@Kneesal Kneesal force-pushed the 26-00-NC-feat-user-media-profile branch from e9395de to 19f24bf Compare February 5, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

on stage type: feat Brand new functionality, features, pages, workflows, endpoints, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant