Skip to content

fix(db): preserve apikey v2 migration scopes

89e6636
Select commit
Loading
Failed to load commit list.
Open

feat(apikeys): migrate legacy keys to v2 #2279

fix(db): preserve apikey v2 migration scopes
89e6636
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 18, 2026 in 36s

Annotations

Check failure on line 2063 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 4 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ43I4V9cT_hZbQTuvY0&open=AZ43I4V9cT_hZbQTuvY0&pullRequest=2279

Check failure on line 1207 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QZ7X55rYU4SfzTTI&open=AZ42QZ7X55rYU4SfzTTI&pullRequest=2279

Check failure on line 187 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 7 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QZ7X55rYU4SfzTTL&open=AZ42QZ7X55rYU4SfzTTL&pullRequest=2279

Check warning on line 270 in supabase/functions/_backend/utils/hono_middleware.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QaDz55rYU4SfzTTO&open=AZ42QaDz55rYU4SfzTTO&pullRequest=2279

Check warning on line 213 in src/pages/ApiKeys.vue

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this union type with a type alias.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QaGI55rYU4SfzTTP&open=AZ42QaGI55rYU4SfzTTP&pullRequest=2279

Check failure on line 956 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42uj3siLpuLITvFd0b&open=AZ42uj3siLpuLITvFd0b&pullRequest=2279

Check warning on line 508 in src/pages/ApiKeys.vue

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QaGI55rYU4SfzTTQ&open=AZ42QaGI55rYU4SfzTTQ&pullRequest=2279

Check failure on line 955 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42uj3siLpuLITvFd0c&open=AZ42uj3siLpuLITvFd0c&pullRequest=2279

Check failure on line 188 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 6 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QZ7X55rYU4SfzTTK&open=AZ42QZ7X55rYU4SfzTTK&pullRequest=2279

Check failure on line 957 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42uj3siLpuLITvFd0h&open=AZ42uj3siLpuLITvFd0h&pullRequest=2279

Check warning on line 750 in src/pages/ApiKeys.vue

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `.some(…)` over `.find(…)`.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QaGI55rYU4SfzTTR&open=AZ42QaGI55rYU4SfzTTR&pullRequest=2279

Check failure on line 1997 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 4 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ47L1JAwWSCt-IKVI9m&open=AZ47L1JAwWSCt-IKVI9m&pullRequest=2279

Check failure on line 1639 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 6 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42wkvr55rYU4Sf329Y&open=AZ42wkvr55rYU4Sf329Y&pullRequest=2279

Check failure on line 953 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42uj3siLpuLITvFd0d&open=AZ42uj3siLpuLITvFd0d&pullRequest=2279

Check failure on line 51 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 6 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42uj3siLpuLITvFd0i&open=AZ42uj3siLpuLITvFd0i&pullRequest=2279

Check failure on line 1250 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QZ7X55rYU4SfzTTM&open=AZ42QZ7X55rYU4SfzTTM&pullRequest=2279

Check failure on line 1210 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42Wd3XqEkHdGXW3KNH&open=AZ42Wd3XqEkHdGXW3KNH&pullRequest=2279

Check warning on line 218 in supabase/functions/_backend/utils/hono_middleware.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QaDz55rYU4SfzTTN&open=AZ42QaDz55rYU4SfzTTN&pullRequest=2279

Check failure on line 958 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 4 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42uj3siLpuLITvFd0e&open=AZ42uj3siLpuLITvFd0e&pullRequest=2279

Check failure on line 1721 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ423w-kBO_6kV5uCPaj&open=AZ423w-kBO_6kV5uCPaj&pullRequest=2279

Check failure on line 1441 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 3 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42uj3siLpuLITvFd0g&open=AZ42uj3siLpuLITvFd0g&pullRequest=2279

Check failure on line 1184 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 10 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42QZ7X55rYU4SfzTTJ&open=AZ42QZ7X55rYU4SfzTTJ&pullRequest=2279

Check failure on line 1430 in supabase/migrations/20260518130000_migrate_apikeys_to_v2_timestamp_fix.sql

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 5 times.

See more on https://sonarcloud.io/project/issues?id=Cap-go_capgo&issues=AZ42uj3siLpuLITvFd0f&open=AZ42uj3siLpuLITvFd0f&pullRequest=2279