-
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
Feed the suggestion field for the new search bar #5370
Comments
ResearchI was following the approach to generate a pre-digested file to feed the new search bar component. This is done through a script that can be used to save the results to a file that could be used by the new search bar component. Script: generate-api-q-fields-endpoints.js.zip
Combining the generation of data with the new search bar, we could get the field suggestions display all the supported fields of The current plugins get data from the API specification and save it to |
I moved this issue to on hold state, because the solution is a POC based in a workaround. |
Hi Team, any updates on this? |
Hi @ArielIvanOjeda , this issue is on hold because the workaround to get the available fields in each API endpoint doesn't match in some use cases. For example, some current use cases of search bars should suggest more fields that got through the workaround. After seeing this problem, I moved the issue to hold. So for now, they will have to be maintained manually. Maybe we should extend the analysis for each use case, and evaluate the results. I am not sure why are you asking for this issue, @ArielIvanOjeda, but if your question is related to some missing field suggestions, the implementation of the new search bar added some fields that are not included in the previous search bar. The new search bar uses the fields available in the |
Description
The new search bar component uses the
q
query parameter. This displays suggestions for the available fields that in the current WzSearchBar component, they are defined and maintained statically.We would want to reduce the manual maintenance of this.
We could use the Wazuh API specification to get this data. The fields that are supported by
q
are not included in the API specification. In a meeting with the framework team, I asked about them, and they told me to use the example response because the field name follows a defined schema, and they are similar to the obtained response.Some approaches to get and digest the data to feed the new search bar component are:
The text was updated successfully, but these errors were encountered: