fix: missing Subscription.planKey migration breaks post-payment role … - #60
fix: missing Subscription.planKey migration breaks post-payment role …#60HadiSaaibi wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR adds an ChangesPackage config and database migration
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@package.json`:
- Line 32: The package approvals currently allow `@scarf/scarf`@1.4.0, which has a
postinstall hook that can send install-time telemetry. Remove this approval from
the relevant package policy so the install script is denied unless this behavior
is explicitly intended, and keep the change localized to the approval entry in
package.json.
- Around line 30-36: The install-script policy in package.json is only advisory
under npm@11.6.2, so unapproved dependency scripts can still run during npm ci.
Update the CI/install flow to hard-enforce the approved script list by adding a
verification step before or during install, or switch to an installer/npm
version that blocks disallowed scripts. Use the existing allowScripts policy in
package.json as the source of truth and ensure the enforcement is applied in the
CI path that runs npm ci.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: dfa80da4-ea92-4b72-a92d-782a44ca53ca
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (2)
package.jsonpackages/database/prisma/migrations/20260701204011_add_subscription_plan_key/migration.sql
Addresses CodeRabbit review on #60: @scarf/scarf (pulled in by swagger-ui-dist) only sends install-time analytics telemetry on postinstall, no functional purpose — deny it instead of approving.
Description
Steps to QA
Screenshots
pre fix


post fix
Summary by CodeRabbit
New Features
planKey), enabling more accurate plan tracking and display.Bug Fixes