File tree Expand file tree Collapse file tree
x-pack/plugins/ecs_data_quality_dashboard/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,13 +48,14 @@ export class EcsDataQualityDashboardPlugin
4848 public setup ( core : CoreSetup , plugins : PluginSetupDependencies ) {
4949 this . logger . debug ( 'ecsDataQualityDashboard: Setup' ) ;
5050
51- this . resultsDataStream . install ( {
52- esClient : core
53- . getStartServices ( )
54- . then ( ( [ { elasticsearch } ] ) => elasticsearch . client . asInternalUser ) ,
55- logger : this . logger ,
56- pluginStop$ : this . pluginStop$ ,
57- } ) ;
51+ // TODO: Uncomment https://github.com/elastic/kibana/pull/173185#issuecomment-1908034302
52+ // this.resultsDataStream.install({
53+ // esClient: core
54+ // .getStartServices()
55+ // .then(([{ elasticsearch }]) => elasticsearch.client.asInternalUser),
56+ // logger: this.logger,
57+ // pluginStop$: this.pluginStop$,
58+ // });
5859
5960 core . http . registerRouteHandlerContext <
6061 DataQualityDashboardRequestHandlerContext ,
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ const searchResponse = {
3535 Record < string , { buckets : LatestAggResponseBucket [ ] } >
3636> ;
3737
38- describe ( 'getResultsRoute route' , ( ) => {
38+ // TODO: https://github.com/elastic/kibana/pull/173185#issuecomment-1908034302
39+ describe . skip ( 'getResultsRoute route' , ( ) => {
3940 let server : ReturnType < typeof serverMock . create > ;
4041 let { context } = requestContextMock . createTools ( ) ;
4142 let logger : MockedLogger ;
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ export const getResultsRoute = (
5151 validate : { request : { query : buildRouteValidation ( GetResultQuery ) } } ,
5252 } ,
5353 async ( context , request , response ) => {
54+ // TODO: https://github.com/elastic/kibana/pull/173185#issuecomment-1908034302
55+ return response . ok ( { body : [ ] } ) ;
56+
57+ // eslint-disable-next-line no-unreachable
5458 const services = await context . resolve ( [ 'core' , 'dataQualityDashboard' ] ) ;
5559 const resp = buildResponse ( response ) ;
5660
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ import type {
1717} from '@elastic/elasticsearch/lib/api/types' ;
1818import { resultBody , resultDocument } from './results.mock' ;
1919
20- describe ( 'postResultsRoute route' , ( ) => {
20+ // TODO: https://github.com/elastic/kibana/pull/173185#issuecomment-1908034302
21+ describe . skip ( 'postResultsRoute route' , ( ) => {
2122 let server : ReturnType < typeof serverMock . create > ;
2223 let { context } = requestContextMock . createTools ( ) ;
2324 let logger : MockedLogger ;
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ export const postResultsRoute = (
2929 . addVersion (
3030 {
3131 version : INTERNAL_API_VERSION ,
32- validate : {
33- request : {
34- body : buildRouteValidation ( PostResultBody ) ,
35- } ,
36- } ,
32+ validate : { request : { body : buildRouteValidation ( PostResultBody ) } } ,
3733 } ,
3834 async ( context , request , response ) => {
35+ // TODO: https://github.com/elastic/kibana/pull/173185#issuecomment-1908034302
36+ return response . ok ( { body : { result : 'noop' } } ) ;
37+
38+ // eslint-disable-next-line no-unreachable
3939 const services = await context . resolve ( [ 'core' , 'dataQualityDashboard' ] ) ;
4040 const resp = buildResponse ( response ) ;
4141
You can’t perform that action at this time.
0 commit comments