-
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
Convert map client routing files to TS #76387
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? |
retest |
Pinging @elastic/kibana-gis (Team:Geo) |
x-pack/plugins/maps/public/connected_components/map_container/map_container.tsx
Outdated
Show resolved
Hide resolved
I have fixed the type check errors and eslint errors shown by the Jenkins. |
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.
Thank you for submitting this PR. It great to see these files converted to TS.
x-pack/plugins/maps/public/routing/bootstrap/get_initial_query.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/bootstrap/get_initial_refresh_config.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/bootstrap/get_initial_time_filters.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/load_map_and_render.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
8680384
to
765f772
Compare
@nreese I have made the changes you suggested. Also fixed some merge conflicts. |
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.
Thanks for the clean-up. This is looking really great. Just some more suggestions to get read of any
and some other typings clean-up
x-pack/plugins/maps/public/routing/routes/maps_app/load_map_and_render.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/state_syncing/app_state_manager.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/state_syncing/app_state_manager.ts
Outdated
Show resolved
Hide resolved
@nreese Made the changes you suggested. |
retest |
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.
Thanks for all of the changes. Renaming savedQuery to savedQueryId in AppState really helps clarify things.
Mind syncing with master to fix merge conflicts?
git fetch upstream
git pull upstream master
git push origin {branch_name}
x-pack/plugins/maps/public/routing/routes/maps_app/load_map_and_render.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/state_syncing/app_state_manager.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/state_syncing/global_sync.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/list/maps_list_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/list/maps_list_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/list/maps_list_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/list/maps_list_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/list/maps_list_view.tsx
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
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.
Code owner change is TS export LGTM
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.
Thanks for all of the updates. Just a few more comments
x-pack/plugins/maps/public/routing/state_syncing/app_state_manager.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/bootstrap/get_initial_query.ts
Outdated
Show resolved
Hide resolved
@nreese Made the changes you suggested. |
retest |
@shamin Looks like CI is failing because some autogenerated API documentation needs to be updated. See below commands from https://github.com/elastic/kibana/pull/76387/checks?check_run_id=1086876819 to update the documentation and commit the changes. |
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 a few more details
x-pack/plugins/maps/public/routing/routes/maps_app/load_map_and_render.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/list/maps_list_view.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/routing/routes/maps_app/maps_app_view.tsx
Outdated
Show resolved
Hide resolved
@nreese Made the changes you suggested. Also updated the autogenerated docs. |
retest |
💚 Build SucceededBuild metricsasync chunks size
page load bundle size
History
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.
Thanks for contributing to Kibana. These are great changes that are really bringing the typings together.
LGTM
code review
* Converted maps_router and store operations files * Converted files in map routes to typescript * Removed an unwanted ts-expect-error * Fixed the lint errors from jenkins * Naming changes, type for mapStateJSON etc. * More type fixes in map routes * More type fixes in map routes * Added back some removed props * Added types to app state manager * Autogenerated api documentation * Type fixes Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
backport 7.x #76991 |
* Converted maps_router and store operations files * Converted files in map routes to typescript * Removed an unwanted ts-expect-error * Fixed the lint errors from jenkins * Naming changes, type for mapStateJSON etc. * More type fixes in map routes * More type fixes in map routes * Added back some removed props * Added types to app state manager * Autogenerated api documentation * Type fixes Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Shamin Meerankutty <8272719+shamin@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
any
. I can update those with some help from the team.Checklist
Delete any items that are not applicable to this PR.
For maintainers