Skip to content

[Logs UI] Add single phrase highlighting#39569

Merged
weltenwort merged 35 commits intoelastic:masterfrom
Kerry350:22916-log-highlighting
Jul 2, 2019
Merged

[Logs UI] Add single phrase highlighting#39569
weltenwort merged 35 commits intoelastic:masterfrom
Kerry350:22916-log-highlighting

Conversation

@Kerry350
Copy link
Copy Markdown
Contributor

@Kerry350 Kerry350 commented Jun 25, 2019

Summary

This PR adds the ability to highlight a phrase in the logs displayed in the Logs UI. The "Highlights" button in the toolbar opens a popover that allows changing and clearing of a single phrase for now.

partly implements #22916

Known Limitations

Screenshots

grafik

grafik

Checklist

@weltenwort weltenwort added :Logs UI Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Jun 25, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/infra-logs-ui

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

This comment has been minimized.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@weltenwort
Copy link
Copy Markdown
Member

We're now using the EUI accent color for the button indicator as well as the highlights.

@formgeist @jasonrhodes any further thoughts on your reviews?

@formgeist
Copy link
Copy Markdown
Contributor

I'm good with leaving the notification badge for when we support multiple terms. And the accent for the indicator and highlights looks amazing 😍Thanks for getting this in!

@jasonrhodes
Copy link
Copy Markdown
Member

@weltenwort one question: I notice that highlight_query is the same as the search query as far as the multi_match block goes. Is there a reason to specify highlight_query if it's the same? Is it that it leaves out the date range so we get more results for next/prev or something like that?

@weltenwort
Copy link
Copy Markdown
Member

Unless I made a mistake, the search query should be a conjunction of the filter and the highlight query. But within that result set we only want to apply the highlight query, because we don't want to highlight the filter terms.

@jasonrhodes
Copy link
Copy Markdown
Member

Unless I made a mistake, the search query should be a conjunction of the filter and the highlight query. But within that result set we only want to apply the highlight query, because we don't want to highlight the filter terms.

👍 I added a filter in the query bar and now I see the difference. Thanks!

Copy link
Copy Markdown
Member

@jasonrhodes jasonrhodes left a comment

Choose a reason for hiding this comment

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

Great work here and great job paring this down to a useful MVP! 👏

@jasonrhodes
Copy link
Copy Markdown
Member

Something I just noticed:
Screen Shot 2019-07-02 at 4 11 36 PM

Seems like maybe the first one isn't highlighted at least in this example…

@weltenwort
Copy link
Copy Markdown
Member

Does it stay that way when you clear and re-enter the highlighting term?

@jasonrhodes
Copy link
Copy Markdown
Member

Does it stay that way when you clear and re-enter the highlighting term?

Yes, if I click the trash can and re-enter the term, the same thing happens.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Member

@jasonrhodes jasonrhodes left a comment

Choose a reason for hiding this comment

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

Great success! (This time on the correct PR)

Screen Shot 2019-07-02 at 5 35 30 PM

@weltenwort
Copy link
Copy Markdown
Member

weltenwort commented Jul 2, 2019

carried on winds
the hope outlasts dusk?
retest

@weltenwort
Copy link
Copy Markdown
Member

since when is jenkins haiku immune?

jenkins, test this again

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@weltenwort weltenwort merged commit de5e653 into elastic:master Jul 2, 2019
weltenwort pushed a commit to weltenwort/kibana that referenced this pull request Jul 2, 2019
This PR adds the ability to highlight a phrase in the logs displayed in the Logs UI. The "Highlights" button in the toolbar opens a popover that allows changing and clearing of a single phrase for now.

partly implements elastic#22916
weltenwort added a commit that referenced this pull request Jul 2, 2019
Backports the following commits to 7.x:
 - [Logs UI] Add single phrase highlighting  (#39569)
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@jasonrhodes jasonrhodes added Feature:Logs UI Logs UI feature and removed :Logs UI labels Jul 16, 2019
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 release_note:enhancement review Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.3.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants