[Security Solution] Add an ESLint rule to prohibit direct API client usage #143923
Labels
Feature:Rule Management
Security Solution Detection Rule Management area
Team:Detection Rule Management
Security Detection Rule Management Team
Team:Detections and Resp
Security Detection Response Team
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
technical debt
Improvement of the software architecture and operational architecture
Related to: #136962
Summary
After migrating all API calls in the Rules Area to react-query, we need to ensure that all data queries or server state mutations happen through hooks defined in the
detection_engine/rule_management/api/hooks
folder exclusively. That is needed to ensure data cached on the front end side gets properly invalidated after mutations.detection_engine/rule_management/api/api.ts
to their own areasdetection_engine/rule_management/api/api.ts
only from hooks defined indetection_engine/rule_management/api/hooks
.The text was updated successfully, but these errors were encountered: