Skip to content

Commit

Permalink
Trying to upgrade to 6.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Charlot authored and gustavomatheus committed Oct 15, 2018
1 parent 000968a commit 899df65
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ if [ -n "$1" ]; then
exit
fi

build 6.4.2
build 6.4.1
build 6.4.0

build 6.3.2
build 6.3.1
build 6.3.0
Expand Down
8 changes: 4 additions & 4 deletions public/agg_types/formula.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { capitalize, map } from 'lodash';
import { AggTypesMetricsMetricAggTypeProvider } from 'ui/agg_types/metrics/metric_agg_type';
import * as prov from 'ui/registry/field_formats';
import * as magprov from 'ui/agg_types/metrics/metric_agg_type';
import * as ffprov from 'ui/registry/field_formats';
import formulaEditor from './formula.html';
import formatterEditor from './formatter.html';

export function AggTypesMetricsFormulaProvider(Private) {
const MetricAggType = Private(AggTypesMetricsMetricAggTypeProvider);
const fieldFormats = prov.fieldFormats || Private(prov.RegistryFieldFormatsProvider);
const MetricAggType = magprov.MetricAggType || Private(magprov.AggTypesMetricsMetricAggTypeProvider);
const fieldFormats = ffprov.fieldFormats || Private(ffprov.RegistryFieldFormatsProvider);
const defaultValue = null;
const formatters = map(['number', 'percent', 'boolean', 'bytes', 'numeral'], f => {
return { id: f, title: capitalize(f) };
Expand Down
4 changes: 2 additions & 2 deletions public/decorators/agg_types.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { AggTypesIndexProvider } from 'ui/agg_types';
import * as prov from 'ui/agg_types';
import { AggTypesMetricsFormulaProvider } from 'plugins/datasweet_formula/agg_types/formula';

export function decorateAggTypes(Private) {
const AggTypes = Private(AggTypesIndexProvider);
const AggTypes = prov.aggTypes || Private(prov.AggTypesIndexProvider);
const AggFormula = Private(AggTypesMetricsFormulaProvider);
AggFormula.type = 'metrics';
AggTypes.push(AggFormula);
Expand Down

0 comments on commit 899df65

Please sign in to comment.