You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to show the Wazuh's version in the Help menu instead of the version of OpenSearch Dashboards.
Help menu in OpenSearch Dashboards:
Help menu in Wazuh Dashboard:
The number shown there is the value of the variable opensearchDashboardsVersion, which is equal to version in the package.json file. This won't be a major problem unless it must match the version of the indexer nodes. At least the minor version must match, for example, 2.4.0 in dashboards and 2.4.1 in indexer works, so we cannot simply change this value in the package.json. We'll need to add a new field to this field, for example wazuhVersion, in which we can set the Wazuh version this platform is built for, and read this value in the React component instead of the original opensearchDashboardsVersion variable.
All the related tests must be updated too, and probably we'll need to create new code to read this new value from the package.json and transport it to the required component.
After that, we can define and dynamically generate our documentation links using this value, and use them in the Help menu.
The documentation links are centralized in DocLinksService:
I found a bug during production that prevents the app from working.
The Wazuh version defined in the package.json file isn't read as the package.json is a different, minimal, version generated during the building process.
Description
We would like to show the Wazuh's version in the Help menu instead of the version of OpenSearch Dashboards.
Help menu in OpenSearch Dashboards:
Help menu in Wazuh Dashboard:
The number shown there is the value of the variable
opensearchDashboardsVersion
, which is equal toversion
in thepackage.json
file. This won't be a major problem unless it must match the version of the indexer nodes. At least the minor version must match, for example, 2.4.0 in dashboards and 2.4.1 in indexer works, so we cannot simply change this value in thepackage.json
. We'll need to add a new field to this field, for examplewazuhVersion
, in which we can set the Wazuh version this platform is built for, and read this value in the React component instead of the originalopensearchDashboardsVersion
variable.All the related tests must be updated too, and probably we'll need to create new code to read this new value from the
package.json
and transport it to the required component.After that, we can define and dynamically generate our documentation links using this value, and use them in the Help menu.
The documentation links are centralized in DocLinksService:
wazuh-dashboard/src/core/public/doc_links/doc_links_service.ts
Lines 39 to 77 in e5c52ac
The text was updated successfully, but these errors were encountered: