mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
0bdafcf0e2
commit
465adb9166
5 changed files with 12 additions and 3 deletions
|
@ -423,6 +423,7 @@ function VisEditor(
|
||||||
const searchSourceGrandparent = searchSourceParent.getParent();
|
const searchSourceGrandparent = searchSourceParent.getParent();
|
||||||
|
|
||||||
delete savedVis.savedSearchId;
|
delete savedVis.savedSearchId;
|
||||||
|
delete vis.savedSearchId;
|
||||||
searchSourceParent.setField('filter', _.union(searchSource.getOwnField('filter'), searchSourceParent.getOwnField('filter')));
|
searchSourceParent.setField('filter', _.union(searchSource.getOwnField('filter'), searchSourceParent.getOwnField('filter')));
|
||||||
|
|
||||||
$state.query = searchSourceParent.getField('query');
|
$state.query = searchSourceParent.getField('query');
|
||||||
|
|
|
@ -141,6 +141,8 @@ uiModules
|
||||||
self.visState
|
self.visState
|
||||||
);
|
);
|
||||||
|
|
||||||
|
self.vis.savedSearchId = self.savedSearchId;
|
||||||
|
|
||||||
return self.vis;
|
return self.vis;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -150,6 +152,7 @@ uiModules
|
||||||
self.vis.indexPattern = self.searchSource.getField('index');
|
self.vis.indexPattern = self.searchSource.getField('index');
|
||||||
self.visState.title = self.title;
|
self.visState.title = self.title;
|
||||||
self.vis.setState(self.visState);
|
self.vis.setState(self.visState);
|
||||||
|
self.vis.savedSearchId = self.savedSearchId;
|
||||||
};
|
};
|
||||||
|
|
||||||
return SavedVis;
|
return SavedVis;
|
||||||
|
|
|
@ -94,7 +94,7 @@ describe('Geohash Agg', () => {
|
||||||
|
|
||||||
describe('precision parameter', () => {
|
describe('precision parameter', () => {
|
||||||
|
|
||||||
const PRECISION_PARAM_INDEX = 6;
|
const PRECISION_PARAM_INDEX = 7;
|
||||||
let precisionParam;
|
let precisionParam;
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
precisionParam = geoHashBucketAgg.params[PRECISION_PARAM_INDEX];
|
precisionParam = geoHashBucketAgg.params[PRECISION_PARAM_INDEX];
|
||||||
|
|
|
@ -100,6 +100,11 @@ export const geoHashBucketAgg = new BucketAggType({
|
||||||
default: [0, 0],
|
default: [0, 0],
|
||||||
write: _.noop
|
write: _.noop
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'mapBounds',
|
||||||
|
default: null,
|
||||||
|
write: _.noop
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'precision',
|
name: 'precision',
|
||||||
editor: precisionTemplate,
|
editor: precisionTemplate,
|
||||||
|
|
|
@ -52,7 +52,7 @@ class AggConfigs extends IndexedArray {
|
||||||
|
|
||||||
super({
|
super({
|
||||||
index: ['id'],
|
index: ['id'],
|
||||||
group: ['schema.group', 'type.name', 'schema.name'],
|
group: ['schema.group', 'type.name', 'type.type', 'schema.name'],
|
||||||
});
|
});
|
||||||
|
|
||||||
this.indexPattern = indexPattern;
|
this.indexPattern = indexPattern;
|
||||||
|
@ -152,7 +152,7 @@ class AggConfigs extends IndexedArray {
|
||||||
|
|
||||||
if (hierarchical) {
|
if (hierarchical) {
|
||||||
// collect all metrics, and filter out the ones that we won't be copying
|
// collect all metrics, and filter out the ones that we won't be copying
|
||||||
nestedMetrics = _(this.bySchemaGroup.metrics)
|
nestedMetrics = _(this.byTypeType.metrics)
|
||||||
.filter(function (agg) {
|
.filter(function (agg) {
|
||||||
return agg.type.name !== 'count';
|
return agg.type.name !== 'count';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue