-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simplified tabify #19061
simplified tabify #19061
Conversation
💔 Build Failed |
💔 Build Failed |
84d0645
to
fe48177
Compare
💔 Build Failed |
fe48177
to
741ae8c
Compare
💔 Build Failed |
741ae8c
to
a8f4350
Compare
💔 Build Failed |
a8f4350
to
75ac775
Compare
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
518099c
to
f7ce7da
Compare
💔 Build Failed |
c76422d
to
1d92a2b
Compare
💔 Build Failed |
1d92a2b
to
7767c76
Compare
💔 Build Failed |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
@@ -24,23 +24,27 @@ import { tabifyGetColumns } from './_get_columns'; | |||
* Writer class that collects information about an aggregation response and | |||
* produces a table, or a series of tables. | |||
* | |||
* @param {Vis} vis - the vis object to which the aggregation response correlates | |||
* @param {AggConfigs} aggs - the agg configs object to which the aggregation response correlates | |||
* @param {boolean} minimalColumns - setting to false will produce metrics for every bucket |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs adjustements to the new parameters partialRows
and metricsAtAllLevels
now.
*/ | ||
function TabbedAggResponseWriter(aggs, opts) { | ||
this.opts = opts || {}; | ||
function TabbedAggResponseWriter(aggs, { metricsAtAllLevels = false, partialRows = false }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function TabbedAggResponseWriter(aggs, { metricsAtAllLevels = false, partialRows = false }) {
->
function TabbedAggResponseWriter(aggs, { metricsAtAllLevels = false, partialRows = false } = {}) {
That way it will also work if the user didn't specify a 2nd parameter at all.
@@ -41,7 +41,7 @@ describe('Vislib Vis Type', function () { | |||
describe('initialization', () => { | |||
it('should set the basic response handler if not set', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should set the **vislib** response handler if not set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
💔 Build Failed |
|
retest |
💚 Build Succeeded |
💚 Build Succeeded |
simplifies tabify:
all the response handlers are now based on top of this simple tabify.
new table response handler was added which 'emulates' the old table format and is only used by table visualization. Once table visualization gets ported to react this can be removed.
Closes #20197
Closes #22168
QA: No functionality has changed, however every visualization could potentially break due to this as it changes the data format.
Dev-Docs
Custom no data screen
By default Kibana will take care of showing "No data" to the user if no data was retrieved for a visualization. You can disable that behavior by specifying
useCustomNoDataScreen: true
in your vis type registration. This flag replaces the earlierhandleNoData
flag due to its confusing name. ThehandleNoData
flag does not have any effect anymore.