-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APM] Validate params for local UI filters config #43267
Comments
Pinging @elastic/apm-ui |
As talked about on zoom this issue could also fix the problem of not being able to see the transactions overview page when kibana/x-pack/legacy/plugins/apm/public/components/app/TransactionOverview/index.tsx Lines 108 to 112 in 1f09812
And instead be something like: // TODO: improve urlParams typings.
// `serviceName` will never be undefined here, and this check should not be needed
if (!serviceName) {
return null;
} This in turn will cause one of the ui filters endpoints to fail since |
@dgieselaar Is it still useful with an issue for tracking this? |
@sqren fine with closing |
For the API calls that fetch the local UI filter data (available options + their count), we need to pass in some parameters for the projection that is being used. E.g., for transactions, we send
serviceName
etc as parameters to the endpoint, that constructs the projection with the givenserviceName
. Right now there's no validation in the client-side call, only on the endpoint. To improve our confidence in the client-side call we can explore ways to get type safety here as well. The config now looks like this:Right now there's no way to check if
{ serviceName }
is the right set of parameters for the metrics projection, the scope of this issue is to make sure we can check that with TypeScript.The text was updated successfully, but these errors were encountered: