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

Add Show/highlight to Logging tab #2831

Closed
mtho11 opened this issue May 26, 2020 · 11 comments · Fixed by kiali/kiali-ui#1809
Closed

Add Show/highlight to Logging tab #2831

mtho11 opened this issue May 26, 2020 · 11 comments · Fixed by kiali/kiali-ui#1809
Assignees
Labels
backlog Triaged Issue added to backlog enhancement This is the preferred way to describe new end-to-end features. sub-task Ties an issue to an epic

Comments

@mtho11
Copy link
Contributor

mtho11 commented May 26, 2020

Is your feature request related to a problem? Please describe.
We now have hide log entries because that was easier to initially do. Now we need show/highlight log entries.

Describe the solution you'd like
We need to at least show log entries that match a string (or regex).

Epic: #2232

@mtho11 mtho11 added enhancement This is the preferred way to describe new end-to-end features. backlog Triaged Issue added to backlog team/saturn sub-task Ties an issue to an epic labels May 26, 2020
@mtho11 mtho11 self-assigned this May 26, 2020
@lwrigh
Copy link

lwrigh commented May 28, 2020

The UXD team will look further into what Openshift is doing to give clearer feedback on the sort of show/hide behavior that should be featured on the logging page.

@jshaughn
Copy link
Collaborator

@lwrigh We won't block on this, for logs Find/Hide our approach will be to apply Hide, then Find. We will also use that terminology. That gives us consistency with Graph Find/Hide behavior and terminology.

Let us know whether this is consistent with, not consistent with, or simply unrelated to anything done in console.

@lwrigh
Copy link

lwrigh commented Jun 1, 2020

Here are two different options for approaching the toolbar for logging.

This first option still features the terminology of show/hide. The layout of the fields has been updated and the toggle options have been moved to the second line on the left side. The info tip next to the 'Activate Regex' toggle would provide the user with more info about what Regex is and what it does.
Logging- Show-Hide

This second options features a similar layout but features one find field as an alternative to having two fields (show/hide) with the goal of simplifying that interaction.
Logging- Find

@jshaughn
Copy link
Collaborator

jshaughn commented Jun 1, 2020

@lwrigh Thanks for the mocks. I prefer option 1 because I'm not exactly sure how a single input will handle both find and hide, because both could be applied simultaneously.

I like the first line as-is. The groupings on the second line look nice visually but functionally it may be strange because the regex switch applies to the Show/Hide expression. The orientation switch is unrelated to the regex switch.

@lwrigh
Copy link

lwrigh commented Jun 1, 2020

Here's an update to the first one so the Regex switch is located closer to the show/hide fields.
Logging- Show-Hide

@lwrigh
Copy link

lwrigh commented Jun 1, 2020

I also did an exploration that aligned the logging tab more with some of the Openshift log layouts. Here's it for thought.
Logging- More aligned with Openshift

@mtho11
Copy link
Contributor Author

mtho11 commented Jun 1, 2020

Great! Thanks @lwrigh !

@lwrigh
Copy link

lwrigh commented Jun 1, 2020

No problem!

@jshaughn
Copy link
Collaborator

jshaughn commented Jun 1, 2020

@lwrigh Yes, I think that's better to have the regex switch located with the Show/Hide inputs.

@beaumorley
Copy link

One more comment. We talked about changing Show/Hide to Find/Filter. This is the standard in the Dev Console. Do those labels work with the functionality of the controls?

I actually brought up the Logs Find/Filter in the last PatternFly meeting. They where looking for use cases where browser search does not work.

@jshaughn
Copy link
Collaborator

jshaughn commented Jun 2, 2020

@beaumorley What is currently "Show" takes a pattern and displays only log entries containing the pattern. What is currently "Hide" takes a pattern and displays only log entries not containing the pattern. If used together only entries containing the "Show" expression and not containing the "Hide" expression will be dispayed.

I'm not sure "Find" works here because we don't highlight occurrences of the pattern. That is deferred to the browser "Find" (ctrl-f). Filters tend to specify what you want to see, so maybe what is currently "Show" could be changed tp "Filter". I don't see a substitute for "Hide". What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Triaged Issue added to backlog enhancement This is the preferred way to describe new end-to-end features. sub-task Ties an issue to an epic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants