Stop using feature-flag support for determining if a feature is active
Using the feature flag mechanism for checking if uploads are enabled was too clunky. I'm moving the change to checking versions directly.
This commit is contained in:
parent
5ff24648ef
commit
f71067bd5f
21 changed files with 136 additions and 145 deletions
12
lib/feature-flags.js
generated
12
lib/feature-flags.js
generated
|
|
@ -69,7 +69,6 @@ var Feature;
|
|||
Feature["PythonDefaultIsToNotExtractStdlib"] = "python_default_is_to_not_extract_stdlib";
|
||||
Feature["QaTelemetryEnabled"] = "qa_telemetry_enabled";
|
||||
Feature["ZstdBundleStreamingExtraction"] = "zstd_bundle_streaming_extraction";
|
||||
Feature["SafeArtifactUpload"] = "safe_artifact_upload";
|
||||
})(Feature || (exports.Feature = Feature = {}));
|
||||
exports.featureConfig = {
|
||||
[Feature.CleanupTrapCaches]: {
|
||||
|
|
@ -139,17 +138,6 @@ exports.featureConfig = {
|
|||
legacyApi: true,
|
||||
minimumVersion: undefined,
|
||||
},
|
||||
/**
|
||||
* The first version of the CodeQL CLI where artifact upload is safe to use
|
||||
* for failed runs. This is not really a feature flag, but it is easiest to
|
||||
* model the behavior as a feature flag.
|
||||
*/
|
||||
[Feature.SafeArtifactUpload]: {
|
||||
defaultValue: true,
|
||||
envVar: "CODEQL_ACTION_SAFE_ARTIFACT_UPLOAD",
|
||||
legacyApi: true,
|
||||
minimumVersion: "2.20.3",
|
||||
},
|
||||
};
|
||||
exports.FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue