Fix/demo data sql#227
Conversation
… seed data and move sql.init settings to dev profile
|
Warning Rate limit exceeded
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 43 minutes and 28 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughMoved Spring SQL initialization settings out of the main profile into the dev profile and expanded dev-specific SQL init properties; replaced/updated seeded demo data in Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/main/resources/data.sql`:
- Around line 18-64: The ON CONFLICT clauses only update name, leaving
password_hash, role, clinic_id, is_active, and updated_at stale; change each
INSERT INTO users ... ON CONFLICT (email) DO UPDATE SET ... to refresh non-key
demo fields (e.g., name, password_hash, role, clinic_id where present,
is_active, updated_at) while explicitly not updating id; for the vet row ensure
clinic_id is included in the update so the seeded clinic association is
preserved.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 196a296f-9905-48d0-a8f3-6a043c3c7754
📒 Files selected for processing (3)
src/main/resources/application-dev.propertiessrc/main/resources/application.propertiessrc/main/resources/data.sql
💤 Files with no reviewable changes (1)
- src/main/resources/application.properties
…ole and is_active on upsert
Ändringar:
id = EXCLUDED.idfrån alla ON CONFLICT-satser för att undvika FK-integritetsproblempasswordTestanvändare:
Closes #122
closes #250
Summary by CodeRabbit