* Make 1st and 2nd step of policy editor behave nicer:
* Fix UX when selected agent policy already has a limited package (like Endpoint)
* Avoid re-rendering step 1 when a new agent policy is selected in Step 2
* Remove legacy code intended to support in-line selection of a package within policy editor (i.e. "from" policy)
* Remove add integration from policy routing
* Placing back "from policy" logic and a few other fixes
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Rename method
We have to set the source from the sync logic file and this naming makes more sense
* Wire up Enable Synchronization toggle
* Remove sync controls from source settings
* Refactor to pass in contentSource as prop
Because we have a child logic file, SynchronizationLogic, we have to pass the content source into it for reading its values from SourceLogic. There are 3 ways to do this:
1. Access the source directly at SourceLogic.values.contentSource
- This how we normally do it. The problem here is that SourceLogic is not mounted when the default values are set in the reducers. This caused the UI to break and I could not find a way to safely mount SourceLogic before this logic file needed it.
2. Use the connect property and connect to Sourcelogic to access contentSource
- This actually worked great but our test helper does not work well with it and after an hour or so trying to make it work, I punted and decided to go with #3 below.
3. Pass the contentSource as a prop
- This works great and is easy to test. The only drawback is that all other components that use the SynchronizationLogic file have to also pass in the content source. This commit does just that.
* Add logic for Objects and assets view
* Add content to Objects and assets view
* Add fallback for `nextStart` that is in the past
This is slightly beyond the scope of this PR but trying to make the final PR more manageable.
There is an edge case where a running job lists the nextStart in the past if it is is running. After a lengthy Slack convo, it was decided to catch these in the UI and show a fallback string instead of something like “Next run 3 hours ago”
* reduce -> map
From previous PR feedback
* Fix casing on i18n ID
While Elasticsearch ingest pipelines require a node with the `ingest`
role, we don't need to include `ingest node` in the feature name.
There are no official plans, but the Elasticsearch team has discussed removing
the `ingest` role in the future. This also better aligns the Kibana UI with the
Elasticsearch docs.
The PR also makes some related changes to the Kibana docs.
Relates to https://github.com/elastic/elasticsearch/pull/70253.
* Add initial implementation for keep policies up to date functionality
* Upgrade package policies during preconfiguration check
* Only show keep policies up to date switch for default/auto-update packages
* Fix type error
* Fixup setup policy upgrade logic
* Add migration for keep policies up to date flag
* Move setup package policy logic to new module + add tests
* Update snapshots to include keepPoliciesUpToDate field
* Fix type errors
* Fix some CI failures
* Fix more type errors
* Fix type error in isolation test
* Fix package fixtures types
* Fix another type error
* Move policy upgrade error swallowing up a level in setup
* Address PR feedback
- Move keep policies up to date switch to separate component
- Use PACKAGE_POLICY_SAVED_OBJECT_TYPE instead of magic string
* Fix overwriting user values when upgrading
Fixes#113731
* Add test package
* Fix tests for overridePackageVars
* Address PR feedback
- Don't index keep_policies_up_to_date field
- Use SO_SEARCH_LIMIT constant instead of magic number
* Make toast translation usage more consistent
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* built control group embeddable featuring inline control creation and editing, and DndKit based drag and drop.
Co-authored-by: andreadelrio <delrio.andre@gmail.com>
* non-working POC for privilege deprecations
* wip to be bale to deprecated sub feature case in security solutions
* finalyze deprecations of cases sub feature in security solutions
* only adding the deprecation servces in security
* add test + translation
* Update x-pack/plugins/security/server/deprecations/privilege_deprecations.ts
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
* joe reviews
* renaming + double check
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [ML] Lazy ML node integrations improvements
* adding checks to metric and uptime
* updating callout
* adding callout to security
* cleaning up logs changes
* further clean up
* cleaning up callout code
* reverting churn
* linting
* improvements to bundle size
* adding link to cloud
* text changes
* fixing test
* translation id
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* remove kbn-legacy-logging package
* remove legacy service
* remove legacy appender
* remove LegacyObjectToConfigAdapter
* gix types
* remove @hapi/good / @hapi/good-squeeze / @hapi/podium
* remove `default` appender validation for `root` logger
* remove old config key from kibana-docker
* fix FTR config
* fix dev server
* remove reference from readme
* fix unit test
* clean CLI args and remove quiet option
* fix type
* fix status test config
* remove from test config
* fix snapshot
* use another regexp
* update generated doc
* fix createRootWithSettings
* fix some integration tests
* another IT fix
* yet another IT fix
* (will be reverted) add assertion for CI failure
* Revert "(will be reverted) add assertion for CI failure"
This reverts commit 78d5560f9e.
* switch back to json layout for test
* remove legacy logging config deprecations
* address some review comments
* update documentation
* update kibana.yml config examples
* add config example for `metrics.ops`
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
* [Discover] fix saved search become active
* [Discover] add another fix to be consistent with data fetching code
* [Discover] simplify solution
* [Discover] add functionals
* [Discover] fix saved query bug, add functionals
* [Discover] fix functionals
* [Discover] fix functional test
* [Discover] split saved query tests
* [Discover] preselect logstash index pattern
* [Discover] remove saved query after test complete
* [Discover] change query fill order
* [Discover] try to fix unrelated functional test
* [Discover] one more fix
* [Discover] try to fix one more problem
* [Discover] fix commonly used time range test
* [Discover] revert uisettings init in before statement, do small adjustments
* [Discover] fix unit test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>