-
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
Kibana needs to display actionable warning with details #116709
Comments
@elastic/kibana-app-services |
Duplicate of #111654 resolution details are here #111654 (comment) |
Those warnings are coming from Elasticsearch, so not sure anything can/should be done from Kibana. There is some documentation on the method here https://www.elastic.co/guide/en/elasticsearch/painless/7.16/painless-api-reference-shared-org-elasticsearch-script.html. |
I think there are a couple of small things we can do in Kibana to improve search service warnings in general and make them easier to debug:
|
This was fixed for fresh installs of sample data in 7.15 and after via #108825. But the problem is that for users who installed the sample data prior to 7.15, their data still depends upon a deprecation ES feature. @lukasolson I think what we need is a saved object migration, so if a user has sample data installed it gets migrated from the deprecated feature to the supported feature. |
@bhavyarm Could you please reproduce this in 7.16 and let me know if you see this same 299 joda deprecation message appear in the deprecation logs, which you can access from Upgrade Assistant? |
@cjcenizal yes I did reproduce it in 7.16.0 BC2 and this is what I see in upgrade assistant - |
Thanks @bhavyarm! The screenshot you showed is for deprecation issues, which is different from deprecation logs. On the Upgrade Assistant home page, there is a section for deprecation logging. You might need to enable it, and then revisit the troublesome dashboard to trigger the errors again. At that point, if you go back to Upgrade Assistant and review the deprecation logs in the Logs UI, I'm hoping you'll see logs that contain the same error you saw in Dashboard. |
We are removing the warning in #117252. We will circle back to figure out more helpful ways to inform the user about deprecations. |
Closing as the warning is no longer displayed. |
Kibana version: 7.16.0/7.15.x
Elasticsearch version: 7.16.0/7.15.x
Server OS version: darwin_x86_64
Browser version: chrome latest
Browser OS version: OS X
Original install method (e.g. download page, yum, from source, etc.): from staging
Describe the bug: If you upgrade with flights sample data from 6.8 - to 7.15.x/7.16 - Kibana displays the following message on sample flight data dashboard and discover. But there are no details about where and how to fix this.
"
Warning: 299 Elasticsearch-7.16.0-51c82bcb077f146021909e0978694b6b9b205f36 "Use of the joda time method [getHourOfDay()] is deprecated. Use [getHour()] instead."
"
This is coming from the scripted field "hour_of_day" on flights data which is defined as
We should display the details about this to the user - so user can change it. If not - suppress the warning so its not confusing.
The text was updated successfully, but these errors were encountered: