-
Notifications
You must be signed in to change notification settings - Fork 918
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
[REMOVE] Remove from scripts the deprecated methods of JodaCompatibleZonedDateTime #1600
Comments
@kavilla fyi |
Hello @reta , Thanks for opening. I have made it a bug. Is there a documented list of |
Hello @kavilla ,
Absolutely, first of all, there are deprecation warnings in logs:
Interestingly, there is nothing in the Elasticsearch documentation about that, just the pull request [1]. [1] elastic/elasticsearch#33486 |
Sample data and functional tests were utilizing deprecated methods for painless scripts. However these deprecated methods were removed in: opensearch-project/OpenSearch#3346 This is to ensure sample data and ftr tests work but end users saved objects might contain painless scripts that we might not be able to address. So we should research if this it is possible to help mitigate this. Related issue: opensearch-project#1600 Signed-off-by: Kawika Avilla <[email protected]>
Yeah, unfortunately for end users that purely use OpenSearch Dashboards to build these scripts wouldn't be able to see these messages unless they look at their logs as you stated which might not be likely. And do we know if these warning messages are enabled by default in a release (production) environment? And if it has gotten removed then when 3.0 comes then might wonder why their painless scripts no longer work. I think we we can flag the original PR with "needs-documentation" it will create an issue in the documentation website repo to add these details. I think we need painless scripts logs in general and we can include the cc: @ahopp, @saratvemulapalli |
* [Build][Tests] handle painless scripts update Sample data and functional tests were utilizing deprecated methods for painless scripts. However these deprecated methods were removed in: opensearch-project/OpenSearch#3346 This is to ensure sample data and ftr tests work but end users saved objects might contain painless scripts that we might not be able to address. So we should research if this it is possible to help mitigate this. Related issue: #1600 Signed-off-by: Kawika Avilla <[email protected]>
With #1607, I have updated the stuff we utilized for sample data and tests so I have removed the bug label and re-added the enhancement to ensure end-users don't get left with just an error message. Right now, we don't have a lot of control of the actual values within scripted fields and I wouldn't recommend changing this value. However, based on the above mention PR'd this is an example of the kind of impact end-users will have to do if they utilized scripted fields (which is a huge feature in the application) and they are using deprecated methods that were removed. Since this is a breaking change on the OpenSearch side, and the deprecation message has been obfuscated by OpenSearch Dashboards not outputting it to the screen. Users would have had to check their logs to see they should have been using a different method, which isn't likely if everything is working properly. I would prefer we give in application notification about the removal of deprecated methods in Painless Scripts and provide a link to some view that's like |
* [Build][Tests] handle painless scripts update Sample data and functional tests were utilizing deprecated methods for painless scripts. However these deprecated methods were removed in: opensearch-project/OpenSearch#3346 This is to ensure sample data and ftr tests work but end users saved objects might contain painless scripts that we might not be able to address. So we should research if this it is possible to help mitigate this. Related issue: opensearch-project#1600 Signed-off-by: Kawika Avilla <[email protected]>
* [Build][Tests] handle painless scripts update Sample data and functional tests were utilizing deprecated methods for painless scripts. However these deprecated methods were removed in: opensearch-project/OpenSearch#3346 This is to ensure sample data and ftr tests work but end users saved objects might contain painless scripts that we might not be able to address. So we should research if this it is possible to help mitigate this. Related issue: opensearch-project#1600 Signed-off-by: Kawika Avilla <[email protected]>
* [Build][Tests] handle painless scripts update Sample data and functional tests were utilizing deprecated methods for painless scripts. However these deprecated methods were removed in: opensearch-project/OpenSearch#3346 This is to ensure sample data and ftr tests work but end users saved objects might contain painless scripts that we might not be able to address. So we should research if this it is possible to help mitigate this. Related issue: opensearch-project#1600 Signed-off-by: Kawika Avilla <[email protected]>
Is your feature request related to a problem? Please describe.
There are number of deprecated methods in
JodaCompatibleZonedDateTime
which are still available in scripts. Those should be removed since in some cases they pose significant performance overhead (due to deprecation warnings).Describe the solution you'd like
Remove from scripts the deprecated methods from JodaCompatibleZonedDateTime.
Describe alternatives you've considered
Leave the methods there.
Additional context
See please opensearch-project/OpenSearch#3156 and opensearch-project/OpenSearch#3345
The text was updated successfully, but these errors were encountered: