OpenSearch-Dashboards
OpenSearch-Dashboards copied to clipboard
[BUG] [MDS] data source version with pre-release is not compatible for all plugins
Describe the bug
When i add data source with version 3.0.0-snapshot, this data source will not available in data source selector as it does not satisfies the semver version check.
semver.satisfies('3.0.0-snapshot','>1.0.0');
# this will return false
https://github.com/opensearch-project/OpenSearch-Dashboards/blob/464ef56fcbee125ba0d9224b6234148035900dd9/src/plugins/index_pattern_management/public/components/create_index_pattern_wizard/components/step_data_source/components/header/header.tsx#L84-L92
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
*Expected behavior
3.0.0-snapshot should be treated as version 3.0.0
OpenSearch Version Please list the version of OpenSearch being used.
Dashboards Version Please list the version of OpenSearch Dashboards being used.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
- OS: [e.g. iOS]
- Browser and version [e.g. 22]
Additional context
Add any other context about the problem here.
@zhongnansu Wonder if this is an expected behavior?
@zhongnansu Wonder if this is an expected behavior?
@ZilongX Zilong might have better answer fort this.