Skip to content
2 changes: 2 additions & 0 deletions changelogs/fragments/10818.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Update the version check logic ([#10818](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/10818))
6 changes: 3 additions & 3 deletions src/core/server/plugins/discovery/plugin_manifest_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ function isVersionCompatible(
return false;
}

return semver.eq(
coercedActualOpenSearchDashboardsVersion,
coercedExpectedOpenSearchDashboardsVersion
return (
coercedActualOpenSearchDashboardsVersion.major ===
coercedExpectedOpenSearchDashboardsVersion.major
);
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Plugins = {
'opensearch_dashboards.json': JSON.stringify({ version: '1' }),
}),
incompatible: () => ({
'opensearch_dashboards.json': JSON.stringify({ id: 'plugin', version: '1' }),
'opensearch_dashboards.json': JSON.stringify({ id: 'plugin', version: '2.0.0' }),
}),
missingManifest: () => ({}),
inaccessibleManifest: () => ({
Expand Down
Loading