`featureFlagEnabled` GraphQL query fails on FOSS_ONLY mode
MR:
- Add featureFlags to GraphQL metadata field (!164806 - merged)
- fix: Use metadata.featureFlags gql field for in... (gitlab-vscode-extension!1925 - merged)
Summary
The featureFlagEnabled
query is used by the VSCode Workflow Extension to check the enablement status of the feature flag duo_workflow
. In Update @gitlab/web-ide package version (!163597 - merged), the Web IDE feature specs fail in FOSS_ONLY
mode because the duo_workflow
feature flag was created in the ee
directory, and running the tests in FOSS_ONLY
mode means that ee
code is not available.
The GraphQL query fails because the underlying Feature.enabled?
method raises an exception when attempting to check the status of a feature flag that doesn't exist. The VSCode Workflow Extension doesn't have a separation of EE-only features and FOSS features like the GitLab application, and it attempts to run EE
features in the Web IDE even when the GitLab instance is FOSS
.
Potential solution
[TO BE DETERMINED]