Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138112,7 +138112,7 @@ paths:
get:
description: |-
Returns a list of environments for the organization.
Supports filtering by name and key.
Supports filtering by name, key, and DD_ENV.
operationId: ListFeatureFlagsEnvironments
parameters:
- description: Filter environments by name (partial matching).
Expand All @@ -138127,6 +138127,12 @@ paths:
name: key
schema:
type: string
- description: Filter environments by queries that contain the provided DD_ENV value.
example: "staging"
in: query
name: dd_env
schema:
type: string
- description: Maximum number of results to return.
example: 10
in: query
Expand Down
4 changes: 4 additions & 0 deletions private/bdd_runner/src/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9427,6 +9427,10 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
type: "string",
format: "",
},
ddEnv: {
type: "string",
format: "",
},
limit: {
type: "number",
format: "int64",
Expand Down
16 changes: 15 additions & 1 deletion services/feature_flags/src/v2/FeatureFlagsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ export class FeatureFlagsApiRequestFactory extends BaseAPIRequestFactory {
public async listFeatureFlagsEnvironments(
name?: string,
key?: string,
ddEnv?: string,
limit?: number,
offset?: number,
_options?: Configuration,
Expand Down Expand Up @@ -727,6 +728,13 @@ export class FeatureFlagsApiRequestFactory extends BaseAPIRequestFactory {
"",
);
}
if (ddEnv !== undefined) {
requestContext.setQueryParam(
"dd_env",
serialize(ddEnv, TypingInfo, "string", ""),
"",
);
}
if (limit !== undefined) {
requestContext.setQueryParam(
"limit",
Expand Down Expand Up @@ -2677,6 +2685,11 @@ export interface FeatureFlagsApiListFeatureFlagsEnvironmentsRequest {
* @type string
*/
key?: string;
/**
* Filter environments by queries that contain the provided DD_ENV value.
* @type string
*/
ddEnv?: string;
/**
* Maximum number of results to return.
* @type number
Expand Down Expand Up @@ -3101,7 +3114,7 @@ export class FeatureFlagsApi {

/**
* Returns a list of environments for the organization.
* Supports filtering by name and key.
* Supports filtering by name, key, and DD_ENV.
* @param param The request object
*/
public listFeatureFlagsEnvironments(
Expand All @@ -3112,6 +3125,7 @@ export class FeatureFlagsApi {
this.requestFactory.listFeatureFlagsEnvironments(
param.name,
param.key,
param.ddEnv,
param.limit,
param.offset,
options,
Expand Down
Loading