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] Local UI filters #41588

Merged
merged 28 commits into from
Aug 15, 2019
Merged

[APM] Local UI filters #41588

merged 28 commits into from
Aug 15, 2019

Conversation

dgieselaar
Copy link
Member

@dgieselaar dgieselaar commented Jul 19, 2019

Closes #34922.

Services:
image

Traces:
image

Transactions overview:
image

Transactions detail:
image

Errors:
image

Metrics:
image

Filter menu:
image
image

Definition of Done for APM UI

@dgieselaar dgieselaar changed the title Local filters [APM] Local filters Jul 19, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

@spalger
Copy link
Contributor

spalger commented Jul 19, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@dgieselaar
Copy link
Member Author

dgieselaar commented Jul 21, 2019 via email

@dgieselaar
Copy link
Member Author

Discussed via Zoom w/ @sqren (please correct me if I missed or misrepresented anything):

  • document type should be something like view or route type
  • going to create links for different views (like we have TransactionLink) and add type safety (of query params) via that abstraction. When/if we'll have named routes that type safety can bubble up via the router. For now we'll use a mix of manual typings + inferred from local ui filters.
  • remove optimizations as much as possible. good guideline: memoize by default in hooks/context, in all other instances, only if absolutely necessary (and proven).
  • rename localFilters to localUiFilters (everywhere)
  • keep the spread operator, infer types as much as possible from one central location (the filters config)
  • make transaction type look like a local UI filter, but exclude it from parsing/formatting in uiFilters hook and aggregation. making it a local filter under water will have too much impact on type boundaries/UI behaviour/API calls that expect a single value.

@sorenlouv
Copy link
Member

sorenlouv commented Jul 22, 2019

document type should be something like view or route type

Yes, I think we should avoid creating a new "type" and just refer to the route names we already have.
We also shouldn't have to add the route name to the links.

@sorenlouv
Copy link
Member

Agree with all the other points 👍

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@dgieselaar
Copy link
Member Author

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@dgieselaar dgieselaar merged commit 4b05fd9 into elastic:master Aug 15, 2019
@dgieselaar dgieselaar deleted the local-filters branch August 15, 2019 08:53
dgieselaar added a commit to dgieselaar/kibana that referenced this pull request Aug 15, 2019
* Add snapshot tests for query search params

* Use projections to fetch data

* Add configuration and aggregations for local filters

* Add endpoints for local filters

* UseLocalUIFilters hook

* Parse Local UI filters from URL params

* LocalUIFilters component

* TransactionTypeFilter

* replace useServiceTransactionTypes with useTransactionTypes

* Support transactionType for trace projection/api

* Configure Local UI Filters

* Use units instead of hardcoded px

* Fix i18n error

* Remove unused labels from translation files

* Update URL of API integration test for transaction_types API call

* Revert "replace useServiceTransactionTypes with useTransactionTypes"

This reverts commit bae7fa44a0fc1ace0b498cc78626fabb2d310437.

* Revert "Support transactionType for trace projection/api"

This reverts commit 2edb32cf04ca2c38885c457ba57ce0a1547fd199.

* Remove transaction type filter for traces,error groups

* Address review feedback

* Don't clone in mergeProjection; add tests

* Address review feedback

* Revert transaction_types API path in functional tests

* More review feedback

* More review feedback:

- Add transactions projection
- Merge traces/transaction groups projections

* Don't persist local UI filters in HistoryTabs

* Move projections to server folder

* Move transactionName into options

* Use pod name instead of pod uid
dgieselaar added a commit that referenced this pull request Aug 15, 2019
* Add snapshot tests for query search params

* Use projections to fetch data

* Add configuration and aggregations for local filters

* Add endpoints for local filters

* UseLocalUIFilters hook

* Parse Local UI filters from URL params

* LocalUIFilters component

* TransactionTypeFilter

* replace useServiceTransactionTypes with useTransactionTypes

* Support transactionType for trace projection/api

* Configure Local UI Filters

* Use units instead of hardcoded px

* Fix i18n error

* Remove unused labels from translation files

* Update URL of API integration test for transaction_types API call

* Revert "replace useServiceTransactionTypes with useTransactionTypes"

This reverts commit bae7fa44a0fc1ace0b498cc78626fabb2d310437.

* Revert "Support transactionType for trace projection/api"

This reverts commit 2edb32cf04ca2c38885c457ba57ce0a1547fd199.

* Remove transaction type filter for traces,error groups

* Address review feedback

* Don't clone in mergeProjection; add tests

* Address review feedback

* Revert transaction_types API path in functional tests

* More review feedback

* More review feedback:

- Add transactions projection
- Merge traces/transaction groups projections

* Don't persist local UI filters in HistoryTabs

* Move projections to server folder

* Move transactionName into options

* Use pod name instead of pod uid
jloleysens added a commit to jloleysens/kibana that referenced this pull request Aug 15, 2019
…p-metrics-selectall

* 'master' of github.com:elastic/kibana: (50 commits)
  [Uptime] update monitor list configs for mobile view (elastic#43218)
  [APM] Local UI filters (elastic#41588)
  [Code] Upgrade ctags langserver (elastic#43252)
  [Code] show multiple definition results in panel (elastic#43249)
  Adds Metric Type to full screen launch tracking (elastic#42692)
  [Canvas] Convert Autocomplete to Typescript (elastic#42502)
  [telemetry] add spacesEnabled config back to xpack_main (elastic#43312)
  [ML] Adds DF Transform Analytics list to Kibana management (elastic#43151)
  Add TLS client authentication support. (elastic#43090)
  [csp] Telemetry for csp configuration (elastic#43223)
  [SIEM] Run Cypress Tests Against Elastic Cloud & Cypress Command Line / Reporting (elastic#42804)
  docs: add tip on agent config in a dt (elastic#43301)
  [ML] Adding bucket span estimator to new wizards (elastic#43288)
  disable flaky tests (elastic#43017)
  Fix percy target branch for PRs (elastic#43160)
  [ML] Adding post create job options (elastic#43205)
  Restore discover histogram selection triggering fetch (elastic#43097)
  Per panel time range (elastic#43153)
  [Infra UI] Add APM to Metadata Endpoint (elastic#42197)
  Sentence case copy changes (elastic#43215)
  ...
@ogupte ogupte self-assigned this Sep 11, 2019
@ogupte ogupte removed their assignment Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Local filters: Add sidebar navigation containing local filters
6 participants