Skip to content

Commit

Permalink
[TSVB][performance] remove visPayloadSchema.validate
Browse files Browse the repository at this point in the history
Part of: #97061
  • Loading branch information
alexwizp committed Apr 14, 2021
1 parent 8c8fcf1 commit 9786e3a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/plugins/vis_type_timeseries/server/routes/vis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ export const visDataRoutes = (router: VisTypeTimeseriesRouter, framework: Framew
});
}

try {
visPayloadSchema.validate(request.body);
} catch (error) {
framework.logger.debug(
`Request validation error: ${error.message}. This most likely means your TSVB visualization contains outdated configuration. You can report this problem under https://github.com/elastic/kibana/issues/new?template=Bug_report.md`
);
}

const results = await getVisData(requestContext, request, framework);
return response.ok({ body: results });
}
Expand Down

0 comments on commit 9786e3a

Please sign in to comment.