Fix duplicate integrations in admin settings#39
Conversation
…asing The integrations table had duplicates where the same integration existed with both 'ai' (lowercase) and 'AI' (uppercase) category values. This was caused by inconsistent casing in older migrations. This migration: 1. Normalizes all category values to lowercase 2. Deduplicates integrations by (tenant_id, name), preferring rows with configured API keys, active status, and most recent updates 3. Normalizes integration names to lowercase for consistency 4. Ensures unique constraints are in place
|
Warning Rate limit exceeded@peterod99 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 55 seconds before requesting another review. ⌛ 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. 📒 Files selected for processing (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
…asing
The integrations table had duplicates where the same integration existed with both 'ai' (lowercase) and 'AI' (uppercase) category values. This was caused by inconsistent casing in older migrations.
This migration: