Skip to content
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

Converted terms_other_bucket_helper to TS. Migrated tests to jest. #58143

Conversation

VladLasitsa
Copy link
Contributor

@VladLasitsa VladLasitsa commented Feb 20, 2020

Closes: #57396

Summary

src/legacy/core_plugins/data/public/search/aggs/buckets/_terms_other_bucket_helper.js

  • convert to TS

  • convert test file to TS/Jest

  • add tests for any missing cases you find along the way

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@kibanamachine
Copy link
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@cla-checker-service
Copy link

Author of the following commits did not sign a Contributor Agreement:
563d735

Please, read and sign the above mentioned agreement if you want to contribute to this project

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@cla-checker-service
Copy link

cla-checker-service bot commented Feb 21, 2020

💚 CLA has been signed

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@alexwizp
Copy link
Contributor

@elasticmachine merge upstream

@brianseeders
Copy link
Contributor

cla/check

@jbudz
Copy link
Member

jbudz commented Feb 21, 2020

@VladLasitsa can you go through the CLA signing process using the email in your git commit(maybe again - sorry); the cla check only checks two lists currently, signings through https://www.elastic.co/contributor-agreement or if the github account is in the elastic org

@jbudz
Copy link
Member

jbudz commented Feb 24, 2020

cla/check

1 similar comment
@VladLasitsa
Copy link
Contributor Author

cla/check

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@elastic elastic deleted a comment from VladLasitsa Feb 25, 2020
@alexwizp
Copy link
Contributor

retest

@VladLasitsa
Copy link
Contributor Author

jenkins test this please

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@VladLasitsa VladLasitsa marked this pull request as ready for review February 26, 2020 14:36
@VladLasitsa VladLasitsa requested a review from a team as a code owner February 26, 2020 14:36
@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

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

some initial questions

params: {
field: {
name: 'machine.os.raw',
indexPattern,
Copy link
Member

Choose a reason for hiding this comment

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

why are indexPattern and filterable now passed in ? (whole field is an object, where before it was a string)

Copy link
Contributor Author

@VladLasitsa VladLasitsa Feb 26, 2020

Choose a reason for hiding this comment

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

I don't know how it worked before. Nevertheless, we can have a string as a field but in this case, we should modify mock of IndexPattern because there are several tests that use aggconfig with two fields. From my point of view more simple to use an object as a field.

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@lukeelmers lukeelmers mentioned this pull request Feb 27, 2020
40 tasks
Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

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

Will continue reviewing this in more detail tomorrow, added a couple small comments so far

Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

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

Okay, took another look and tested locally (chrome), and nothing seems amiss.

LGTM, thanks @VladLasitsa!

@alexwizp
Copy link
Contributor

alexwizp commented Mar 2, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@VladLasitsa VladLasitsa merged commit b5dd99c into elastic:master Mar 2, 2020
VladLasitsa added a commit to VladLasitsa/kibana that referenced this pull request Mar 2, 2020
…lastic#58143)

* Converted terms_other_bucket_helper to TS. Migrated tests to jest.

* Fixed some remarks

* fix PR comments

* Fixed tests

* Fixed types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
alexwizp added a commit that referenced this pull request Mar 2, 2020
…58143) (#59031)

* Converted terms_other_bucket_helper to TS. Migrated tests to jest.

* Fixed some remarks

* fix PR comments

* Fixed tests

* Fixed types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
dgieselaar pushed a commit to dgieselaar/kibana that referenced this pull request Mar 3, 2020
…lastic#58143)

* Converted terms_other_bucket_helper to TS. Migrated tests to jest.

* Fixed some remarks

* fix PR comments

* Fixed tests

* Fixed types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[aggs/terms_other_bucket_helper]: Convert to TS & Jest
8 participants