wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Custom branding: add support to update multiple settings at a time
Description
Currently, the endpoint to update the plugin's settings only supports updating a setting at a time.
This means that if multiple settings are modified from the UI at the same time, the app will make a request for each of them to the NodeJS backend. This situation can be improved by redesigning the endpoint to allow the modification of every allowed setting in a single request.
Goal
- Extend the
/utils/configuration
endpoint to allow updating multiple settings at the same time.
Depends on #4443.
Tasks
- [x] Refactor the frontend and backend to send/manage/support multiple setting configurations in the same request.
- [ ] Tests
- Refactored the frontend and backend to support the update and reading of multiple settings in the same request.
- Fixed a minor problem with the type of parameters received in the backend.
Changes
- Add tests for:
-
/utils/*
API endpoints
-
Redone some tests that required the plugin platform was up manually.