1
0
mirror of synced 2025-12-22 19:34:15 -05:00

Remove versions feature flag code (#15793)

* remove FEATURE_NEW_VERSIONS from feature-flags.json

* remove process.env.FEATURE_NEW_VERSIONS from include files

* remove process.env.FEATURE_NEW_VERSIONS from lib files

* remove process.env.FEATURE_NEW_VERSIONS from middleware files

* remove process.env.FEATURE_NEW_VERSIONS from script files

* remove process.env.FEATURE_NEW_VERSIONS from test files

* update test fixtures to use new versions as canonical fixtures
This commit is contained in:
Sarah Schneider
2020-09-29 13:36:07 -04:00
committed by GitHub
parent 6762f8c1b7
commit aa5a62d49d
95 changed files with 1333 additions and 3965 deletions

View File

@@ -5,9 +5,7 @@ const { getOldVersionFromNewVersion } = require('../../lib/old-versions-utils')
module.exports = async (req, res, next) => {
// TODO need to update this to the new versions in coordination with the updater scripts
const currentOldVersion = process.env.FEATURE_NEW_VERSIONS
? getOldVersionFromNewVersion(req.context.currentVersion)
: req.context.currentVersion
const currentOldVersion = getOldVersionFromNewVersion(req.context.currentVersion)
const webhookPayloadsForCurrentVersion = webhookPayloads[currentOldVersion]