[ML] Disable AIOps UI/APIs. (#132589)

This disables the UI and APIs for Explain log rate spikes in the ML plugin since it will not be part of 8.3. Once 8.3 has been branched off, we can reenable it in main. This also adds a check to the API integration tests to run the tests only when the hard coded feature flag is set to true.
This commit is contained in:
Walter Rafelsberger 2022-05-20 12:56:03 +02:00 committed by GitHub
parent 57d783a8c7
commit b3aee1740b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -19,4 +19,4 @@ export const PLUGIN_NAME = 'AIOps';
* This is an internal hard coded feature flag so we can easily turn on/off the
* "Explain log rate spikes UI" during development until the first release.
*/
export const AIOPS_ENABLED = true;
export const AIOPS_ENABLED = false;

View file

@ -5,13 +5,17 @@
* 2.0.
*/
import { AIOPS_ENABLED } from '@kbn/aiops-plugin/common';
import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ loadTestFile }: FtrProviderContext) {
describe('AIOps', function () {
this.tags(['ml']);
loadTestFile(require.resolve('./example_stream'));
loadTestFile(require.resolve('./explain_log_rate_spikes'));
if (AIOPS_ENABLED) {
loadTestFile(require.resolve('./example_stream'));
loadTestFile(require.resolve('./explain_log_rate_spikes'));
}
});
}