Skip to content

Commit

Permalink
Fixed tooltip in security (#5631)
Browse files Browse the repository at this point in the history
* Update imposter

* Fix toltip in security

* Remove requests when closing flyouts without changes

* Update changelog

* Update create-policy.tsx

* Fix possible undefinded
  • Loading branch information
yenienserrano authored Aug 2, 2023
1 parent 50ca309 commit c79d008
Show file tree
Hide file tree
Showing 33 changed files with 918 additions and 95 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed problem with new or missing columns in agent table. [#5591](https://github.com/wazuh/wazuh-kibana-app/pull/5591)
- Fixed the color of the agent name in the groups section in dark mode. [#5676](https://github.com/wazuh/wazuh-kibana-app/pull/5676)
- Fixed the propagation event so that the flyout data, in the decoders, does not change when the button is pressed. [#5597](https://github.com/wazuh/wazuh-kibana-app/pull/5597)
- Fixed the tooltips of the tables in the security section, and unnecessary requests are removed. [#5631](https://github.com/wazuh/wazuh-kibana-app/pull/5631)

## Wazuh v4.6.0 - OpenSearch Dashboards 2.6.0 - Revision 01

Expand Down
6 changes: 5 additions & 1 deletion docker/imposter/initial_data.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"attempt": 0,
"callRestart": false
"callRestart": false,
"deleteUser": false,
"deleteRole": false,
"deletePolicies": false,
"deleteRolesMapping": false
}
28 changes: 28 additions & 0 deletions docker/imposter/security/policies/delete-policies.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var id = context.request.queryParams.policy_ids;
var storeWazuh = stores.open('storeWazuh');

storeWazuh.save('deletePolicies', true);

var data = {
data: {
affected_items: [
{
id: id,
name: 'TestWazuhPolicy',
policy: {
actions: ['security:delete'],
resources: ['user:id:*'],
effect: 'deny',
},
roles: [],
},
],
total_affected_items: 1,
total_failed_items: 0,
failed_items: [],
},
message: 'All specified policies were deleted',
error: 0,
};

respond().withStatusCode(200).withData(JSON.stringify(data));
Loading

0 comments on commit c79d008

Please sign in to comment.