Skip to content
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

Merged
merged 14 commits into from
Dec 18, 2020

Conversation

smith
Copy link
Contributor

@smith smith commented Dec 10, 2020

Fix the places where it was not being used:

  • Transactions table
  • Error rate chart
  • Errors table

Also fix broken column sorting on transaction table.

Fixes #82831.

Fix the places where it was not being used:

- Transactions table
- Error rate chart
- Errors table

Also fix broken column sorting on transaction table.
@smith smith requested a review from a team as a code owner December 10, 2020 22:35
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Dec 10, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@smith smith added release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v8.0.0 labels Dec 10, 2020
@smith
Copy link
Contributor Author

smith commented Dec 14, 2020

@elasticmachine merge upstream

@smith
Copy link
Contributor Author

smith commented Dec 14, 2020

retest

@@ -152,7 +153,7 @@ export function ServiceOverviewErrorsTable({ serviceName }: Props) {
},
status,
} = useFetcher(() => {
if (!start || !end) {
if (!start || !end || !transactionType) {
Copy link
Contributor

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;
}

Copy link
Member

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

Copy link
Contributor

@ogupte ogupte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@smith
Copy link
Contributor Author

smith commented Dec 14, 2020

retest

@smith
Copy link
Contributor Author

smith commented Dec 15, 2020

retest

1 similar comment
@smith
Copy link
Contributor Author

smith commented Dec 15, 2020

retest

@formgeist
Copy link
Contributor

I noticed some inconsistencies where we will filter out any other type in the search bar in the Transactions view, but show other types in the suggestions even if we're scoping the Overview to request.

Overview

Screenshot 2020-12-15 at 11 39 25

Transactions

Screenshot 2020-12-15 at 11 39 44

@sorenlouv
Copy link
Member

sorenlouv commented Dec 15, 2020

I noticed some inconsistencies where we will filter out any other type in the search bar in the Transactions view, but show other types in the suggestions even if we're scoping the Overview to request.

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:

if (urlParams.transactionType) {
boolFilter.push({
term: { [TRANSACTION_TYPE]: urlParams.transactionType },
});
}

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.

@smith
Copy link
Contributor Author

smith commented Dec 15, 2020

@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': [],
Copy link
Member

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?

Copy link
Contributor Author

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

@smith
Copy link
Contributor Author

smith commented Dec 16, 2020

retest

@smith
Copy link
Contributor Author

smith commented Dec 17, 2020

retest

1 similar comment
@smith
Copy link
Contributor Author

smith commented Dec 17, 2020

retest

@ogupte ogupte merged commit feecebf into elastic:master Dec 18, 2020
ogupte added a commit to ogupte/kibana that referenced this pull request Dec 18, 2020
* 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]>
ogupte added a commit to ogupte/kibana that referenced this pull request Dec 18, 2020
* 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]>
ogupte added a commit that referenced this pull request Dec 18, 2020
* 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]>
ogupte added a commit that referenced this pull request Dec 18, 2020
* 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]>
@sorenlouv sorenlouv changed the title Ensure transactionType is used in overview [APM] Service overview: Ensure transactionType is used for by every component Dec 18, 2020
@sorenlouv sorenlouv mentioned this pull request Dec 18, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 5.4MB 5.4MB +446.0B

Distributable file count

id before after diff
default 47286 48046 +760

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@dgieselaar dgieselaar self-assigned this Dec 21, 2020
@dgieselaar
Copy link
Member

couple of APIs are not using transaction type, and a couple of requests happen twice (once without transaction type, once with): see #86614.

@dgieselaar dgieselaar added the apm:test-plan-done Pull request that was successfully tested during the test plan label Dec 21, 2020
@dgieselaar dgieselaar removed their assignment Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:test-plan-done Pull request that was successfully tested during the test plan release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Service overview: Only show data from default (or top) transaction type
7 participants