Skip to content

[Webprofiler] Improve sql explain table display #23706

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

Merged
merged 1 commit into from
Aug 1, 2017

Conversation

mimol91
Copy link

@mimol91 mimol91 commented Jul 28, 2017

Q A
Branch? 3.4
Bug fix? yes?
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Table which is shown in Weprofiler is not clean while values in sql explain table are long.
This PR adds horizontal scroll for long tables.

Related PR in Doctrine bundle: doctrine/DoctrineBundle#681
(It does not cause any backward compatibility problems)

Before:
before

After:
after

@Simperfit
Copy link
Contributor

Could you please rebase @mimol91 ?
@javiereguiluz WDYT ?

@stof
Copy link
Member

stof commented Jul 29, 2017

@mimol91 what happens when using Postgresql ? Explain output uses a <pre> tag there, not a table.

@@ -874,6 +874,13 @@ table.logs .metadata {
margin: .5em 0;
padding: 1em;
}
.sql-explain {
overflow-x: auto;
width: 920px;
Copy link
Member

Choose a reason for hiding this comment

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

should be max-width in case people have smaller screens

@mimol91
Copy link
Author

mimol91 commented Jul 29, 2017

Its working as before
screenshot_20170729_175832

Can i re-trigger tests?

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

@mimol91 fantastic! Thanks for contributing this improvement. I like it a lot.

@mimol91
Copy link
Author

mimol91 commented Jul 30, 2017

I've rebased with 3.4

@fabpot
Copy link
Member

fabpot commented Aug 1, 2017

Thank you @mimol91.

@fabpot fabpot merged commit 2769550 into symfony:3.4 Aug 1, 2017
fabpot added a commit that referenced this pull request Aug 1, 2017
This PR was merged into the 3.4 branch.

Discussion
----------

[Webprofiler] Improve sql explain table display

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes?
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Table which is shown in Weprofiler is not clean while values in sql explain table are long.
This PR adds horizontal scroll for long tables.

**Related PR in Doctrine bundle:** doctrine/DoctrineBundle#681
_(It does not cause any backward compatibility problems)_

**Before:**
![before](https://user-images.githubusercontent.com/2659069/28733410-0ca76826-73ed-11e7-9fea-b3c49a5442ed.gif)

**After:**
![after](https://user-images.githubusercontent.com/2659069/28733415-11b76ae6-73ed-11e7-9e1a-ace661a1cd44.gif)

Commits
-------

2769550 improve sql explain table display
This was referenced Oct 18, 2017
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.

7 participants