1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/frontend/src/component
Thomas Heartman 90915cfdd7
Chore: add strategy sorting algorithm (#5406)
This PR adds a strategy sorting algorithm to be used for the segment
deletion dialog. It assumes that you have a list of existing strategies
and a list of change request strategies. Based on the content of these
two lists, it will create one unified list sorted after a number of
criteria (as listed in the test).

# Discussion point: 

This impl does the sorting on the front end, but could we do it on the
back end? Instead of adding a new property to the segment data, could we
simply fold the change request strategies in with the existing segment
strategies and return it using the old property? If the only place we do
that is in this view, then that might be a good suggestion.

Response:

I'll leave this in the front end for now. The reason is that we can't add change request strategies to the existing `strategies` property of the API payload without it being a breaking change. The OpenAPI schema says that `id` is a required field on a strategy, and that field doesn't exist on strategies that have only been added in change requests, but not yet applied.
2023-11-27 11:23:10 +01:00
..
accessOverview
admin fix: role permissions UI improvements (#5388) 2023-11-23 09:43:15 +00:00
application
archive fix: delete archived feature toggles in the UI (#5411) 2023-11-24 09:35:13 +00:00
banners feat: banner UI/UX adjustments (#5151) 2023-10-25 17:14:18 +01:00
changeRequest fix: Only show strategy variant changes if there is a diff in the variants (#5353) 2023-11-22 09:50:03 +02:00
common Feat/new paginated table (#5371) 2023-11-24 17:50:58 +01:00
context
demo feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
environments
events
feature Basic filter label (#5387) 2023-11-24 10:07:42 +01:00
featureTypes
feedback
integrations feat: remove feature flag for datadog json template (#5105) 2023-10-26 09:09:26 +02:00
layout chore: remove segments oss splash (#5359) 2023-11-17 13:39:43 +00:00
loginHistory fix: date should sort asc/desc properly (#5335) 2023-11-14 14:47:28 +02:00
maintenance feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
menu bug: remove strategies from copy breadcrumbs (#5137) 2023-10-25 09:12:32 +03:00
playground/Playground fix: typo in Unleash playground frontend (#5389) 2023-11-27 09:30:00 +01:00
project Feat/new paginated table (#5371) 2023-11-24 17:50:58 +01:00
providers feat: add CREATE_TAG_TYPE permission (#5386) 2023-11-22 10:20:19 +00:00
segments Chore: add strategy sorting algorithm (#5406) 2023-11-27 11:23:10 +01:00
splash chore: remove segments oss splash (#5359) 2023-11-17 13:39:43 +00:00
strategies
tags feat: add CREATE_TAG_TYPE permission (#5386) 2023-11-22 10:20:19 +00:00
user fix: date should sort asc/desc properly (#5335) 2023-11-14 14:47:28 +02:00
App.tsx refactor: rename message banners to banners (#5098) 2023-10-19 13:18:25 +01:00
InitialRedirect.tsx