opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.68k stars 884 forks source link

[BUG] [MDS] data source version with pre-release is not compatible for all plugins #8567

Open Hailong-am opened 2 weeks ago

Hailong-am commented 2 weeks ago

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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):

Additional context

Add any other context about the problem here.

zhyuanqi commented 4 days ago

@zhongnansu Wonder if this is an expected behavior?

zhongnansu commented 3 days ago

@zhongnansu Wonder if this is an expected behavior?

@ZilongX Zilong might have better answer fort this.