-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Maps] implemention of usng support fixing #76144 #107835
[Maps] implemention of usng support fixing #76144 #107835
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? |
@nickpeihl @nreese didn't add the "review" label to the pr before it was created and am unsure how to add it now. |
Pinging @elastic/kibana-gis (Team:Geo) |
Hi @mkellogg91. Thanks for the PR. We'll handle the labels. @elasticmachine test this please |
@nickpeihl anything further required from me, or just waiting on approval? |
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 @mkellogg91.
In addition to my inline comments, there are some linting and typing issues that need to be resolved for our tests to pass.
- Lint errors. Probably many of these can be fixed automatically by running
node scripts/eslint "x-pack/**/set_view_control.tsx" --fix
. - Type checks need to be resolved. You can also run type checking locally by running
node scripts/type_check.js --project="x-pack/plugins/maps/tsconfig.json"
- We need to pull
master
into your branch.
> git pull upstream master
> git push
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
💚 CLA has been signed |
Hi @mkellogg91. Can you please sign the Contributor Agreement linked above? We can not merge this PR without it. Thanks. |
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.
this is great.
@mkellogg91 if you sign the CLA, Kibana's CI will run the test suite.
I also put some initial version labels on this, a requirement for CI to be green.
Just a few nits from my end. See comments
Also, just so i understand, but should changing the UTM-zone, also not shift the location of the center?
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
Signed. Was out for a week, but have returned now and will work on getting all the requested changes above completed |
@nickpeihl I've submitted changes according to your requests. Take a look and let me know what you think |
this was a good catch. It wasn't working properly before. you should find that it works now |
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 fixes @mkellogg91. I added some suggestions I think we can use to avoid using the any
type. But please verify that my suggestions are accurate.
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
...ugins/maps/public/connected_components/toolbar_overlay/set_view_control/set_view_control.tsx
Outdated
Show resolved
Hide resolved
Hi @mkellogg91. This is looking good.
Once we address those two items, I think we can merge. |
@nickpeihl I do not see this option in the pull request...is it possible I don't have permission to do this? |
Weird. On PRs I create there is an option on the right sidebar that looks like this. If it's there, please make sure the box is checked. If it isn't there for you, I wonder if you have a permissions issue with the branch in the spetriclabs fork? |
|
Hmm, in that case, you will need to keep the PR branch in sync with master since we can't do that. If you have elastic/kibana as the > git pull upstream master
> git push So please address this suggestion and pull the changes from the master branch. Then I'll trigger the CI to run and hopefully we can merge. |
Will do..I'll work on addressing that suggestion. |
…fix-76144-add-usng-support
@nickpeihl just pushed changes for unused code paths and pulled in upstream changes from master |
Jenkins, test this |
@mkellogg91 looks like we're seeing some lint errors. Can you run |
…fix-76144-add-usng-support
Fixed linting issues and pulled upstream master, then pushed changes again to feature branch. |
jenkins, test this |
after this PR makes it in I'm going to put "Official ElasticSearch and Kibana Git Contributer" on my linkedin and be showered with cash |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
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.
) * implemention of usng support fixing elastic#76144 * linting fixes * lint fixes * pr code edits * fixed utm zone and added error proofing * removing any data types and replacing with explicit ones * avoiding render of unused components * fixing linting issues Co-authored-by: Michael Ihde <mihde@spectric.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* implemention of usng support fixing #76144 * linting fixes * lint fixes * pr code edits * fixed utm zone and added error proofing * removing any data types and replacing with explicit ones * avoiding render of unused components * fixing linting issues Co-authored-by: Michael Ihde <mihde@spectric.com> Co-authored-by: Michael Kellogg <mkellogg91@gmail.com> Co-authored-by: Michael Ihde <mihde@spectric.com>
Summary
Adds usng.js library for Lat Lon, UTM, and MGRS conversion instead of using MGRS and UTM libraries. Fix and images of UI shown in #76144.
Release note
Adds support for UTM and MGRS coordinates in Maps "Go To" button.
Checklist
Delete any items that are not applicable to this PR.
For maintainers