WA-521 Adding feature flag for removal users when the user to remove is the executor

This commit is contained in:
apanizo 2018-08-17 17:58:30 +02:00
parent be5398eafc
commit 6dd4c15533
5 changed files with 14 additions and 4 deletions

View File

@ -1,9 +1,10 @@
// @flow
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES } from '~/config/names'
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES, ENABLED_TX_SERVICE_REMOVAL_SENDER } from '~/config/names'
const devConfig = {
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
[ENABLED_TX_SERVICE_MODULES]: false,
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
}
export default devConfig

View File

@ -1,6 +1,6 @@
// @flow
import { ensureOnce } from '~/utils/singleton'
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES } from '~/config/names'
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES, ENABLED_TX_SERVICE_REMOVAL_SENDER } from '~/config/names'
import devConfig from './development'
import testConfig from './testing'
import prodConfig from './production'
@ -32,3 +32,9 @@ export const allowedModulesInTxHistoryService = () => {
return config[ENABLED_TX_SERVICE_MODULES]
}
export const allowedRemoveSenderInTxHistoryService = () => {
const config = getConfig()
return config[ENABLED_TX_SERVICE_REMOVAL_SENDER]
}

View File

@ -2,3 +2,4 @@
export const TX_SERVICE_HOST = 'tsh'
export const ENABLED_TX_SERVICE_MODULES = 'tsm'
export const ENABLED_TX_SERVICE_REMOVAL_SENDER = 'trs'

View File

@ -1,9 +1,10 @@
// @flow
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES } from '~/config/names'
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES, ENABLED_TX_SERVICE_REMOVAL_SENDER } from '~/config/names'
const prodConfig = {
[TX_SERVICE_HOST]: 'https://safe-transaction-history.dev.gnosisdev.com/api/v1/',
[ENABLED_TX_SERVICE_MODULES]: false,
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
}
export default prodConfig

View File

@ -1,9 +1,10 @@
// @flow
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES } from '~/config/names'
import { TX_SERVICE_HOST, ENABLED_TX_SERVICE_MODULES, ENABLED_TX_SERVICE_REMOVAL_SENDER } from '~/config/names'
const testConfig = {
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
[ENABLED_TX_SERVICE_MODULES]: false,
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
}
export default testConfig