kibana/test
Kibana Machine 6050429f09
[8.7] [Fleet] Bugfix: prevent status runtime query going over character limit (#150910) (#151138)
# Backport

This will backport the following commits from `main` to `8.7`:
- [[Fleet] Bugfix: prevent status runtime query going over character
limit (#150910)](https://github.com/elastic/kibana/pull/150910)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Mark
Hopkin","email":"mark.hopkin@elastic.co"},"sourceCommit":{"committedDate":"2023-02-14T14:05:34Z","message":"[Fleet]
Bugfix: prevent status runtime query going over character limit
(#150910)\n\n## Summary\r\n\r\nCloses #150577 \r\n\r\nif there are too
many agent policies in a system, we were creating too\r\nbig a runtime
query for elastic and the query would be rejected.\r\n\r\nThis PR adds a
limit, if the user has more than 750 agent policies then\r\nagents will
not be marked as inactive anymore. If the user reaches the\r\nlimit then
a warning badge is displayed (the text underlined has also\r\nbeen
added):\r\n\r\n<img width=\"968\" alt=\"Screenshot 2023-02-13 at 20 14
31\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/218565456-f5758e4b-74f6-4e7c-9b49-22f0fd6f9102.png\">\r\n\r\n\r\nIntegration
test
added.","sha":"687294d4d30e936aa95b4a4c566b29c4462ab362","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Fleet","v8.7.0","v8.8.0"],"number":150910,"url":"https://github.com/elastic/kibana/pull/150910","mergeCommit":{"message":"[Fleet]
Bugfix: prevent status runtime query going over character limit
(#150910)\n\n## Summary\r\n\r\nCloses #150577 \r\n\r\nif there are too
many agent policies in a system, we were creating too\r\nbig a runtime
query for elastic and the query would be rejected.\r\n\r\nThis PR adds a
limit, if the user has more than 750 agent policies then\r\nagents will
not be marked as inactive anymore. If the user reaches the\r\nlimit then
a warning badge is displayed (the text underlined has also\r\nbeen
added):\r\n\r\n<img width=\"968\" alt=\"Screenshot 2023-02-13 at 20 14
31\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/218565456-f5758e4b-74f6-4e7c-9b49-22f0fd6f9102.png\">\r\n\r\n\r\nIntegration
test
added.","sha":"687294d4d30e936aa95b4a4c566b29c4462ab362"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150910","number":150910,"mergeCommit":{"message":"[Fleet]
Bugfix: prevent status runtime query going over character limit
(#150910)\n\n## Summary\r\n\r\nCloses #150577 \r\n\r\nif there are too
many agent policies in a system, we were creating too\r\nbig a runtime
query for elastic and the query would be rejected.\r\n\r\nThis PR adds a
limit, if the user has more than 750 agent policies then\r\nagents will
not be marked as inactive anymore. If the user reaches the\r\nlimit then
a warning badge is displayed (the text underlined has also\r\nbeen
added):\r\n\r\n<img width=\"968\" alt=\"Screenshot 2023-02-13 at 20 14
31\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/218565456-f5758e4b-74f6-4e7c-9b49-22f0fd6f9102.png\">\r\n\r\n\r\nIntegration
test added.","sha":"687294d4d30e936aa95b4a4c566b29c4462ab362"}}]}]
BACKPORT-->

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2023-02-14 08:14:12 -07:00
..
accessibility [Discover] Unskip flaky a11y tests (#149827) 2023-01-30 15:18:24 +01:00
analytics Move real plugins out of 'fixtures' dirs (#148756) 2023-01-12 12:38:49 -07:00
api_integration [Enterprise Search] Add integration tiles for new connectors (#150369) 2023-02-07 04:59:48 -07:00
common Change default value of csp.disableUnsafeEval to 'true' (#150157) 2023-02-07 07:07:13 -05:00
examples [Lens] Don't block render on missing field (#149262) 2023-02-02 18:09:43 -06:00
functional [8.7] [ftr] create config file for each tested plugin with firefox tests (#150873) (#150956) 2023-02-10 17:53:18 -07:00
harden Add 'fork' to child_process hardening tests (#139222) 2022-08-23 07:53:28 -04:00
health_gateway Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
interactive_setup_api_integration Move real plugins out of 'fixtures' dirs (#148756) 2023-01-12 12:38:49 -07:00
interactive_setup_functional Move real plugins out of 'fixtures' dirs (#148756) 2023-01-12 12:38:49 -07:00
interpreter_functional Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
node_roles_functional Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
package Adds base implementation of the Kibana Health Gateway. (#141172) 2022-11-07 09:14:42 -07:00
plugin_functional [8.7] [Fleet] Bugfix: prevent status runtime query going over character limit (#150910) (#151138) 2023-02-14 08:14:12 -07:00
scripts [Security Solution] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
server_integration Move real plugins out of 'fixtures' dirs (#148756) 2023-01-12 12:38:49 -07:00
ui_capabilities/newsfeed_err [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
tsconfig.json [Guided onboarding] Registers 3 separate guide IDs for search (#149968) 2023-02-06 06:16:26 -07:00