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

Shown Wazuh API version is wrong or empty after upgrade #7203

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
719963c
fix(get-updates): improve error handling by renaming variable for cla…
guidomodarelli Dec 16, 2024
85ef086
fix(plugin-services): update WazuhCheckUpdatesServices type to includ…
guidomodarelli Dec 16, 2024
0a3faff
fix(get-updates): use IAPIHost type for host management to enhance ty…
guidomodarelli Dec 16, 2024
e41576a
fix(get-updates): add logger for improved debugging of API status err…
guidomodarelli Dec 16, 2024
33befd2
fix(get-updates): refactor update retrieval to include version handli…
guidomodarelli Dec 16, 2024
0c018ba
Merge branch '4.10.0' into bug/440-shown-wazuh-api-version-is-wrong-o…
asteriscos Dec 17, 2024
b9740f1
fix(get-updates): update test cases to handle version formatting and …
guidomodarelli Dec 17, 2024
c00c7fb
fix(get-updates): enhance tests by mocking last_available_patch for c…
guidomodarelli Dec 17, 2024
0b42585
fix(get-updates): reorganize imports in test file for better readabil…
guidomodarelli Dec 17, 2024
aa4c03f
fix(get-updates): refactor test setup to improve mocking of saved obj…
guidomodarelli Dec 17, 2024
de85db7
fix(get-updates): standardize api_id and version formatting in tests …
guidomodarelli Dec 17, 2024
66ff7a1
fix(get-updates): improve error handling and add tests for undefined …
guidomodarelli Dec 17, 2024
1654ad9
fix(get-updates): enhance error response handling and add test for du…
guidomodarelli Dec 17, 2024
2e226f8
fix(get-updates): remove unnecessary mock data from tests for clearer…
guidomodarelli Dec 17, 2024
de89706
fix(get-updates): add test for handling API errors on secondary reque…
guidomodarelli Dec 17, 2024
d830303
fix(get-updates): add test for retrieving updates when initial API ve…
guidomodarelli Dec 17, 2024
baaa0e5
fix(get-updates): refactor test cases to use 'it' for better consiste…
guidomodarelli Dec 17, 2024
6b30220
fix(get-updates): simplify test descriptions to improve readability i…
guidomodarelli Dec 17, 2024
568e801
fix(get-updates): enhance test descriptions for clarity in update ava…
guidomodarelli Dec 17, 2024
2019bce
fix(changelog): update entries for issue #7177 and add fix for incorr…
guidomodarelli Dec 17, 2024
3252cf3
fix(changelog): correct rendering entry for vulnerability reference a…
guidomodarelli Dec 17, 2024
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed filter by value in document details in safari [#7151](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7151)
- Fixed error message to prevent pass no strings to the wazuh logger [#7167](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7167)
- Fixed the rendering of the `data.vunerability.reference` in the table and flyout [#7177](https://github.com/wazuh/wazuh-dashboard-plugins/pull/7177)
- Fixed incorrect or empty Wazuh API version displayed after upgrade [#440](https://github.com/wazuh/wazuh-dashboard/issues/440)

### Removed

Expand Down
3 changes: 2 additions & 1 deletion plugins/wazuh-check-updates/server/plugin-services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
CoreStart,
ISavedObjectsRepository,
Logger,
} from 'opensearch-dashboards/server';
import { createGetterSetter } from '../../../src/plugins/opensearch_dashboards_utils/common';
import { WazuhCorePluginStart } from '../../wazuh-core/server';
Expand All @@ -11,4 +12,4 @@ export const [getCore, setCore] = createGetterSetter<CoreStart>('Core');
export const [getWazuhCore, setWazuhCore] =
createGetterSetter<WazuhCorePluginStart>('WazuhCore');
export const [getWazuhCheckUpdatesServices, setWazuhCheckUpdatesServices] =
createGetterSetter<any>('WazuhCheckUpdatesServices');
createGetterSetter<{ logger: Logger }>('WazuhCheckUpdatesServices');
Loading
Loading