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

[ui/agg_response/tabify] -> TypeScript & Jest & Shim #57660

Merged
merged 21 commits into from
Feb 20, 2020

Conversation

alexwizp
Copy link
Contributor

@alexwizp alexwizp commented Feb 14, 2020

Part of #57394

Summary

  • convert remaining files to TS
  • update old prototype based classes to use ES6 class syntax
  • convert tests to Jest & TS
  • relocate to data shim plugin src/legacy/core_plugins/data/public/search/aggs/agg_response
  • re-export contract from ui/agg_response/tabify (we can update imports later once it moves to NP along with the rest of agg_types)

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@elastic elastic deleted a comment from kibanamachine Feb 14, 2020
@alexwizp alexwizp mentioned this pull request Feb 16, 2020
7 tasks
@alexwizp
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

[ui/agg_response/tabify] -> TypeScript & Jest & Shim

Part of elastic#57394
@alexwizp
Copy link
Contributor Author

@elasticmachine merge upstream

@alexwizp
Copy link
Contributor Author

@elasticmachine merge upstream

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.

Did a first pass at the code with a few comments -- will look again once we are closer to merging this

alexwizp and others added 3 commits February 19, 2020 11:43
Co-Authored-By: Luke Elmers <lukeelmers@gmail.com>
# Conflicts:
#	src/legacy/core_plugins/data/public/search/tabify/types.ts
@alexwizp alexwizp marked this pull request as ready for review February 19, 2020 14:14
@alexwizp alexwizp requested a review from a team February 19, 2020 14:14
@alexwizp alexwizp requested review from a team as code owners February 19, 2020 14:14
@alexwizp
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Kibana app changes LGTM

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.

Code changes LGTM - thanks @alexwizp!

I think final naming & location within the data plugin can perhaps be revisited later (i.e. maybe we don't want to call it tabify moving forward?), but for now this will unblock forward progress on new platform migration.

@alexwizp
Copy link
Contributor Author

ping @elastic/kibana-gis

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

maps changes lgtm
code review

@alexwizp alexwizp merged commit ed2ca68 into elastic:master Feb 20, 2020
alexwizp added a commit to alexwizp/kibana that referenced this pull request Feb 20, 2020
* [ui/agg_response/tabify] -> TypeScript & Jest & Shim

[ui/agg_response/tabify] -> TypeScript & Jest & Shim

Part of elastic#57394

* fix CI

* move tabify into new folder

* TypeScript _bucket.js

* rename _buckets -> bucket

* fix CI

* tabify.test.js -> tabify.test.ts

* tabify.js -> tabify.ts

* fix JEST

* Update src/legacy/core_plugins/data/public/search/tabify/types.ts

Co-Authored-By: Luke Elmers <lukeelmers@gmail.com>

* fake_hierarchical_data.js -> fake_hierarchical_data.ts

* TimeRange -> TabbedRangeFilterParams

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
alexwizp added a commit to alexwizp/kibana that referenced this pull request Feb 20, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

alexwizp added a commit to alexwizp/kibana that referenced this pull request Feb 21, 2020
* [ui/agg_response/tabify] -> TypeScript & Jest & Shim

[ui/agg_response/tabify] -> TypeScript & Jest & Shim

Part of elastic#57394

* fix CI

* move tabify into new folder

* TypeScript _bucket.js

* rename _buckets -> bucket

* fix CI

* tabify.test.js -> tabify.test.ts

* tabify.js -> tabify.ts

* fix JEST

* Update src/legacy/core_plugins/data/public/search/tabify/types.ts

Co-Authored-By: Luke Elmers <lukeelmers@gmail.com>

* fake_hierarchical_data.js -> fake_hierarchical_data.ts

* TimeRange -> TabbedRangeFilterParams

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
alexwizp added a commit that referenced this pull request Feb 21, 2020
alexwizp added a commit that referenced this pull request Feb 21, 2020
* [ui/agg_response/tabify] -> TypeScript & Jest & Shim

[ui/agg_response/tabify] -> TypeScript & Jest & Shim

Part of #57394

* fix CI

* move tabify into new folder

* TypeScript _bucket.js

* rename _buckets -> bucket

* fix CI

* tabify.test.js -> tabify.test.ts

* tabify.js -> tabify.ts

* fix JEST

* Update src/legacy/core_plugins/data/public/search/tabify/types.ts

Co-Authored-By: Luke Elmers <lukeelmers@gmail.com>

* fake_hierarchical_data.js -> fake_hierarchical_data.ts

* TimeRange -> TabbedRangeFilterParams

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
alexwizp added a commit to alexwizp/kibana that referenced this pull request Feb 21, 2020
alexwizp added a commit that referenced this pull request Feb 21, 2020
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.

7 participants