-
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
Converted brush event to TS. Migrated tests to "jest" way and optimiz… #58206
Converted brush event to TS. Migrated tests to "jest" way and optimiz… #58206
Conversation
💚 CLA has been signed |
@elasticmachine merge upstream |
1 similar comment
@elasticmachine merge upstream |
67a6831
to
1f93355
Compare
@elasticmachine merge upstream |
1 similar comment
@elasticmachine merge upstream |
1b93c43
to
b4c3bbe
Compare
Pinging @elastic/kibana-app-arch (Team:AppArch) |
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! Thank you
@elasticmachine merge upstream |
Jenkins, test 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.
Added two comments, but overall LGTM once we get a green build. Thanks @VladLasitsa!
src/legacy/core_plugins/data/public/actions/filters/brush_event.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/actions/select_range_action.ts
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
Jenkins, test this |
@elasticmachine merge upstream |
src/legacy/core_plugins/data/public/actions/filters/brush_event.ts
Outdated
Show resolved
Hide resolved
import { deserializeAggConfig } from '../../search'; | ||
// should be removed after moving into new platform plugins data folder | ||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths | ||
import { getIndexPatterns } from '../../../../../../plugins/data/public/services'; |
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 (i am hopefully wrong) onBrushEvent might be statically exported on the contract ? if it is we shouldn't be using state inside it (getIndexPatterns should be passed in as a paramter)
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 investigated this. onBrushEvent was imported only on one place - SelectRengeAction. Moreover, previously we imported getIndexPattern inside SelectRengeAction and just pass to onBrushEvent. Because of this, I decided to move import inside onBrushEvent. I cannot see any reason to think that onBrushEvent might be statically exported on the contract.
c1c2cef
to
c23f39f
Compare
retest |
Jenkins, test this |
…ort deserializeAggConfig.
Jenkins, test this |
1 similar comment
Jenkins, test this |
@elasticmachine merge upstream |
Jenkins, test this |
jenkins test this please |
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
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
elastic#58206) * Converted brush event to TS. Migrated tests to "jest" way and optimiz * Removed unused definition in interface. Revert changes related to import deserializeAggConfig. Co-authored-by: Alexey Antonov <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
#58206) (#58594) * Converted brush event to TS. Migrated tests to "jest" way and optimiz * Removed unused definition in interface. Revert changes related to import deserializeAggConfig. Co-authored-by: Alexey Antonov <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Alexey Antonov <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Closes: #57395
Summary
src/legacy/core_plugins/data/public/actions/filters/brush_event.js
Checklist
Delete any items that are not applicable to this PR.
For maintainers