Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WebProfilerBundle] Add channel log filter#28934

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromro0NL:log-filters
Oct 24, 2018
Merged

[WebProfilerBundle] Add channel log filter#28934

fabpot merged 1 commit intosymfony:masterfromro0NL:log-filters
Oct 24, 2018

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedOct 20, 2018
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#...
LicenseMIT
Doc PRsymfony/symfony-docs#...

Continuation of#28906

The JS is revised to be more generic;

  • support 2 filter types:level andchoice (respectivelyLog level andLog channel here)
  • remove default filter value support (not used yet, but opportunity kept open) - it requires a bit more work to genericify it.
  • filters refines the resultset (e.g. show all logs in the app channel with priority higher than alert)

image

Level filter (works the same as shown in#28906 )

image

Choice filter

image

image

We forgot to update TwigBundle previously, that's still needed after review here.

OskarStark, theofidry, and SuperHamouch11 reacted with thumbs up emojijaviereguiluz, theofidry, noniagriconomie, yceruto, rvanlaak, and sweoggy reacted with heart emoji
Copy link
ContributorAuthor

@ro0NLro0NL left a comment

Choose a reason for hiding this comment

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

all good :D and a tiny step closer to sanity.

--page-background: #f9f9f9;
--color-text: #222;
--color-muted: #777;
--color-muted: #999;
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

this var was overwritten below

--table-header: #e0e0e0;
--shadow: 0px 0px 1px rgba(128, 128, 128, .2);
--border: 1px solid #e0e0e0;
--color-muted: #999;
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

that's here :)

background-color: var(--base-5);
color: var(--base-2);
}
.tab-content {
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

not needed, now specified by[data-filters] (the container that requires it)

display: block;
font-size: 12px;
}
table.logs tr td:last-child { width: 100%; }
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

already handled by.full-width on the message TH

Copy link
Member

@fabpotfabpot left a comment

Choose a reason for hiding this comment

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

@javiereguiluz
Copy link
Member

Great work Roland! I've tested this in the Symfony Demo app. I only have minor remarks.

First: "Ghost filters": when loading the page, filters are displayed by default and they disappear when they shouldn't be displayed. This GIF shows a force reload in the page:

ghost-filters

Maybe it's better to "hide by default" and display when appropriate?

Second: "Moving filters":

Right now, the multiple choice filters "move" under some circumstances. See hwen I deselect all of channels and icons disappear:

channel-filter

This kind of movements are distracting and user may click wrongly because of these element displacements. What if we replace the showing/hiding icon by a form checkbox? It doesn't have to be a real form, just a clickable checkbox. Stripe does something similar:

stripe-filter

@ro0NL
Copy link
ContributorAuthor

I think i've addressed both issues.

image

javiereguiluz reacted with thumbs up emoji

@fabpot
Copy link
Member

Thank you@ro0NL.

@fabpotfabpot merged commite1bd82e intosymfony:masterOct 24, 2018
fabpot added a commit that referenced this pull requestOct 24, 2018
This PR was squashed before being merged into the 4.2-dev branch (closes#28934).Discussion----------[WebProfilerBundle] Add channel log filter| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Continuation of#28906The JS is revised to be more generic;- support 2 filter types: `level` and `choice` (respectively `Log level` and `Log channel` here)- remove default filter value support (not used yet, but opportunity kept open) - it requires a bit more work to genericify it.- filters refines the resultset (e.g. show all logs in the app channel with priority higher than alert)![image](https://user-images.githubusercontent.com/1047696/47257162-b01bfe00-d48a-11e8-8364-d1eca69c9182.png)Level filter (works the same as shown in#28906 )![image](https://user-images.githubusercontent.com/1047696/47257699-78648480-d491-11e8-8c55-1dccda980de4.png)Choice filter![image](https://user-images.githubusercontent.com/1047696/47257205-3c2e2580-d48b-11e8-821b-e95bfed36331.png)![image](https://user-images.githubusercontent.com/1047696/47257209-4bad6e80-d48b-11e8-8fcc-e868aa556ff8.png)We forgot to update TwigBundle previously, that's still needed after review here.Commits-------e1bd82e [WebProfilerBundle] Add channel log filter
@ro0NLro0NL deleted the log-filters branchOctober 24, 2018 05:04
@nicolas-grekasnicolas-grekas modified the milestones:next,4.2Nov 1, 2018
This was referencedNov 3, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

5 participants

@ro0NL@javiereguiluz@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp