OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

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

Open Hailong-am opened this issue 1 year ago • 2 comments

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):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

Hailong-am avatar Oct 12 '24 02:10 Hailong-am

@zhongnansu Wonder if this is an expected behavior?

zhyuanqi avatar Oct 22 '24 00:10 zhyuanqi

@zhongnansu Wonder if this is an expected behavior?

@ZilongX Zilong might have better answer fort this.

zhongnansu avatar Oct 22 '24 19:10 zhongnansu