[ML] Anomaly explorer query bar - ensure anomalies table results retained after refresh (#37041)

* Don't specify influencers if overall cell selected

* use swimlane type overall constant
This commit is contained in:
Melissa Alvarez 2019-05-24 13:26:51 -04:00 committed by GitHub
parent fcf0466a0e
commit c4277fd1da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,7 @@ import { mlResultsService } from 'plugins/ml/services/results_service';
import {
MAX_CATEGORY_EXAMPLES,
MAX_INFLUENCER_FIELD_VALUES,
SWIMLANE_TYPE,
VIEW_BY_JOB_LABEL,
} from './explorer_constants';
import {
@ -191,6 +192,7 @@ export function getSelectionTimeRange(selectedCells, interval, bounds) {
export function getSelectionInfluencers(selectedCells, fieldName) {
if (
selectedCells !== null &&
selectedCells.type !== SWIMLANE_TYPE.OVERALL &&
selectedCells.viewByFieldName !== undefined &&
selectedCells.viewByFieldName !== VIEW_BY_JOB_LABEL
) {