Skip to content

Commit

Permalink
[ML] increase MAX_NESTING_SUB_AGGS
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Jun 9, 2020
1 parent 157ff2e commit 5bf217c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/transform/public/app/common/pivot_aggs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export type PivotAggDict = {
/**
* The maximum level of sub-aggregations
*/
export const MAX_NESTING_SUB_AGGS = 2;
export const MAX_NESTING_SUB_AGGS = 10;

// The internal representation of an aggregation definition.
export interface PivotAggsConfigBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SubAggsSection: FC<{ item: PivotAggsConfig }> = ({ item }) => {
);

const isNewSubAggAllowed: boolean = useMemo(() => {
let nestingLevel = 0;
let nestingLevel = 1;
let parentItem = item.parentAgg;
while (parentItem !== undefined) {
nestingLevel++;
Expand Down

0 comments on commit 5bf217c

Please sign in to comment.