1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/util
andreas-unleash 097dd8ae56
Feat/enable disable strategies (#3566)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
Adds enabled field to feature strategies
Filter out disabled strategies when returning/evaluating

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #
[1-865](https://linear.app/unleash/issue/1-865/allow-for-enablingdisabling-strategies-in-place-backend)

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-04-21 12:09:07 +03:00
..
feature-evaluator Feat/enable disable strategies (#3566) 2023-04-21 12:09:07 +03:00
validators
anonymise.ts
anyEventEmitter.test.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
anyEventEmitter.ts feat: shared event emitter (#3241) 2023-03-02 09:52:19 +01:00
arraysHaveSameItems.test.ts fix: require equal environments when moving toggles (#1595) 2022-05-18 11:07:01 +02:00
arraysHaveSameItems.ts fix: require equal environments when moving toggles (#1595) 2022-05-18 11:07:01 +02:00
collapseHourlyMetrics.test.ts refactor: batch feature metric inserts (#1928) 2022-08-19 10:38:26 +02:00
collapseHourlyMetrics.ts
collect-ids.ts feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
constants.ts fix: limit total of PATs a user can have (#2301) 2022-11-02 08:11:35 +00:00
constantTimeCompare.test.ts Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
constantTimeCompare.ts Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
db-lock.test.ts feat: postgres lock (#3443) 2023-04-04 13:28:17 +02:00
db-lock.ts feat: postgres lock (#3443) 2023-04-04 13:28:17 +02:00
ensureStringValue.test.ts
ensureStringValue.ts fix: ensure that param values from /api/admin/features are strings (#1761) 2022-06-29 10:11:34 +02:00
escape-regex.ts Fix crashing search bars (#2765) 2022-12-28 12:35:27 +02:00
extract-user.ts chore: make event store accept IUser (#3076) 2023-02-21 14:11:39 +00:00
findPublicFolder.ts Merge frontend with backend (#1962) 2022-08-26 07:25:31 +00:00
flag-resolver.test.ts refactor: flag resolver should use stricter types (#2571) 2022-12-20 15:10:06 +00:00
flag-resolver.ts refactor: flag resolver should use stricter types (#2571) 2022-12-20 15:10:06 +00:00
format-base-uri.test.ts Migrate to jest (#854) 2021-05-28 11:10:24 +02:00
format-base-uri.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
generateImageUrl.ts Extract gravatar URL fn (#2386) 2022-11-10 12:13:45 +01:00
graceful-shutdown.ts Feat/api key scoping (#941) 2021-09-15 20:28:10 +02:00
index.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
is-email.test.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
is-email.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
isDefined.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
isDefined.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
isEmpty.ts Poc: calculate etag based on query and latest revison id (#3062) 2023-03-17 14:10:21 +01:00
load-index-html.ts ui flags replaced in index.html (#2617) 2022-12-07 14:31:27 +02:00
map-values.test.ts refactor: add soft response schema validation (#1657) 2022-06-08 08:01:14 +02:00
map-values.ts refactor: add soft response schema validation (#1657) 2022-06-08 08:01:14 +02:00
metrics-helper.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
offline-unleash-client.test.ts fix(deps): update dependency unleash-client to v3.18.0 (#2956) 2023-02-10 10:51:53 +01:00
offline-unleash-client.ts fix(deps): update dependency unleash-client to v3.16.0 (#2235) 2022-10-26 10:23:33 +02:00
omit-keys.test.ts
omit-keys.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
parseEnvVar.test.ts feat: add CORS instance settings (#1957) 2022-08-26 09:09:48 +02:00
parseEnvVar.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
random-id.ts feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
rewriteHTML.test.ts Merge frontend with backend (#1962) 2022-08-26 07:25:31 +00:00
rewriteHTML.ts ui flags replaced in index.html (#2617) 2022-12-07 14:31:27 +02:00
segments.ts refactor: move segment limits to env vars (#1642) 2022-06-02 10:44:45 +02:00
semver.test.ts refactor: avoid inlining segments for supported clients (#1640) 2022-06-02 14:07:46 +02:00
semver.ts refactor: avoid inlining segments for supported clients (#1640) 2022-06-02 14:07:46 +02:00
snakeCase.test.ts feat: Move environments to enterprise (#935) 2021-09-13 15:57:38 +02:00
snakeCase.ts feat: Move environments to enterprise (#935) 2021-09-13 15:57:38 +02:00
time-utils.test.ts fix: generate all hour buckets if missing (#2319) 2022-11-04 09:30:02 +01:00
time-utils.ts fix: generate all hour buckets if missing (#2319) 2022-11-04 09:30:02 +01:00
timer.test.ts task: use swc instead of ts-jest (#2042) 2022-09-06 13:22:41 +02:00
timer.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
unique.test.ts feat: expose project members (#3310) 2023-03-14 16:27:57 +01:00
unique.ts feat: expose project members (#3310) 2023-03-14 16:27:57 +01:00
validateJsonString.test.ts fix: when payload type is 'json' validate value on toggle variable validation (#1704) 2022-06-14 13:08:38 +02:00
validateJsonString.ts fix: when payload type is 'json' validate value on toggle variable validation (#1704) 2022-06-14 13:08:38 +02:00
validateOrigin.test.ts feat: add CORS instance settings (#1957) 2022-08-26 09:09:48 +02:00
validateOrigin.ts feat: add CORS instance settings (#1957) 2022-08-26 09:09:48 +02:00
version.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00