-
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
Converted terms_other_bucket_helper to TS. Migrated tests to jest. #58143
Converted terms_other_bucket_helper to TS. Migrated tests to jest. #58143
Conversation
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? |
Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
@elasticmachine merge upstream |
…Convert_to_TS_Jest
💚 CLA has been signed |
src/legacy/core_plugins/data/public/search/aggs/buckets/_terms_other_bucket_helper.test.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/_terms_other_bucket_helper.test.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/_terms_other_bucket_helper.test.ts
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
…Convert_to_TS_Jest
@elasticmachine merge upstream |
…Convert_to_TS_Jest
@elasticmachine merge upstream |
…Convert_to_TS_Jest
cla/check |
@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 |
cla/check |
1 similar comment
cla/check |
@elasticmachine merge upstream |
…Convert_to_TS_Jest
retest |
jenkins test this please |
@elasticmachine merge upstream |
…Convert_to_TS_Jest
Pinging @elastic/kibana-app-arch (Team:AppArch) |
@elasticmachine merge upstream |
…Convert_to_TS_Jest
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.
some initial questions
src/legacy/core_plugins/data/public/search/aggs/buckets/_terms_other_bucket_helper.ts
Outdated
Show resolved
Hide resolved
params: { | ||
field: { | ||
name: 'machine.os.raw', | ||
indexPattern, |
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.
why are indexPattern and filterable now passed in ? (whole field is an object, where before it was a string)
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 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.
@elasticmachine merge upstream |
…Convert_to_TS_Jest
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.
Will continue reviewing this in more detail tomorrow, added a couple small comments so far
src/legacy/core_plugins/data/public/search/aggs/buckets/_terms_other_bucket_helper.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/_terms_other_bucket_helper.ts
Outdated
Show resolved
Hide resolved
…rms_other_bucket_helper]_Convert_to_TS_Jest
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.
Okay, took another look and tested locally (chrome), and nothing seems amiss.
LGTM, thanks @VladLasitsa!
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…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>
…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>
…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>
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