1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00
unleash.unleash/src/lib/features
Jaanus Sellin d8c83fb824
fix: do not allow creating cr for same environment (#10010)
If there are two concurrent requests to create or edit change requests,
two separate ones may be created in parallel. The UI does not currently
handle this scenario, and if additional changes are made, they might be
added to a random existing change request—resulting in a messy and
unpredictable state.

This PR adds a unique index to the `change_requests` table 
```
on (created_by, project, environment)
WHERE state NOT IN ('Applied', 'Cancelled', 'Rejected', 'Scheduled').
```

In the extremely rare case where such conflicting data already exists in
a database, the migration will automatically cancel one of the
conflicting change requests.
2025-05-30 08:20:11 +03:00
..
access feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
api-tokens feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
change-request-access-service feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
change-request-segment-usage-service fix: do not allow creating cr for same environment (#10010) 2025-05-30 08:20:11 +03:00
client-feature-toggles fix: make revision id not be so reactive (#10032) 2025-05-27 16:16:26 +03:00
context Chore(1-3753)!: block deletion of context fields in use (#10005) 2025-05-19 13:02:01 +02:00
dependent-features feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
environments feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
events chore: prefer searchEvents over deprecated methods (#10031) 2025-05-27 16:19:10 +01:00
export-import-toggles feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
feature-lifecycle feat: track last seen clients using bulk update (#9981) 2025-05-15 13:06:54 +02:00
feature-links feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
feature-naming-pattern task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
feature-search fix: do not allow creating cr for same environment (#10010) 2025-05-30 08:20:11 +03:00
feature-toggle Chore(1-3753)!: block deletion of context fields in use (#10005) 2025-05-19 13:02:01 +02:00
frontend-api chore!: remove deprecated POST ui-config endpoint (#10027) 2025-05-26 10:22:16 +01:00
group feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
instance-stats chore: prefer searchEvents over deprecated methods (#10031) 2025-05-27 16:19:10 +01:00
integration-events feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
maintenance task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
metrics chore: remove console.log and reuse package scripts (#10025) 2025-05-23 12:24:03 +02:00
onboarding task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
personal-dashboard feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
playground task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
private-project feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
productivity-report feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
project chore!: remove deprecated put project groups roles endpoint (#10059) 2025-05-29 14:03:59 +01:00
project-environments task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
project-insights feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
project-status feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
release-plans feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
scheduler task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
segment task: migrate tests to vitest 2025-05-16 11:19:10 +02:00
tag-type chore!: remove deprecated POST events search endpoint (#10030) 2025-05-27 09:12:36 +01:00
traffic-data-usage feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
ui-observability-controller feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
unique-connection feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
user-subscriptions feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00
index.ts feat: Unleash v7 ESM migration (#9877) 2025-05-14 09:47:12 +02:00