Skip to content

Commit

Permalink
Self-code review 1/10
Browse files Browse the repository at this point in the history
  • Loading branch information
machadoum committed Nov 26, 2024
1 parent 1845efb commit 6d6ce5a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ paths:
x-codegen-enabled: true
operationId: ListEntityEngines
summary: List the Entity Engines

responses:
'200':
description: Successful response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,17 +265,6 @@ export class EntityStoreDataClient {
}
}

// [x] TS types and openAPI
// [x] check if this change should be part of another API
// [x] fix UI types
// [x] refactor UI
// TODO test for error state
// TODO API tests
// TODO Unit tests?
// TODO create openAPI doc and defines returned types interface EntityState {}
// TODO does calling `GET kbn:/api/entity_store/engines/user` on a clean cluster kill Kibana?
// TODO investigate why we list engines for user without saved object privileges (see message from Mark)

public async init(
entityType: EntityType,
{ indexPattern = '', filter = '', fieldHistoryLength = 10 }: InitEntityEngineRequestBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const listEntityEnginesRoute = (

try {
const secSol = await context.securitySolution;
// should includeStatus be snake case?
const body = await secSol.getEntityStoreDataClient().list();

return response.ok({ body });
Expand Down

0 comments on commit 6d6ce5a

Please sign in to comment.