1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/features
Thomas Heartman 24e9cf7c8f
feat: add "edit" link to playground strategies (#4027)
This change adds an "edit" link to all playground strategies when they
are returned from the API, allowing the user to jump directly to the
evaluated strategy edit screen.

This change applies to both old and new strategies, so it should even
work in the old playground.

This does not use this information in the frontend yet.

## Discussion points:

Should "links" be an object or a singular string? I know the
notifications service uses just "link", but using an object will make
it easier to potentially add more actions in the future (such as
"enable"/"disable", maybe?)

Do we need to supply basePath? I noticed that the notifications links
only ever use an empty string for base path, so it might not be
necessary and can potentially be left out.

## Changes

I've implemented the link building in a new view model file. Inspecting
the output after the result is fully ready requires some gnarly
introspection and mapping, but it's tested.

Further, I've done a little bit of work to stop the playground service
using the schema types directly as the schema types now contain extra
information.

This PR also updates the `urlFriendlyString` arbitrary to not produce
strings that contain only periods. This causes issues when parsing URLs
(and is also something we struggle with in the UI).
2023-06-22 07:19:35 +00:00
..
access feat: custom root roles (#3975) 2023-06-14 14:40:40 +01:00
change-request-access-service feat: disallow clone toggle on change request enabled (#3383) 2023-03-27 13:21:50 +02:00
export-import-toggles fix: reject API admin tokens when importing features (#4016) 2023-06-20 12:57:59 +00:00
feature-toggle feat: custom root roles (#3975) 2023-06-14 14:40:40 +01:00
playground feat: add "edit" link to playground strategies (#4027) 2023-06-22 07:19:35 +00:00
project feat: Create project service di (#3326) 2023-03-15 16:46:41 +01:00
index.ts refactor: read model for change request access checking (#3380) 2023-03-24 14:31:43 +01:00