1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/test/e2e/stores
Christopher Kolstad eafba10cac
feature: add query support to features endpoint (#2693)
## About the changes
The deprecated /api/admin/features endpoint supported querying with tag
and namePrefix parameters.

This PR adds this functionality to
/api/admin/projects/<project>/features as well, allowing to replicate
queries that used to work.

Closes #2306

### Important files
src/lib/db/feature-strategy-store.ts
src/test/e2e/stores/feature-strategies-store.e2e.test.ts

## Discussion points
I'm extending our query parameters support for
/api/admin/projects/<projectId>/features endpoint. This will be
reflected in our open-api spec, so I also made an
adminFeaturesQuerySchema for this.

Also, very open for something similar to what we did for the modifyQuery
for the archived parameter, but couldn't come up with a good way to
support subselects using the query builder, it just ended up blowing the
stack. If anyone has a suggestion, I'm all ears.

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-12-16 12:05:18 +01:00
..
client-application-store.e2e.test.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
client-metrics-store-v2.e2e.test.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
context-field-store.e2e.test.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
event-store.e2e.test.ts task: use swc instead of ts-jest (#2042) 2022-09-06 13:22:41 +02:00
feature-environment-store.e2e.test.ts
feature-strategies-store.e2e.test.ts feature: add query support to features endpoint (#2693) 2022-12-16 12:05:18 +01:00
feature-tag-store.e2e.test.ts
feature-toggle-store.e2e.test.ts fix/projectId cannot change for strategy configs (#1084) 2021-11-04 21:24:55 +01:00
feature-type-store.e2e.test.ts refactor: add OpenAPI schema to feature types controller (#1684) 2022-06-09 13:17:13 +02:00
project-store.e2e.test.ts
setting-store.e2e.test.ts
user-feedback-store.e2e.test.ts feat: add project and environment columns to events (#942) 2021-09-20 12:13:38 +02:00
user-splash-store.e2e.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
user-store.e2e.test.ts Add possibility to soft delete users (#2497) 2022-11-23 09:30:54 +02:00