-
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] Service overview: Ensure transactionType is used for by every component #85665
Conversation
Fix the places where it was not being used: - Transactions table - Error rate chart - Errors table Also fix broken column sorting on transaction table.
Pinging @elastic/apm-ui (Team:apm) |
@elasticmachine merge upstream |
retest |
@@ -152,7 +153,7 @@ export function ServiceOverviewErrorsTable({ serviceName }: Props) { | |||
}, | |||
status, | |||
} = useFetcher(() => { | |||
if (!start || !end) { | |||
if (!start || !end || !transactionType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For readability, something like:
const hasRequiredParams = start && end && transactionType;
if (!hasRequiredParams) {
return;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are already using the "or not" style so I think it's fine to keep it. At least that's consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
retest |
retest |
1 similar comment
retest |
Good catch. This happens because we scope the results based on url params and we don't add the transaction type to the url in this case. Doing that would be an easy fix: kibana/x-pack/plugins/apm/public/components/shared/KueryBar/get_bool_filter.ts Lines 49 to 53 in 20638a6
That being said, since this is not a blocker, we can merge this as-is before FF and then follow up with a bug fix. |
@elasticmachine merge upstream |
@@ -86,6 +86,8 @@ describe('ServiceOverview', () => { | |||
isAggregationAccurate: true, | |||
}, | |||
'GET /api/apm/services/{serviceName}/dependencies': [], | |||
// eslint-disable-next-line @typescript-eslint/naming-convention | |||
'GET /api/apm/services/{serviceName}/service_overview_instances': [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is eslint complaining about here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Property name
GET /api/apm/services/{serviceName}/error_groups must match one of the following formats: camelCase, PascalCase, snake_case, UPPER_CASE
retest |
retest |
1 similar comment
retest |
* Ensure transactionType is used in overview Fix the places where it was not being used: - Transactions table - Error rate chart - Errors table Also fix broken column sorting on transaction table. * fix a sort * test fix * Snapshot update * adds missing required param transactionType to API test Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Oliver Gupte <[email protected]>
* Ensure transactionType is used in overview Fix the places where it was not being used: - Transactions table - Error rate chart - Errors table Also fix broken column sorting on transaction table. * fix a sort * test fix * Snapshot update * adds missing required param transactionType to API test Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Oliver Gupte <[email protected]>
* Ensure transactionType is used in overview Fix the places where it was not being used: - Transactions table - Error rate chart - Errors table Also fix broken column sorting on transaction table. * fix a sort * test fix * Snapshot update * adds missing required param transactionType to API test Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Oliver Gupte <[email protected]> Co-authored-by: Nathan L Smith <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
* Ensure transactionType is used in overview Fix the places where it was not being used: - Transactions table - Error rate chart - Errors table Also fix broken column sorting on transaction table. * fix a sort * test fix * Snapshot update * adds missing required param transactionType to API test Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Oliver Gupte <[email protected]> Co-authored-by: Nathan L Smith <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
💚 Build SucceededMetrics [docs]Async chunks
Distributable file count
History
To update your PR or re-run it, just comment with: |
couple of APIs are not using transaction type, and a couple of requests happen twice (once without transaction type, once with): see #86614. |
Fix the places where it was not being used:
Also fix broken column sorting on transaction table.
Fixes #82831.