## Summary
Fixes: https://github.com/elastic/kibana/issues/77342
No easy way to unit test/end to end test this as it was operating correctly before and passed all of our tests, it was just running in a slow state if you had between 0 and 100 signals. The best bet is that you hand run the tests from 77342 or use a large look back time to ensure de-duplicate does not run as outlined in 77342.
Also this PR removes a TODO block, a complexity linter issue we had, a few await that were there by accident, and pushes down arrays to make things to be cleaner.
* adding cgroup fields
* calculate the memory based on the cgroup fields otherwise use the system fields
* updating script
* adding api tests
* using cgroup fields on service map
* addressing PR comment
* fixing unit test
* fixing test
* changing api tests to use snapshot
* removing inactive_files from calculation
* fixing test
* refactoring painless script
* addressing PR comment
* addressing pr comments
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add readOnlyMode prop + callout to Layout component
* Update HttpLogic to initialize readOnlyMode from config_data
+ update App Search & Workplace Search layout to pass readOnlyMode state
- update passed props test to not refer to readOnlyMode, so as not to confuse distinction between props.readOnlyMode (passed on init, can grow stale) and HttpLogic.values.readOnlyMode (will update on every http call)
- DRY out HttpLogic initializeHttp type defs
* Update enterpriseSearchRequestHandler to pass read-only mode header
+ add a custom 503 API response for read-only mode errors that come back from API endpoints (e.g. when attempting to create/edit a document) - this is so we correctly display a flash message error instead of the generic "Error Connecting" state
+ note that we still need to send back read only mode on ALL headers, not just on handleReadOnlyModeError however - this is so that the read-only mode state can updates dynamically on all API polls (e.g. on a 200 GET)
* Add HttpLogic read-only mode interceptor
- which should now dynamically listen / update state every time an Enterprise Search API call is made
+ DRY out isEnterpriseSearchApi helper and making wrapping/branching clearer
* PR feedback: Copy
* Use Search API for TSVB
* Fixed ci
* Fixed ci
* Use constants
* Fixed tests
* Fixed ci
* Fixed ci
* Back old rollup search
* Fixed test
* Fixed tests
* Fixed issue with series data
* Fixed comments
* Fixed comments
* Fixed unit test
* Deleted unused import
* Fixed comments
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
The removed resolutions are no longer needed because the packages that
originally depended on the incompatible versions have either been
removed or upgraded.
* [ML] Adding option to create AD jobs without starting the datafeed
* changing translation id
* i just need some space
* adding missed spelling change
* disabling switch when running
* improving logic
* further test improvements
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add subNav prop to SideNavLinks
- for nested navigation
* [Probably extra] Tweak CSS to allow for recursive subnesting
- while attempting to expand the hitbox area of nested links as much as possible
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Enterprise Search] Add a helper for success messages
* Move method to separate file
* Update test names
* D R Y
* I really need to slow down 🤦🏼♂️
* PR feedback
* Typo
* Final I hope check in for Resolver fix
* Fix click
* Fix click
* Fix click
* revert to select the first event
* Gzip Data file
* removed not zipped file
* striped Data file and gziped
* removed commented out delete indices
* Added query bar to select correct events
* removed commented out delete indices
* removed commented out delete indices
* removed commented out delete indices
* removed commented out delete indices
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Moving generator to safe type version
* Finished generator and alert
* Gzipping again
* Finishing type conversions for backend
* Trying to cast front end tests back to unsafe type for now
* Working reducer tests
* Adding more comments and fixing alert type
* Restoring resolver test data
* Updating snapshot with timestamp info
* Getting the models figured out
* Event models type fixes
* Adding more comments
* Fixing more comments
* Adding comments
* [Enterprise Search] Update layout for white bg
This PR updates the Enterprise Search layout to have a white background.
Includes:
- Updating the header hights to account for search bar (renamed from kibana to console for future proofing)
- Add height to extend to bottom of page
- Change bg to white
* D R Y
* Update x-pack/plugins/enterprise_search/public/applications/shared/layout/layout.scss
Thanks!
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>