[ML] Display typical values for lat_long anomalies (#18715)

This commit is contained in:
Pete Harverson 2018-05-02 13:21:49 +01:00 committed by GitHub
parent af1a9b6a13
commit 34cc14f445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -265,6 +265,7 @@ describe('ML - anomaly utils', () => {
it('returns true for expected function descriptions', () => {
expect(showTypicalForFunction('count')).to.be(true);
expect(showTypicalForFunction('distinct_count')).to.be(true);
expect(showTypicalForFunction('lat_long')).to.be(true);
expect(showTypicalForFunction('mean')).to.be(true);
expect(showTypicalForFunction('max')).to.be(true);
expect(showTypicalForFunction('min')).to.be(true);
@ -276,7 +277,6 @@ describe('ML - anomaly utils', () => {
});
it('returns false for expected function descriptions', () => {
expect(showTypicalForFunction('lat_long')).to.be(false);
expect(showTypicalForFunction('rare')).to.be(false);
});

View file

@ -18,7 +18,7 @@ const DISPLAY_ACTUAL_FUNCTIONS = ['count', 'distinct_count', 'lat_long', 'mean',
'median', 'varp', 'info_content', 'time'];
// List of function descriptions for which typical values from record level results should be displayed.
const DISPLAY_TYPICAL_FUNCTIONS = ['count', 'distinct_count', 'mean', 'max', 'min', 'sum',
const DISPLAY_TYPICAL_FUNCTIONS = ['count', 'distinct_count', 'lat_long', 'mean', 'max', 'min', 'sum',
'median', 'varp', 'info_content', 'time'];
// Returns a severity label (one of critical, major, minor, warning or unknown)