-
Notifications
You must be signed in to change notification settings - Fork 912
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
[Build][Tests] handle painless scripts update #1607
[Build][Tests] handle painless scripts update #1607
Conversation
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 <kavilla414@gmail.com>
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
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.
LGTM!
How did you find these instances of the deprecated methods? Was there a particular error? Did you have to search across the code base for each one?
Thanks @kavilla ! |
Pretty much. But for the sample data, pretty straight forward. Just checked the index patterns for the scripted fields. Now I wonder how can we best deliver this information to 3.0 users when they upgrade. |
Release Notes with noting the breaking 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.
LGTM
what errors would we see? for example, during oncall, how can we know it is related to getMillis() issue?
Right now it comes back as a general But given that is just sample data and anyone can create their scripted fields to be used by visualizations it might not be complete transparent for us in 3.0 right away. It might require telling end users to check their index patterns and verifying their scripts are up to date. |
True that will be great on the OpenSearch side but for OpenSearch Dashboards it wouldn't be breaking change from us but it would appear that it's something breaking on our side. Plus we can probably do something in application to warn people ahead of time. Will tag UI/UX with to see if they have an opinions. |
A migration guide would be super useful - given that the scripts here were likely more basic than what many other folks have, we'd probably want to identify a more complex/realistic painless script to use as the example. If we had a migration guide on the docs site, it would also be easy to link to from some sort of helpful UI error message. |
* [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 <kavilla414@gmail.com>
* [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 <kavilla414@gmail.com>
* [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 <kavilla414@gmail.com>
Description
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.
Signed-off-by: Kawika Avilla kavilla414@gmail.com
Issues Related
#1600
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr