Skip to content

Commit

Permalink
Fix #54 and #53 and bummp version to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ppadovani committed Mar 24, 2018
1 parent d2c3998 commit e047780
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nested-fields-support",
"version": "6.2.2-1.0.0",
"version": "6.2.2-1.0.1",
"description": "Nested Support Plugin",
"license": "Apache-2.0",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion public/nested_support/agg_types/buckets/terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Terms.AggTypesBucketsTermsProvider = function(Private) {
}

// if the target aggregation is nested, refer to it by its nested location
if (orderAgg.nestedPath || orderAgg.reverseNested) {
if (agg.params.field.nestedPath) {
orderAggId = 'nested_' + orderAggId + '>' + orderAggId;
}

Expand Down
3 changes: 3 additions & 0 deletions public/nested_support/index_patterns/_flatten_hit.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export function IndexPatternsNestedFlattenHitProvider(config) {

return function flattenHitWrapper(indexPattern) {
return function cachedFlatten(hit, deep = false) {
if (!deep) {
deep = indexPattern.nested;
}
return hit.$$_flattened || (hit.$$_flattened = flattenHit(indexPattern, hit, deep));
};
};
Expand Down
1 change: 1 addition & 0 deletions public/nested_support/index_patterns/field.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ObjDefine } from 'ui/utils/obj_define';
import { RegistryFieldFormatsProvider } from 'ui/registry/field_formats';
import { FieldFormat } from 'ui/../field_formats/field_format';
import { getKbnFieldType } from './kbn_field_types';
import * as field from 'ui/index_patterns/_field';

Expand Down

0 comments on commit e047780

Please sign in to comment.