1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02: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
addon-store.ts
api-token-store.ts
client-applications-store.ts
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
db-pool.ts
environment-store.ts
event-store.test.ts
event-store.ts feat: clean up events (#1089) 2021-11-12 13:15:51 +01:00
feature-environment-store.ts
feature-strategy-store.ts Fix/variants ordering (#1187) 2021-12-15 14:20:32 +01:00
feature-tag-store.ts
feature-toggle-client-store.ts
feature-toggle-store.ts task: Sort variants by name (#1132) 2021-11-26 13:06:36 +01:00
feature-type-store.ts
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
session-store.ts
setting-store.ts
strategy-store.ts
tag-store.ts
tag-type-store.ts
user-feedback-store.ts
user-splash-store.ts
user-store.ts