wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Custom branding: add support to update multiple settings at a time

Open Desvelao opened this issue 2 years ago • 3 comments

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

Desvelao avatar Sep 07 '22 08:09 Desvelao

  • Refactored the frontend and backend to support the update and reading of multiple settings in the same request.

Desvelao avatar Sep 07 '22 08:09 Desvelao

  • Fixed a minor problem with the type of parameters received in the backend.

Desvelao avatar Sep 08 '22 15:09 Desvelao

Changes

  • Add tests for:
    • /utils/* API endpoints

Redone some tests that required the plugin platform was up manually.

Desvelao avatar Sep 21 '22 09:09 Desvelao