Thomas Heartman
87cec6c9b7
openapi: update ui-config endpoints ( #4280 )
2023-07-19 17:18:47 +02:00
Nuno Góis
db61a8a40c
feat: message banner (variants) ( #3788 )
...
-
https://linear.app/unleash/issue/2-546/fetch-the-payload-from-a-real-feature-flag
-
https://linear.app/unleash/issue/2-547/adapt-ui-to-use-the-feature-flag-information-were-fetching
Tackles the 2 tasks above.
Adapts our `FlagResolver` logic to support variants, so we can use them
for our message banner project but also anything else in the future.
Also adapts MessageBanner to the new logic.
- Add support for variants in `FlagResolver`;
- Adapt `MessageBanner` to a variants flag;
- Adds `sticky` support for the `MessageBanner`;
- Adds our first variants flag to `uiConfig` and `experimental`:
`messageBanner`;
- Adds a `variant-flag-schema` to make it easy to represent the variant
output that we specify in `uiConfig`;
- Adapts `experimental` to be able to represent default variants while
still maintaining type safety;
- Adds helpers to make it easy to use variants in our project, such as
`getVariantValue` and the `useVariant` hook;
- Adapts and adds new tests in `flag-resolver.test.ts`;
### Notes
- ~~The `as PayloadType` assertions need
https://github.com/Unleash/unleash-client-node/pull/454 since it
includes https://github.com/Unleash/unleash-client-node/pull/452~~
(50ccf60893
);
- ~~Enterprise needs a PR that will follow soon~~;
![image](https://github.com/Unleash/unleash/assets/14320932/034ff64f-3020-4ed0-863b-ed1fd9190430 )
2023-05-18 09:38:59 +01:00
Gastón Fournier
f8d30850e5
Network view not experimental ( #3124 )
...
## About the changes
Promoted experimental networkView flag into a configuration that relies
on prometheusApi being configured.
Also, a follow-up on https://github.com/Unleash/unleash/pull/3054 moving
this code to enterprise because it doesn't make sense to maintain this
code in OSS where it's not being used.
2023-02-15 16:24:57 +01:00
sjaanus
a0619e963d
Maintenance mode for users ( #2716 )
2022-12-21 13:23:44 +02:00
Fredrik Strand Oseberg
85b45b9965
Feat/unleash flags embedded proxy ( #1974 )
...
* feat: use unleash flags for embedded proxy
* feat: add a separate flag for the proxy frontend
* fix: setup unleash in dev
* fix: check flagResolver on each request
* fix: remove unleash client setup
* refactor: update frontend routes snapshot
* refactor: make batchMetrics flag dynamic
* fix: always check dynamic CORS origins config
* fix: make conditionalMiddleware work with the OpenAPI schema generation
Co-authored-by: olav <mail@olav.io>
2022-08-26 15:16:29 +02:00
olav
42d64c8803
feat: add CORS instance settings ( #1957 )
...
* feat: add CORS instance settings
* refactor: disallow arbitrary asterisks in CORS origins
2022-08-26 09:09:48 +02:00
Tymoteusz Czech
14b1540715
feat: add feature flag for embedded proxy ( #1939 )
...
* feat: add feature flag for embedded proxy
* update snapshot for config
2022-08-18 11:26:31 +02:00
olav
49095025ff
refactor: remove bootstrap endpoint ( #1900 )
2022-08-09 15:58:27 +02:00
Tymoteusz Czech
2729999bed
Feat: OpenAPI controller - Bootstrap UI ( #1773 )
...
* rename bootstrap ui controller
* sort openapi schema imports
* add bootstrap ui json schema
* test bootstrap ui schema
* openapi bootstrap ui route
* fix: bootstrap ui schema type
* bootstrap ui e2e test
* simplify bootstrap-ui testing mock
* fix: update after review
2022-06-30 12:21:40 +00:00
olav
7ee8892704
fix: add missing environments field to uiConfigSchema ( #1736 )
...
* fix: add missing environment field to uiConfigSchema
* refactor: avoid throwing when unleash-server is a dependency in dev mode
2022-06-21 09:34:07 +02:00
olav
09a6b578bf
refactor: add OpenAPI schema to UI config controller ( #1681 )
2022-06-08 14:57:39 +02:00