mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
24e9cf7c8f
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). |
||
---|---|---|
.. | ||
access | ||
change-request-access-service | ||
export-import-toggles | ||
feature-toggle | ||
playground | ||
project | ||
index.ts |