Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wazuh dashboard broken troubleshooting url #4151

Merged
merged 3 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the Wazuh app project will be documented in this file.

## Wazuh v4.3.2 - OpenSearch Dashboards 1.2.0 - Revision 4301

### Fixed

- Fixed Wazuh Dashboard troubleshooting url [#4151](https://github.com/wazuh/wazuh-kibana-app/pull/4151)

## Wazuh v4.3.1 - OpenSearch Dashboards 1.2.0 - Revision 4302

### Added
Expand Down
2 changes: 1 addition & 1 deletion common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export const PLUGIN_PLATFORM_INSTALLATION_USER = 'wazuh-dashboard';
export const PLUGIN_PLATFORM_INSTALLATION_USER_GROUP = 'wazuh-dashboard';
export const PLUGIN_PLATFORM_WAZUH_DOCUMENTATION_URL_UPGRADE_PLATFORM = 'https://documentation.wazuh.com/current/upgrade-guide/';
export const PLUGIN_PLATFORM_WAZUH_DOCUMENTATION_URL_TROUBLESHOOTING = 'https://documentation.wazuh.com/current/user-manual/wazuh-dashboard/troubleshooting.html';
export const PLUGIN_PLATFORM_WAZUH_DOCUMENTATION_URL_APP_CONFIGURATION = 'https://documentation.wazuh.com/current/user-manual/wazuh-dashboard/reference/config-file.html';
export const PLUGIN_PLATFORM_WAZUH_DOCUMENTATION_URL_APP_CONFIGURATION = 'https://documentation.wazuh.com/current/user-manual/wazuh-dashboard/config-file.html';
export const PLUGIN_PLATFORM_URL_GUIDE = 'https://opensearch.org/docs/1.2/opensearch/index/';
export const PLUGIN_PLATFORM_URL_GUIDE_TITLE = 'OpenSearch guide';
export const PLUGIN_PLATFORM_REQUEST_HEADERS = {
Expand Down
2 changes: 1 addition & 1 deletion public/components/visualize/wz-visualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const WzVisualize = compose(
reloadToast = () => {
const toastLifeTimeMs = 300000;
const [mayor, minor] = appVersion.split('.');
const urlTroubleShootingDocs = `https://documentation.wazuh.com/${mayor}.${minor}/user-manual/elasticsearch/elastic-tuning/troubleshooting.html#index-pattern-was-refreshed-toast-keeps-popping-up`;
const urlTroubleShootingDocs = `https://documentation.wazuh.com/${mayor}.${minor}/user-manual/elasticsearch/troubleshooting.html#index-pattern-was-refreshed-toast-keeps-popping-up`;
getToasts().add({
color: 'success',
title: 'The index pattern was refreshed successfully.',
Expand Down
2 changes: 1 addition & 1 deletion public/utils/check-plugin-version.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const checkClientAppVersion = (appInfo: TAppInfo) => {
const troubleshootingUrl = `https://documentation.wazuh.com/${appInfo['app-version']
.split('.')
.slice(0, 2)
.join('.')}/user-manual/kibana-app/troubleshooting.html`;
.join('.')}/user-manual/wazuh-dashboard/troubleshooting.html`;

const message: ReactNode = (
<>
Expand Down