[8.16] [SecuritySolution] Fix Pagination should reset when a new filter is applied to the entity table (#198129) (#198322)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[SecuritySolution] Fix Pagination should reset when a new filter is
applied to the entity table
(#198129)](https://github.com/elastic/kibana/pull/198129)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Pablo
Machado","email":"pablo.nevesmachado@elastic.co"},"sourceCommit":{"committedDate":"2024-10-30T12:28:10Z","message":"[SecuritySolution]
Fix Pagination should reset when a new filter is applied to the entity
table (#198129)\n\n## Summary\r\n\r\nFix \"Pagination should reset when
a new filter is applied to the entity\r\ntable\"\r\n* Extra changes: I
demoted some error logs to warning as part
of\r\n16357db1-5e77-4c7f-ae94-9371d71c4970\r\n\r\n\r\n###
How to test it?\r\n* Start kibana with data\r\n* Navigate to the
security solution / entity analytics dashboard\r\n* Start the entity
store\r\n* Navigate between pages and change the filter, sorting, and
query.","sha":"40edfe1496348997d4f4a48654882fd0dc1d1a85","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:
SecuritySolution","Theme: entity_analytics","Feature:Entity
Analytics","Team:Entity
Analytics","v8.16.0","backport:version","v8.17.0"],"number":198129,"url":"https://github.com/elastic/kibana/pull/198129","mergeCommit":{"message":"[SecuritySolution]
Fix Pagination should reset when a new filter is applied to the entity
table (#198129)\n\n## Summary\r\n\r\nFix \"Pagination should reset when
a new filter is applied to the entity\r\ntable\"\r\n* Extra changes: I
demoted some error logs to warning as part
of\r\n16357db1-5e77-4c7f-ae94-9371d71c4970\r\n\r\n\r\n###
How to test it?\r\n* Start kibana with data\r\n* Navigate to the
security solution / entity analytics dashboard\r\n* Start the entity
store\r\n* Navigate between pages and change the filter, sorting, and
query.","sha":"40edfe1496348997d4f4a48654882fd0dc1d1a85"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198129","number":198129,"mergeCommit":{"message":"[SecuritySolution]
Fix Pagination should reset when a new filter is applied to the entity
table (#198129)\n\n## Summary\r\n\r\nFix \"Pagination should reset when
a new filter is applied to the entity\r\ntable\"\r\n* Extra changes: I
demoted some error logs to warning as part
of\r\n16357db1-5e77-4c7f-ae94-9371d71c4970\r\n\r\n\r\n###
How to test it?\r\n* Start kibana with data\r\n* Navigate to the
security solution / entity analytics dashboard\r\n* Start the entity
store\r\n* Navigate between pages and change the filter, sorting, and
query.","sha":"40edfe1496348997d4f4a48654882fd0dc1d1a85"}},{"branch":"8.16","label":"v8.16.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/198315","number":198315,"state":"OPEN"}]}]
BACKPORT-->
This commit is contained in:
Pablo Machado 2024-10-30 15:20:34 +01:00 committed by GitHub
parent c25cf40698
commit 256c93bff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 15 deletions

View file

@ -106,9 +106,7 @@ export class EntityClient {
});
if (!definition) {
const message = `Unable to find entity definition with [${id}]`;
this.options.logger.error(message);
throw new EntityDefinitionNotFound(message);
throw new EntityDefinitionNotFound(`Unable to find entity definition with [${id}]`);
}
await uninstallEntityDefinition({