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] Persist local UI filters across views #43266

Closed
dgieselaar opened this issue Aug 14, 2019 · 7 comments
Closed

[APM] Persist local UI filters across views #43266

dgieselaar opened this issue Aug 14, 2019 · 7 comments
Assignees
Labels
release_note:enhancement Team:APM All issues that need APM UI Team support v7.4.0

Comments

@dgieselaar
Copy link
Member

If a local UI filter is selected in one view, and the user navigates to another view that has that filter as well, the filter value should persist. E.g. when the user has selected the host in the services list, and clicks on the traces tab, the host filter should be carried over into the traces view. This is useful for the user when they're investigating certain components, e.g. how a specific host is performing.

@dgieselaar dgieselaar added release_note:enhancement Team:APM All issues that need APM UI Team support labels Aug 14, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui

@sorenlouv
Copy link
Member

Could this be solve by adding local filters to the list of PERSISTENT_APM_PARAMS:

export const PERSISTENT_APM_PARAMS = [
'kuery',
'rangeFrom',
'rangeTo',
'refreshPaused',
'refreshInterval',
'environment'
];

Or perhaps even better: overhauling our links and explicitly pass the params that should be carried over?
Might want to take a look at the History Tabs which have their own logic for this (which they probably shouldn't have):

const searchWithoutTableParameters = omit(
toQuery(location.search),
'sortField',
'sortDirection',
'page',
'pageSize'
);

@dgieselaar
Copy link
Member Author

Here's a list of links that need to be updated. I've included the breadcrumbs for now, but we could also drop those for an initial implementation if they're hard to get right.

- Service Overview => Transaction Overview (table)
- Service Overview => Trace Overview (tab)

- Trace Overview => Transaction Detail (table)
- Trace Overview => Service Overview (tab)
- Trace Overview => Service Overview (breadcrumb)

- Transaction Overview => Transaction Detail (table)
- Transaction Overview => Error Overview (tab)
- Transaction Overview => Metrics Overview (tab)
- Transaction Overview => Service Overview (breadcrumb)

- Error Overview => Transaction Overview (tab)
- Error Overview => Metrics Overview (tab)
- Error Overview => Transaction Overview (breadcrumb)
- Error Overview => Service Overview (breadcrumb)

- Metrics Overview => Transaction Overview (tab)
- Metrics Overview => Error Overview (tab)
- Metrics Overview => Transaction Overview (breadcrumb)
- Metrics Overview => Service Overview (breadcrumb)

- Transaction Detail => Transaction Overview (breadcrumb)
- Transaction Detail => Transaction Overview (flyout)
- Transaction Detail => Trace Overview (full trace link)

@dgieselaar
Copy link
Member Author

To answer your question:

Could this be solve by adding local filters to the list of PERSISTENT_APM_PARAMS:

I don't think so, we need to know which local UI filters are supported by the page we are linking to, otherwise filters will be applied without a UI to make them visible to the user.

@sorenlouv
Copy link
Member

I don't think so, we need to know which local UI filters are supported by the page we are linking to, otherwise filters will be applied without a UI to make them visible to the user.

Makes sense. So the simpler solution is to add them manually to the links as needed. Or what do you think?

@dgieselaar
Copy link
Member Author

@sqren I think having components like <TransactionOverviewLink/> would be a good idea as you proposed earlier. I'll open a draft PR that implements it for a couple of links in a bit to get some early feedback.

@dgieselaar dgieselaar self-assigned this Aug 27, 2019
@dgieselaar
Copy link
Member Author

Closed in #43988.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:enhancement Team:APM All issues that need APM UI Team support v7.4.0
Projects
None yet
Development

No branches or pull requests

3 participants