-
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
[Vis: Default editor] EUIficate order_agg param editor #36984
[Vis: Default editor] EUIficate order_agg param editor #36984
Conversation
💔 Build Failed |
💔 Build Failed |
5a8f942
to
d952546
Compare
💔 Build Failed |
💔 Build Failed |
return aggFilter.includes(`!${agg.type.name}`); | ||
}; | ||
|
||
$scope.$watch('agg.params.field.type', (type) => { |
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.
This watcher was moved to the missing_bucket.tsx
useEffect
function
@@ -174,24 +149,11 @@ export const termsBucketAgg = new BucketAggType({ | |||
const orderBy = params.orderBy; | |||
const paramDef = agg.type.params.byName.orderAgg; | |||
|
|||
// setup the initial value of orderBy | |||
if (!orderBy && prevOrderBy === INIT) { |
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.
This logic was moved to order_agg.tsx
useEffect
function (initialization step)
@@ -17,29 +17,23 @@ | |||
* under the License. | |||
*/ | |||
|
|||
import _ from 'lodash'; |
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.
Just get rid of lodash
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.
In general the changes looks good, but please address the comments below
Pinging @elastic/kibana-app |
💔 Build Failed |
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, tested on Chrome 74.0, it works fine.
Co-Authored-By: Maryia Lapata <[email protected]>
💔 Build Failed |
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.
UI replacement LGTM. Just one capitalization change.
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.
Changes themselves look good to me, tested locally. Please do not merge until #37064 is merged.
package.json
Outdated
"enzyme": "^3.7.0", | ||
"enzyme-adapter-react-16": "^1.9.0", | ||
"enzyme": "^3.9.0", | ||
"enzyme-adapter-react-16": "^1.13.1", |
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 saw you have another PR out for upgrading these, but the PRs have some slight differences. I'd like to get the other PR merged before this one, so the right people can review that dependency upgrade.
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.
Functional tests changes look good.
💚 Build Succeeded |
* EUIficate order_agg param editor * Update browser tests * Add types * Update enzyme version in x-pack * Fix functional tests * Changes due to comments * Update_terms_helper.tsx Co-Authored-By: Maryia Lapata <[email protected]> * Fix code review comments * Update yarn.lock
💔 Build Failed |
* EUIficate order_agg param editor * Update browser tests * Add types * Update enzyme version in x-pack * Fix functional tests * Changes due to comments * Update_terms_helper.tsx Co-Authored-By: Maryia Lapata <[email protected]> * Fix code review comments * Update yarn.lock
* EUIficate order_agg param editor * Update browser tests * Add types * Update enzyme version in x-pack * Fix functional tests * Changes due to comments * Update_terms_helper.tsx Co-Authored-By: Maryia Lapata <[email protected]> * Fix code review comments * Update yarn.lock
Summary
Waiting for merge #37064.
Part of #30922.
EUIfication of
order_agg
control for Terms aggregation parameter.Technically the PR only contains the EUIficated
Order by
param editor. Theorder_agg
still remains inangularjs
template and will be done as a part ofvis-editor-agg-params
Euification:Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers