1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/src/lib/services
Thomas Heartman 392beee114
feat: add implicit surrounding ^ and $ to patterns (#4664)
This PR updates the back-end handling of feature naming patterns to add
implicit leading `^`s and trailing `$`s to the regexes when comparing
them.

It also adds tests for the new behavior, both for new flag names and for
examples.

## Discussion points

Regarding stripping incoming ^ and $: We don't actually need to strip
incoming `^`s and `$`s: it appears that `^^^^^x$$$$$` is just as valid
as `^x$`. As such, we can leave that in. However, if we think it's
better to strip, we can do that too.

Second, I'm considering moving the flag naming validation into a
dedicated module to encapsulate everything a little better. Not sure if
this is the time or where it would live, but open to hearing
suggestions.
2023-09-13 10:50:37 +02:00
..
client-metrics fix: last seen environment remove duplicate entries (#4663) 2023-09-12 11:43:01 +03:00
access-service.test.ts fix: group roles assumption, refactor group types (#4576) 2023-09-05 20:30:20 +01:00
access-service.ts fix: API improvements aligning the types to our schemas (#4650) 2023-09-12 15:40:57 +02:00
account-service.ts fix: add confirmation to disable password login (#3829) 2023-05-23 15:56:34 +01:00
addon-schema.ts
addon-service-test-simple-addon.ts
addon-service.test.ts fix: post global events even when filtering by env (#4672) 2023-09-13 08:22:18 +01:00
addon-service.ts fix: post global events even when filtering by env (#4672) 2023-09-13 08:22:18 +01:00
api-token-service.test.ts chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
api-token-service.ts feat: Separate api token roles (#4019) 2023-06-20 14:21:14 +02:00
client-spec-service.test.ts
client-spec-service.ts
context-schema.ts
context-service.ts feat: context field usage backend (#3921) 2023-06-09 12:00:17 +03:00
edge-service.ts docs: Added docs for edge endpoints (#3501) 2023-04-14 15:39:39 +02:00
email-service.test.ts
email-service.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
environment-service.ts Feat: project default strategy (#3644) 2023-04-28 14:59:04 +03:00
event-announcer-service.ts 1-1049 Emit events after db transaction is complete (#4174) 2023-07-10 08:43:22 +02:00
event-service.ts feat: improve frontend config freshness to < 1s (#3749) 2023-05-12 17:52:11 +00:00
favorites-service.ts
feature-service-potentially-stale.test.ts chore: remove emitPotentiallyStaleEvents flag (#4537) 2023-08-21 14:35:35 +03:00
feature-tag-service.ts feat: export by tags (#3635) 2023-04-27 10:22:14 +02:00
feature-toggle-service.ts feat: add implicit surrounding ^ and $ to patterns (#4664) 2023-09-13 10:50:37 +02:00
feature-type-service.ts feat(#4205): implement configurable lifetimes (#4263) 2023-07-18 09:26:32 +00:00
group-service.ts fix: group roles assumption, refactor group types (#4576) 2023-09-05 20:30:20 +01:00
health-service.ts
index.ts feat: protect segment operations for change requests (#4417) 2023-08-04 12:23:19 +02:00
instance-stats-service.test.ts Feat/instance health (#4586) 2023-08-30 12:51:46 +00:00
instance-stats-service.ts Feat/instance health (#4586) 2023-08-30 12:51:46 +00:00
maintenance-service.test.ts feat: disable scheduler for tests (#4496) 2023-08-15 15:58:36 +02:00
maintenance-service.ts feat: disable scheduler for tests (#4496) 2023-08-15 15:58:36 +02:00
openapi-service.ts Clean up old errors (#3633) 2023-05-11 11:10:57 +02:00
pat-service.ts
project-health-service.ts Project health tests (#3028) 2023-02-02 12:01:16 +01:00
project-schema.ts 1-1319: add feature naming pattern descriptions (#4612) 2023-09-06 08:13:28 +00:00
project-service.ts feat: add implicit surrounding ^ and $ to patterns (#4664) 2023-09-13 10:50:37 +02:00
proxy-service.ts feat: improve frontend config freshness to < 1s (#3749) 2023-05-12 17:52:11 +00:00
public-signup-token-service.ts
reset-token-service.ts feat: changing password will expire reset password tokens (#3451) 2023-04-05 12:39:52 +03:00
scheduler-service.test.ts feat: maintenance mode disables scheduler (#3854) 2023-05-24 12:26:54 +02:00
scheduler-service.ts feat: maintenance mode disables scheduler (#3854) 2023-05-24 12:26:54 +02:00
segment-schema.ts
segment-service.ts chore: Change request flags removed (#4601) 2023-09-04 10:57:13 +02:00
session-service.ts
setting-service.ts
state-schema.ts
state-service-export-v1.json
state-service.test.ts fix: API improvements aligning the types to our schemas (#4650) 2023-09-12 15:40:57 +02:00
state-service.ts chore: refactor segments to stop depending on the implementation (#3315) 2023-03-15 14:58:19 +01:00
state-util.ts
strategy-schema.ts Feat/enable disable strategies (#3566) 2023-04-21 12:09:07 +03:00
strategy-service.ts
tag-schema.test.ts
tag-schema.ts chore: Improve openapi documentation for tags (#3496) 2023-04-12 09:34:32 +00:00
tag-service.ts
tag-type-schema.test.ts
tag-type-schema.ts
tag-type-service.ts docs: add descriptions and examples to tag schemas (#4194) 2023-07-11 10:02:00 +02:00
user-feedback-service.ts
user-service.test.ts
user-service.ts fix: Password hash is null should yield PasswordMissmatch (#4392) 2023-08-03 08:51:13 +02:00
user-splash-service.ts
version-service.test.ts fix: API improvements aligning the types to our schemas (#4650) 2023-09-12 15:40:57 +02:00
version-service.ts feat: add prom metric for total custom root roles in use (#4438) 2023-08-08 08:14:40 +01:00