1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/db
Christopher Kolstad 791384ddb1
Fix/variants ordering (#1187)
* fix: sort variants on output

We found that for existing variants, the sorting by name wasn't applied, so the index in the patches were wrong. This PR adds the sort also when we're getting variants as part of the getFeature call, not just when we're getting the variants. This should make the UX consistent, and prevent our patches from hitting the wrong index in the variants array.

Co-authored-by: Youssef Khedher <khedher.youssef@hotmail.fr>
2021-12-15 14:20:32 +01:00
..
access-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
addon-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
api-token-store.ts Feat/api key scoping (#941) 2021-09-15 20:28:10 +02:00
client-applications-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
client-instance-store.ts fix: uintroduce call to update last_seen on client-instance 2021-12-10 09:31:54 +01:00
client-metrics-store-v2.ts feat: remove old metrics service 2021-12-10 09:31:54 +01:00
context-field-store.ts fix: update context field does not await the response (#1027) 2021-10-14 08:30:36 +02:00
db-pool.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
environment-store.ts task: add default environment (#989) 2021-09-29 11:09:35 +02:00
event-store.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
event-store.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
feature-environment-store.ts fix: Only trigger environment enabled/disabled events if different f… (#1053) 2021-10-21 22:33:50 +02:00
feature-strategy-store.ts Fix/variants ordering (#1187) 2021-12-15 14:20:32 +01:00
feature-tag-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
feature-toggle-client-store.ts feat: add new more specific feature/environment events to addons (#994) 2021-10-07 10:22:20 +02:00
feature-toggle-store.ts task: Sort variants by name (#1132) 2021-11-26 13:06:36 +01:00
feature-type-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
index.ts fix: lint 2021-12-10 09:31:54 +01:00
project-store.ts fix: rename last_update to updated_at 2021-11-30 15:25:52 +01:00
reset-token-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
session-store.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
setting-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
strategy-store.ts fix: import should not drop built-in strategies 2021-08-26 22:41:51 +02:00
tag-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tag-type-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
user-feedback-store.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
user-splash-store.ts fix: add migration 2021-11-09 11:52:02 +01:00
user-store.ts fix: add user and project counters 2021-08-27 10:10:14 +02:00