1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src
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
..
lib Fix/variants ordering (#1187) 2021-12-15 14:20:32 +01:00
mailtemplates
migrations fix: drop client_metrics table 2021-12-10 09:31:54 +01:00
test Fix/variants ordering (#1187) 2021-12-15 14:20:32 +01:00
migrator.ts
server-dev.ts
server.ts