Skip to content

hierarchical response handler rewrite#22578

Merged
ppisljar merged 6 commits intoelastic:masterfrom
ppisljar:rewrite/hierarchicalResponseHandler
Sep 13, 2018
Merged

hierarchical response handler rewrite#22578
ppisljar merged 6 commits intoelastic:masterfrom
ppisljar:rewrite/hierarchicalResponseHandler

Conversation

@ppisljar
Copy link
Copy Markdown
Contributor

@ppisljar ppisljar commented Aug 31, 2018

rewrites hierarchical response handler in preparation for #19813

all response handlers needs to be based on top of tabify. hierarchical was still using es raw response directly.

@ppisljar ppisljar added WIP Work in progress Feature:Visualizations Generic visualization features (in case no more specific feature label is available) v7.0.0 v6.5.0 labels Aug 31, 2018
@ppisljar ppisljar requested review from markov00 and timroes August 31, 2018 11:55
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@ppisljar ppisljar force-pushed the rewrite/hierarchicalResponseHandler branch from 0677969 to 8d5163b Compare September 11, 2018 09:48
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@ppisljar ppisljar force-pushed the rewrite/hierarchicalResponseHandler branch from 8b533fc to 24faf14 Compare September 12, 2018 11:21
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@markov00 markov00 removed the WIP Work in progress label Sep 12, 2018
Copy link
Copy Markdown
Contributor

@markov00 markov00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To minor comments on the code.
Overall looks good. Tested on chrome

const name = fieldFormatter(row[columnIndex].value);
const size = row[columnIndex + 1].value;
const aggConfig = table.columns[columnIndex].aggConfig;
const aggConfigResult = row[columnIndex + 1];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a formatting hint I will rather rewrite this as:

for(;;)
const { aggConfig } = table.columns[columnIndex]
const bucketColumn = row[columnIndex];
const metricColumn = row[columnIndex + 1];
const fieldFormatter = aggConfig.fieldFormatter('text');
const name = fieldFormatter(bucketColumn.value);
const size = metricColumn.value;

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
code review, tested pie chart visualization with 3 slices and one split. Functionally the same as master. Verified tooltips and filtering also work.

ppisljar added a commit to ppisljar/kibana that referenced this pull request Sep 13, 2018
@ppisljar ppisljar deleted the rewrite/hierarchicalResponseHandler branch September 14, 2018 09:28
@ppisljar ppisljar restored the rewrite/hierarchicalResponseHandler branch September 26, 2018 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Visualizations Generic visualization features (in case no more specific feature label is available) review v6.5.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants