-
Notifications
You must be signed in to change notification settings - Fork 186
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
Replace the tables on the Security section with TableWzAPI component #5467
Comments
Since the 4.8.0 branch is not available, I started working from the 4.7.0 branch. Then I realized that in that branch there are no changes to the new search bar applied in 4.6.0. For this reason, I am going to start from the 4.6.0 branch. |
According to the documentation:
|
After doing an analysis, I think it is better to see the possibility of incorporating the "q" parameter to the GET endpoints of the security section, instead of adapting the search bar for the "search" parameter, because it would be inconsistent for the user and would add unnecessary code to the component. |
Description
We are working to implement a new search bar, and redoing some sections that have a search bar and table to use the reusable
TableWzAPI
component. See #4312.It would be interesting to unify the tables in the
Security
section to use the new search bar. Currently, these sections retrieve the first 500 results (this is a bug) and use aEuiInMemoryTable
component with the provided search bar. The problem is that these tables are using data from 2 different endpoints, and this reduces the possibility of using theTableWzAPI
component. Moreover, some searches could not be possible due to how the data is saved in the data endpoint.For example, the section
Security/Users
, displays data about the Wazuh API users (username, allow run as and roles). The data is coming from:GET /security/users
GET /security/roles
and combined to generate the table.
In the case, we want to implement the new search bar, the suggestions for the Roles will display number IDs instead of the names.
The same situation happens in the rest of the Security sections.
The text was updated successfully, but these errors were encountered: