1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +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
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
api-token-service.ts
client-spec-service.test.ts
client-spec-service.ts
context-schema.ts
context-service.ts
edge-service.ts
email-service.test.ts
email-service.ts
environment-service.ts
event-announcer-service.ts
event-service.ts
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
feature-toggle-service.ts feat: add implicit surrounding ^ and $ to patterns (#4664) 2023-09-13 10:50:37 +02:00
feature-type-service.ts
group-service.ts fix: group roles assumption, refactor group types (#4576) 2023-09-05 20:30:20 +01:00
health-service.ts
index.ts
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
pat-service.ts
project-health-service.ts
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
public-signup-token-service.ts
reset-token-service.ts
scheduler-service.test.ts
scheduler-service.ts
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
state-util.ts
strategy-schema.ts
strategy-service.ts
tag-schema.test.ts
tag-schema.ts
tag-service.ts
tag-type-schema.test.ts
tag-type-schema.ts
tag-type-service.ts
user-feedback-service.ts
user-service.test.ts
user-service.ts
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