Skip to content

GetFeatureFlags doesn't return environment related details like "on" #20

@sjayach

Description

@sjayach
flags, httpResp, err := apiClient.FeatureFlagsApi.GetFeatureFlags(ctx, projectKey).
	Limit(limit).
	Offset(offset).
	Summary(false).
	Execute()

with above request, environments return null

But with specific environment like dev, returns the value

flags, httpResp, err := apiClient.FeatureFlagsApi.GetFeatureFlags(ctx, projectKey).
	Limit(limit).
	Offset(offset).
	Summary(false).
	Env("dev").
	Execute()

expecting without environments should return all the environments on the Golang api client

Note:

curl -G -H "Authorization: <api-token>" \
"https://app.launchdarkly.com/api/v2/flags/default?expand=environments&env=dev&env=production&summary=false"

With above curl having both env as query param returns everything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions