-
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
[ML] add geo point combined field to CSV import #77117
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
Pinging @elastic/ml-ui (:ml) |
@elasticmachine merge upstream |
I've tested this and it works well. |
I tried giving this a test, but am seeing the following console errors when moving to the Import page. Are changes needed to this PR following the edits made in #77035? Update: Sorry for the noise. My ES build was out of date and did not include the change for the "properties" layer in find_file_structure mappings. |
@elasticmachine merge upstream |
Users appreciate a consistent UI from release to release making it best to provide a stable UI that can grow with future needs. If there are known additional combined field templates that would later cause "geo point fields" to change to "combined fields", then that required UI churn can confusion users. Is there another known use case for combined fields? Should this PR just add a second template to flesh out the concept?
This has been addressed and there is now a delete button for each combined field that will remove the combined field from the mappings and pipeline
+1 on moving to the simple tab. I think the feature will be more visible to novice users from the simple tab. I think the feature is hidden on the advance tab since the main focus is on manually editing JSON configurations. I will defer to @@elastic/ml-ui for a final say. Please let me know where it should be placed.
This has been addressed and now name collision checking will look for collisions with other combined fields and any key in mappings.properties. |
This error is occurring for files that do not provide Is the bug that column_names is not provided or is the bug that |
Yes, |
This has been resolved. |
...ins/ml/public/application/datavisualizer/file_based/components/combined_fields/geo_point.tsx
Outdated
Show resolved
Hide resolved
...gins/ml/public/application/datavisualizer/file_based/components/import_settings/advanced.tsx
Show resolved
Hide resolved
I'm able to get this feature into a confused state by adding a custom named combined field and then pressing reset after an import.
|
Thanks for pointing out. I have updated the logic in |
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 a nice feature.
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.
Tested latest edits and LGTM.
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
History
To update your PR or re-run it, just comment with: |
* [ML] add geo point combined field to CSV import * remove some geo_point specific logic * Account for properties layer in find_file_structure mappings * improve checking of name collision to include combined fields and mappings * add delete button * fix function name * fill in unknowns with defined types * tslint changes * get tslint passing * show readonly combined fields in simple tab * handle column_names being undefined * add unit tests for modifying mappings and pipeline * review feedback * do not change combinedFields on reset Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
7.x/7.10 #77921 |
* [ML] add geo point combined field to CSV import * remove some geo_point specific logic * Account for properties layer in find_file_structure mappings * improve checking of name collision to include combined fields and mappings * add delete button * fix function name * fill in unknowns with defined types * tslint changes * get tslint passing * show readonly combined fields in simple tab * handle column_names being undefined * add unit tests for modifying mappings and pipeline * review feedback * do not change combinedFields on reset Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@nreese @peteharverson @jgowdyelastic Was there ever any consideration to placing the UI for adding a combined field in the Advanced tab to be aligned with the "Mappings" section? I relate new fields to mappings. Not sure if that's normal/expected. |
In the geo point form, the dropdown lists of longitude and latitude are returning long fields only. I have longitude and latitude fields of type double but they are not appearing in the dropdown lists. |
Would you mind moving this conversation to discuss? When you open a topic, please include a sample csv that is not displaying the lat/lon fields. Thanks. |
Fixes #76996
This PR updates CSV upload to make it possible to combine two columns into geo_point field.
ImportView
is first rendered, a geo_point combined field will be added if there are latitude and longitude columns. This means that users will get geo_point field with no additional configuration.Add combined field
to configure a new combined field. In this initial PR, the only option is to add a geo point field but this can be expanded in the future to include other templates.Whether auto-generated or manually added by users, geo point combined field does the following
geo_point
set
processor to the ingest pipeline that creates the geo_point field by combining the latitude and longitude fields.