Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WebProfilerBundle] Append new ajax request to the end of the list #27763

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 2, 2018
Merged

[WebProfilerBundle] Append new ajax request to the end of the list #27763

merged 1 commit into from
Aug 2, 2018

Conversation

BoShurik
Copy link
Contributor

Append new ajax request to the end of the list instead of adding it to the beginning

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

Didn't find why this behavior was changed with web profiler design.
In current version it is hard to click to the latest ajax request.

@BoShurik
Copy link
Contributor Author

Not sure that failed build is related to the changes...

@nicolas-grekas nicolas-grekas added this to the next milestone Jul 1, 2018
@javiereguiluz
Copy link
Member

Let's ask some heavy users of Ajax requests (like @ostrolucky) what do they think of this proposal. I "remember" that in the past we did the opposite change ... but I'm not sure at all. Thanks!

@ostrolucky
Copy link
Contributor

I don't remember this being at bottom ever

@BoShurik
Copy link
Contributor Author

BoShurik commented Jul 3, 2018

@ostrolucky this behaviour was at the first (light) profiler design with symfony <=2.7

@BoShurik
Copy link
Contributor Author

BoShurik commented Jul 3, 2018

Before:

ajax-before

After:

ajax-after

@stof
Copy link
Member

stof commented Jul 3, 2018

The past change was done in #17457, based on discussion in #16831

@stof
Copy link
Member

stof commented Jul 3, 2018

btw, your GIF shows that you are reintroducing the behavior which was asked for removal: having to scroll to be able to see the latest requests.

@BoShurik
Copy link
Contributor Author

BoShurik commented Jul 3, 2018

@stof missed that one. Is this the only reason?

What about this behavior:

ajax-after-2

@ostrolucky
Copy link
Contributor

I think that would be best. It mimics behaviour of browser network inspectors

@fabpot
Copy link
Member

fabpot commented Aug 2, 2018

Thank you @BoShurik.

@fabpot fabpot merged commit 45d4559 into symfony:master Aug 2, 2018
fabpot added a commit that referenced this pull request Aug 2, 2018
… of the list (BoShurik)

This PR was squashed before being merged into the 4.2-dev branch (closes #27763).

Discussion
----------

[WebProfilerBundle] Append new ajax request to the end of the list

Append new ajax request to the end of the list instead of adding it to the beginning

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

Didn't find why this behavior was changed with web profiler design.
In current version it is hard to click to the latest ajax request.

Commits
-------

45d4559 [WebProfilerBundle] Append new ajax request to the end of the list
@@ -177,7 +177,10 @@
}, 100);

row.className = 'sf-ajax-request sf-ajax-request-loading';
tbody.insertBefore(row, tbody.firstChild);
tbody.insertBefore(row, null);
Copy link
Member

Choose a reason for hiding this comment

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

isn't that tbody.appendChild(row) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stof oh, missed that one. Is it worth a new PR?

@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
This was referenced Nov 3, 2018
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.

8 participants