Skip to content

Fix duplicate integrations in admin settings#39

Merged
peterod99 merged 1 commit intomainfrom
claude/fix-duplicate-integrations-XdzhY
Jan 6, 2026
Merged

Fix duplicate integrations in admin settings#39
peterod99 merged 1 commit intomainfrom
claude/fix-duplicate-integrations-XdzhY

Conversation

@peterod99
Copy link
Copy Markdown
Owner

…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

…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
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 6, 2026

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

📥 Commits

Reviewing files that changed from the base of the PR and between dd66d7e and aef2e23.

📒 Files selected for processing (1)
  • supabase/migrations/20260106120000_fix_duplicate_integrations_category.sql

Note

🎁 Summarized by CodeRabbit Free

Your 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 @coderabbitai help to get the list of available commands and usage tips.

@peterod99 peterod99 merged commit f3ad1a5 into main Jan 6, 2026
2 checks passed
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.

2 participants