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

[Infra UI][Logs UI] Fix autocomplete to use proper derived index pattern #42287

Merged
merged 4 commits into from
Aug 2, 2019

Conversation

simianhacker
Copy link
Member

Summary

This PR closed #42275 by removing the derivedIndexPattern from the Source.Context and replacing it with a method to create the derivedIndexPattern based on the type you need (logs | metrics | both). This way when looking at Metrics Explorer or Inventory the fields (and values) are using the same index as the content on the page. The changes to the Logs UI only affect how the derivedIndexPattern is accessed, the functionality should remain the same.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- Closes elastic#42275
- Removes derivedIndexPattern
- Adds createDerivedIndexPattern(type: 'logs' | 'metrics' | 'both')
- Replaces all instances of derivedIndexPattern from WithSource with
results of createDerivedIndexPattern()
@simianhacker simianhacker added release_note:fix Feature:Metrics UI Metrics UI feature v8.0.0 Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.4.0 v7.3.1 labels Jul 30, 2019
@simianhacker simianhacker requested a review from a team July 30, 2019 19:14
@simianhacker simianhacker self-assigned this Jul 30, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-logs-ui

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@skh skh left a comment

Choose a reason for hiding this comment

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

Confirmed the fix, just one question inline. 👍

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@simianhacker simianhacker merged commit 2ce39cf into elastic:master Aug 2, 2019
simianhacker added a commit to simianhacker/kibana that referenced this pull request Aug 2, 2019
…ern (elastic#42287)

* [Infra UI] Fix autocompete on inventry page to use proper indexPattern

- Closes elastic#42275
- Removes derivedIndexPattern
- Adds createDerivedIndexPattern(type: 'logs' | 'metrics' | 'both')
- Replaces all instances of derivedIndexPattern from WithSource with
results of createDerivedIndexPattern()

* Fixing a missed conversion

* Removing useCallback
simianhacker added a commit that referenced this pull request Aug 2, 2019
…ern (#42287) (#42543)

* [Infra UI] Fix autocompete on inventry page to use proper indexPattern

- Closes #42275
- Removes derivedIndexPattern
- Adds createDerivedIndexPattern(type: 'logs' | 'metrics' | 'both')
- Replaces all instances of derivedIndexPattern from WithSource with
results of createDerivedIndexPattern()

* Fixing a missed conversion

* Removing useCallback
jloleysens added a commit to jloleysens/kibana that referenced this pull request Aug 5, 2019
…-or-edit-existing-rollup-job

* 'master' of github.com:elastic/kibana: (67 commits)
  [TSVB] Shim new platform (elastic#39169)
  [Metric Vis] Shim new platform (elastic#42240)
  [Tag Cloud] Shim new platform (elastic#42348)
  Disable flaky request lib tests. Add es_ui_shared plugin to CODEOWNERS.
  Add disk space percentage to node listing (elastic#42145)
  [SIEM] Add chart interactions - update date picker after brush selection on charts (elastic#42440)
  Document HTTP service (elastic#42331)
  [Reporting] Sanitize 409 error log message (elastic#42495)
  [docs][skip ci] Maps read only access (elastic#35561)
  [x-pack/ftr] refactor types to be more accurate/consistent wit… (elastic#42407)
  [DOCS] Updates images and content in Dashboard docs (elastic#42500)
  Allow sorting on multiple columns in Discover (elastic#41918)
  [Infra UI][Logs UI] Fix autocomplete to use proper derived index pattern (elastic#42287)
  [ftr/cheerio] improve cheerio types to include test subject me… (elastic#42534)
  Upgraded EUI 13.0.0 -> 13.1.1 (elastic#42298)
  Increase max-old-space-size for builds (elastic#42218)
  [Infra UI] Add cloud metrics and cloud/host info to metadata endpoint (elastic#41836)
  [Logs UI][a11y] Announce name of column on remove column button (elastic#41695)
  Inspector 👉 New Platform (elastic#42164)
  Make alerting properly space aware (elastic#42081)
  ...
jloleysens added a commit to jloleysens/kibana that referenced this pull request Aug 5, 2019
…s_autocomplete

* 'master' of github.com:elastic/kibana: (189 commits)
  [TSVB] Shim new platform (elastic#39169)
  [Metric Vis] Shim new platform (elastic#42240)
  [Tag Cloud] Shim new platform (elastic#42348)
  Disable flaky request lib tests. Add es_ui_shared plugin to CODEOWNERS.
  Add disk space percentage to node listing (elastic#42145)
  [SIEM] Add chart interactions - update date picker after brush selection on charts (elastic#42440)
  Document HTTP service (elastic#42331)
  [Reporting] Sanitize 409 error log message (elastic#42495)
  [docs][skip ci] Maps read only access (elastic#35561)
  [x-pack/ftr] refactor types to be more accurate/consistent wit… (elastic#42407)
  [DOCS] Updates images and content in Dashboard docs (elastic#42500)
  Allow sorting on multiple columns in Discover (elastic#41918)
  [Infra UI][Logs UI] Fix autocomplete to use proper derived index pattern (elastic#42287)
  [ftr/cheerio] improve cheerio types to include test subject me… (elastic#42534)
  Upgraded EUI 13.0.0 -> 13.1.1 (elastic#42298)
  Increase max-old-space-size for builds (elastic#42218)
  [Infra UI] Add cloud metrics and cloud/host info to metadata endpoint (elastic#41836)
  [Logs UI][a11y] Announce name of column on remove column button (elastic#41695)
  Inspector 👉 New Platform (elastic#42164)
  Make alerting properly space aware (elastic#42081)
  ...
@simianhacker simianhacker deleted the fix-derivedIndexPattern branch April 17, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Logs UI Logs UI feature Feature:Metrics UI Metrics UI feature release_note:fix Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.3.1 v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search in Infrastructure tab doesn't appear to show correct auto-complete values
3 participants