[ML] Fixing quick create geo job created by ID (#177691)

We should differentiate between geo jobs created in lens, and the ones
created in the original wizards.
We do this for single and multi metric jobs.
This commit is contained in:
James Gowdy 2024-03-05 10:40:12 +01:00 committed by GitHub
parent fc95352754
commit 64fa491043
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View file

@ -23,6 +23,7 @@ export enum CREATED_BY_LABEL {
CATEGORIZATION = 'categorization-wizard',
RARE = 'rare-wizard',
GEO = 'geo-wizard',
GEO_FROM_LENS = 'geo-wizard-from-lens',
APM_TRANSACTION = 'ml-module-apm-transaction',
SINGLE_METRIC_FROM_LENS = 'single-metric-wizard-from-lens',
MULTI_METRIC_FROM_LENS = 'multi-metric-wizard-from-lens',

View file

@ -105,7 +105,7 @@ export class QuickGeoJobCreator extends QuickJobCreatorBase {
jobId,
datafeedConfig,
jobConfig,
createdByLabel: CREATED_BY_LABEL.GEO,
createdByLabel: CREATED_BY_LABEL.GEO_FROM_LENS,
dashboard,
start,
end,

View file

@ -62,6 +62,7 @@ async function getWizardUrlFromCloningJob(createdBy: string | undefined, dataVie
page = JOB_TYPE.RARE;
break;
case CREATED_BY_LABEL.GEO:
case CREATED_BY_LABEL.GEO_FROM_LENS:
page = JOB_TYPE.GEO;
break;
case CREATED_BY_LABEL.ADVANCED: