зеркало из https://github.com/mozilla/fxa.git
Merge pull request #17516 from mozilla/FXA-10329-settings-glean-app-channel
fix(Glean): use the configured app channel for Glean in Settings
This commit is contained in:
Коммит
e6e7a9508e
|
@ -218,7 +218,7 @@ describe('glean', () => {
|
|||
...config.glean,
|
||||
enabled: mockMetricsQueryAccountGlean.metricsEnabled,
|
||||
appDisplayVersion: config.version,
|
||||
channel: config.glean.channel,
|
||||
appChannel: config.glean.appChannel,
|
||||
},
|
||||
{
|
||||
metricsFlow: updatedFlowQueryParams,
|
||||
|
|
|
@ -173,7 +173,7 @@ export const App = ({
|
|||
...config.glean,
|
||||
enabled: metricsEnabled,
|
||||
appDisplayVersion: config.version,
|
||||
channel: config.glean.channel,
|
||||
appChannel: config.glean.appChannel,
|
||||
},
|
||||
{
|
||||
metricsFlow,
|
||||
|
|
|
@ -72,7 +72,7 @@ export interface Config {
|
|||
applicationId: string;
|
||||
uploadEnabled: boolean;
|
||||
appDisplayVersion: string;
|
||||
channel: string;
|
||||
appChannel: string;
|
||||
serverEndpoint: string;
|
||||
logPings: boolean;
|
||||
debugViewTag: string;
|
||||
|
@ -153,7 +153,7 @@ export function getDefault() {
|
|||
enabled: false,
|
||||
applicationId: 'accounts_frontend_dev',
|
||||
uploadEnabled: true,
|
||||
channel: 'development',
|
||||
appChannel: 'development',
|
||||
serverEndpoint: 'https://incoming.telemetry.mozilla.org',
|
||||
logPings: false,
|
||||
debugViewTag: '',
|
||||
|
|
|
@ -38,7 +38,7 @@ const mockConfig: Config['glean'] = {
|
|||
applicationId: 'testo',
|
||||
uploadEnabled: true,
|
||||
appDisplayVersion: '9001',
|
||||
channel: 'test',
|
||||
appChannel: 'test',
|
||||
serverEndpoint: 'https://metrics.example.io/',
|
||||
logPings: false,
|
||||
debugViewTag: '',
|
||||
|
@ -195,7 +195,7 @@ describe('lib/glean', () => {
|
|||
mockConfig.uploadEnabled,
|
||||
{
|
||||
appDisplayVersion: mockConfig.appDisplayVersion,
|
||||
channel: mockConfig.channel,
|
||||
channel: mockConfig.appChannel,
|
||||
serverEndpoint: mockConfig.serverEndpoint,
|
||||
enableAutoPageLoadEvents: true,
|
||||
enableAutoElementClickEvents: true,
|
||||
|
|
|
@ -539,7 +539,7 @@ export const GleanMetrics: Pick<
|
|||
if (config.enabled) {
|
||||
Glean.initialize(config.applicationId, config.uploadEnabled, {
|
||||
appDisplayVersion: config.appDisplayVersion,
|
||||
channel: config.channel,
|
||||
channel: config.appChannel,
|
||||
serverEndpoint: config.serverEndpoint,
|
||||
enableAutoPageLoadEvents: true,
|
||||
enableAutoElementClickEvents: true,
|
||||
|
|
|
@ -7,7 +7,7 @@ export type GleanMetricsConfig = {
|
|||
applicationId: string;
|
||||
uploadEnabled: boolean;
|
||||
appDisplayVersion: string;
|
||||
channel: string;
|
||||
appChannel: string;
|
||||
serverEndpoint: string;
|
||||
logPings: boolean;
|
||||
debugViewTag: string;
|
||||
|
|
Загрузка…
Ссылка в новой задаче