mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
fix: admin global features endpoint
The Admin global features endpoint was using the client features store to join in environments, strategies and segments, when all we actually need is the feature metadata. This PR swaps which method we use for getting the data. Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com> Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
This commit is contained in:
parent
7da461cc9f
commit
ba21adf3ae
@ -177,9 +177,7 @@ class FeatureController extends Controller {
|
|||||||
req: Request,
|
req: Request,
|
||||||
res: Response<FeaturesSchema>,
|
res: Response<FeaturesSchema>,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const query = await this.prepQuery(req.query);
|
const features = await this.service.getMetadataForAllFeatures(false);
|
||||||
const features = await this.service.getFeatureToggles(query);
|
|
||||||
|
|
||||||
this.openApiService.respondWithValidation(
|
this.openApiService.respondWithValidation(
|
||||||
200,
|
200,
|
||||||
res,
|
res,
|
||||||
|
Loading…
Reference in New Issue
Block a user