Removing as many modifications to the rendered DOM as possible #3278
Labels
component/discover
Issue related to the Wazuh discover component used to present events within our application.
pending-PO
Taks pending for PO validation and priorization
type/enhancement
Enhancement issue
The issue
In several parts of the code, most notably in the sections regarding the Discovery Legacy tables, the application executes as follows:
This causes the code to be slower and less efficient, as well as harder to maintain.
The proposed solution
It would be a good idea to move the functionality of these functions into encapsulated function calls that are executed at render time for the table, having these functions in a library outside of the discover plugin in order to make possible upgrades to the plugin as simple as possible.
Some files that are affected
enhanceDiscoverEventsCell
inpublic/components/common/modules/events-enhance-discover-fields.ts
andenhanceDiscoverTableAddObservers
inpublic/components/common/modules/events.tsx
affect the rows rendered in the filepublic/kibana-integrations/discover/application/components/table/table_row.tsx
The text was updated successfully, but these errors were encountered: