[Reporting] Ensure uniform enablement of the plugin #121020
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Addresses the first part of #120995
Kibana has safety checks built into the Saved Objects system to ensure that an instance doesn't start if there is an unknown SO type in the data (
CHECK_UNKNOWN_DOCUMENTS
). This PR gives the Reporting plugin a new saved object type to take advantage of that safety check.Having a mixed configuration, where Reporting is completely disabled on some instance(s) of Kibana but not others, is not supported because it corrupts the reporting task instances. Today, there is no way for the user to know if they are inadvertently creating that situation - they must resolve the data corruption manually after noticing that Reporting is broken.
Reporting can still be disabled for the most part by setting
xpack.reporting.queue.pollEnabled: false
in the kibana.yml. This setting does not need to be uniformly set across all Kibana instances.Checklist
Delete any items that are not applicable to this PR.