mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-28 00:17:12 +01:00
chore: consumption model flag (#9379)
This commit is contained in:
parent
0c6ef912d4
commit
e29eb51f3c
@ -183,7 +183,7 @@ const useTrafficStats = (
|
|||||||
includedTraffic: number,
|
includedTraffic: number,
|
||||||
chartDataSelection: ChartDataSelection,
|
chartDataSelection: ChartDataSelection,
|
||||||
) => {
|
) => {
|
||||||
const connectionCountEnabled = useUiFlag('connectionCount');
|
const consumptionModelEnabled = useUiFlag('consumptionModel');
|
||||||
const { result } = useTrafficSearch(
|
const { result } = useTrafficSearch(
|
||||||
chartDataSelection.grouping,
|
chartDataSelection.grouping,
|
||||||
toDateRange(chartDataSelection, currentDate),
|
toDateRange(chartDataSelection, currentDate),
|
||||||
@ -200,7 +200,7 @@ const useTrafficStats = (
|
|||||||
}
|
}
|
||||||
const traffic = result.data;
|
const traffic = result.data;
|
||||||
|
|
||||||
const chartData = connectionCountEnabled
|
const chartData = consumptionModelEnabled
|
||||||
? toConnectionChartData(traffic)
|
? toConnectionChartData(traffic)
|
||||||
: newToChartData(traffic);
|
: newToChartData(traffic);
|
||||||
const usageTotal = calculateTotalUsage(traffic);
|
const usageTotal = calculateTotalUsage(traffic);
|
||||||
|
@ -92,7 +92,7 @@ export type UiFlags = {
|
|||||||
granularAdminPermissions?: boolean;
|
granularAdminPermissions?: boolean;
|
||||||
frontendHeaderRedesign?: boolean;
|
frontendHeaderRedesign?: boolean;
|
||||||
dataUsageMultiMonthView?: boolean;
|
dataUsageMultiMonthView?: boolean;
|
||||||
connectionCount?: boolean;
|
consumptionModel?: boolean;
|
||||||
edgeObservability?: boolean;
|
edgeObservability?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@
|
|||||||
"stoppable": "^1.1.0",
|
"stoppable": "^1.1.0",
|
||||||
"ts-toolbelt": "^9.6.0",
|
"ts-toolbelt": "^9.6.0",
|
||||||
"type-is": "^1.6.18",
|
"type-is": "^1.6.18",
|
||||||
"unleash-client": "^6.5.0",
|
"unleash-client": "^6.6.0",
|
||||||
"uuid": "^9.0.0"
|
"uuid": "^9.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -64,7 +64,7 @@ export type IFlagKey =
|
|||||||
| 'uniqueSdkTracking'
|
| 'uniqueSdkTracking'
|
||||||
| 'frontendHeaderRedesign'
|
| 'frontendHeaderRedesign'
|
||||||
| 'dataUsageMultiMonthView'
|
| 'dataUsageMultiMonthView'
|
||||||
| 'connectionCount'
|
| 'consumptionModel'
|
||||||
| 'teamsIntegrationChangeRequests'
|
| 'teamsIntegrationChangeRequests'
|
||||||
| 'edgeObservability';
|
| 'edgeObservability';
|
||||||
|
|
||||||
@ -307,8 +307,8 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_DATA_USAGE_MULTI_MONTH_VIEW,
|
process.env.UNLEASH_EXPERIMENTAL_DATA_USAGE_MULTI_MONTH_VIEW,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
connectionCount: parseEnvVarBoolean(
|
consumptionModel: parseEnvVarBoolean(
|
||||||
process.env.EXPERIMENTAL_CONNECTION_COUNT,
|
process.env.EXPERIMENTAL_CONSUMPTION_MODEL,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
teamsIntegrationChangeRequests: parseEnvVarBoolean(
|
teamsIntegrationChangeRequests: parseEnvVarBoolean(
|
||||||
|
10
yarn.lock
10
yarn.lock
@ -9281,9 +9281,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"unleash-client@npm:^6.5.0":
|
"unleash-client@npm:^6.6.0":
|
||||||
version: 6.5.0
|
version: 6.6.0
|
||||||
resolution: "unleash-client@npm:6.5.0"
|
resolution: "unleash-client@npm:6.6.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
http-proxy-agent: "npm:^7.0.2"
|
http-proxy-agent: "npm:^7.0.2"
|
||||||
https-proxy-agent: "npm:^7.0.5"
|
https-proxy-agent: "npm:^7.0.5"
|
||||||
@ -9293,7 +9293,7 @@ __metadata:
|
|||||||
murmurhash3js: "npm:^3.0.1"
|
murmurhash3js: "npm:^3.0.1"
|
||||||
proxy-from-env: "npm:^1.1.0"
|
proxy-from-env: "npm:^1.1.0"
|
||||||
semver: "npm:^7.6.2"
|
semver: "npm:^7.6.2"
|
||||||
checksum: 10c0/766f7285a6e3847c5ed60a2c303092be657221a41743a9047f0a09423cff8d82b3e834a1e6f2b7a02f777cb94e7219653d36d2469ba9355b9245e945701dfa92
|
checksum: 10c0/d97805744874a0dd66af7304142c40e0c5eea1958b4a3ebbeb29fdbc0d4a1e9d8bde2f713ffa972d825cd80f11958f19d5bcf97503857a2692c542755ede01ff
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -9409,7 +9409,7 @@ __metadata:
|
|||||||
tsc-watch: "npm:6.2.1"
|
tsc-watch: "npm:6.2.1"
|
||||||
type-is: "npm:^1.6.18"
|
type-is: "npm:^1.6.18"
|
||||||
typescript: "npm:5.4.5"
|
typescript: "npm:5.4.5"
|
||||||
unleash-client: "npm:^6.5.0"
|
unleash-client: "npm:^6.6.0"
|
||||||
uuid: "npm:^9.0.0"
|
uuid: "npm:^9.0.0"
|
||||||
wait-on: "npm:^7.2.0"
|
wait-on: "npm:^7.2.0"
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
|
Loading…
Reference in New Issue
Block a user