forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TSVB] Doesn't work correctly with pipeline aggregations in "entire t…
…ime range" mode (elastic#105073) (elastic#112076) * Use date_histogram instead of auto_date_histogram in pipeline aggregations * Fix ci * Fix eslint * start disable parent pipeline aggs and show error * Fix CI * Fix eslint * Fix CI * Add functional tests * Some fixes * Fix lint * Use agg_utils * Fix lint * Fix text * Fix lint * Fix tests * Fixed condition * Fix math aggregation * math should pass panel type as prop Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
60c30c4
commit fb6e27e
Showing
26 changed files
with
352 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
/* eslint-disable max-classes-per-file */ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
|
||
export class UIError extends Error { | ||
constructor(message: string) { | ||
super(message); | ||
} | ||
|
||
public get name() { | ||
return this.constructor.name; | ||
} | ||
|
||
public get errBody() { | ||
return this.message; | ||
} | ||
} | ||
|
||
export class FieldNotFoundError extends UIError { | ||
constructor(name: string) { | ||
super( | ||
i18n.translate('visTypeTimeseries.errors.fieldNotFound', { | ||
defaultMessage: `Field "{field}" not found`, | ||
values: { field: name }, | ||
}) | ||
); | ||
} | ||
} | ||
|
||
export class ValidateIntervalError extends UIError { | ||
constructor() { | ||
super( | ||
i18n.translate('visTypeTimeseries.errors.maxBucketsExceededErrorMessage', { | ||
defaultMessage: | ||
'Your query attempted to fetch too much data. Reducing the time range or changing the interval used usually fixes the issue.', | ||
}) | ||
); | ||
} | ||
} | ||
|
||
export class AggNotSupportedInMode extends UIError { | ||
constructor(metricType: string, timeRangeMode: string) { | ||
super( | ||
i18n.translate('visTypeTimeseries.wrongAggregationErrorMessage', { | ||
defaultMessage: 'The aggregation {metricType} is not supported in {timeRangeMode} mode', | ||
values: { metricType, timeRangeMode }, | ||
}) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
...gins/vis_type_timeseries/public/application/components/aggs/temporary_unsupported_agg.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.