-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Default to named ui public n to z #11221
Default to named ui public n to z #11221
Conversation
74578ae
to
e0faa74
Compare
Hmm, error looks strange:
jenkins, test this |
Looks like another invalid failure, different one this time:
jenkins, test this |
06c266a
to
d593c33
Compare
jenkins, test this (functional runner failed to start) |
7c4b5dc
to
09cc7e3
Compare
5b1a269
to
f186247
Compare
Build error:
I think I've seen this one before and it's flaky (exceeds the timeout anyway, doesn't actually fail...) jenkins, test this. |
f186247
to
9327c55
Compare
9327c55
to
c4621e0
Compare
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.
Amazing work, as before! I left a few comments but overall LGTM!
@@ -1,12 +1,12 @@ | |||
import _ from 'lodash'; | |||
import VisProvider from 'ui/vis'; | |||
import { VisProvider } from 'ui/vis'; | |||
import AggTypesIndexProvider from 'ui/agg_types/index'; |
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.
Any reason this one didn't change?
@@ -5,7 +5,8 @@ import ngMock from 'ng_mock'; | |||
import AggParamWriterProvider from '../../agg_param_writer'; | |||
import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern'; | |||
import AggTypesIndexProvider from 'ui/agg_types/index'; |
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.
Any reason this one didn't change?
@@ -1,7 +1,7 @@ | |||
import _ from 'lodash'; | |||
import expect from 'expect.js'; | |||
import ngMock from 'ng_mock'; | |||
import VisProvider from 'ui/vis'; | |||
import { VisProvider } from 'ui/vis'; | |||
import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern'; | |||
import AggTypesParamTypesCalculateIntervalProvider from 'ui/agg_types/param_types/_calculate_interval'; |
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.
AFAICT, there is no file corresponding to ui/agg_types/param_types/_calculate_interval
in the source code. I looked in https://github.com/elastic/kibana/tree/master/src/ui/public/agg_types/param_types. How is this even working? 😄
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.
Hah, interesting. Looks like this test is never being run because it's not mentioned in the index.js file. I'll remove the file in a separate PR, so the vis team can take a more focused look and in case we ever need to bring it back, it's decoupled from this monster PR. :)
@@ -45,3 +46,6 @@ export default function () { | |||
|
|||
return esDuration; | |||
} | |||
|
|||
// used by x-pack. TODO: switch to named and remove. |
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'd suggest removing this comment and others like it that reference x-pack from OSS Kibana source code. When we see these default imports in x-pack-kibana, we'll know which ones to come back and cleanup in OSS Kibana.
src/ui/public/vis/agg_configs.js
Outdated
@@ -9,9 +9,10 @@ | |||
|
|||
import _ from 'lodash'; | |||
import { IndexedArray } from 'ui/indexed_array'; | |||
import VisAggConfigProvider from 'ui/vis/agg_config'; | |||
import { VisAggConfigProvider } from 'ui/vis/agg_config'; | |||
import AggTypesIndexProvider from 'ui/agg_types/index'; |
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.
Any reason not to change this?
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.
Looks like this file got left out of the a - m chunk. I'll add the conversion in here. It still works bc I kept the default export around in that file.
src/ui/public/vis/vis.js
Outdated
@@ -10,13 +10,13 @@ | |||
|
|||
import _ from 'lodash'; | |||
import AggTypesIndexProvider from 'ui/agg_types/index'; |
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.
Any reason not to change this?
src/ui/public/vislib/lib/data.js
Outdated
import VislibComponentsLabelsLabelsProvider from '../components/labels/labels'; | ||
import { VislibComponentsZeroInjectionInjectZerosProvider } from '../components/zero_injection/inject_zeros'; | ||
import { VislibComponentsZeroInjectionOrderedXKeysProvider } from '../components/zero_injection/ordered_x_keys'; | ||
import { VislibComponentsLabelsLabelsProvider } from '../components/labels/labels'; | ||
import VislibComponentsColorColorProvider from 'ui/vis/components/color/color'; |
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.
Any reason not to change this?
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.
Initially because I was waiting for this PR to get merged: #11251
But now it's merged so I'll convert.
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.
LGTM!
Related to #10981. Converting rest of ui/public to using named exports only. Default exports may still be around where they are used prolifically, or in x-pack.
Background: #8641