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] Improve controller linking#25164

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:profiler/controller-class
Feb 7, 2018
Merged

[WebProfilerBundle] Improve controller linking#25164

fabpot merged 1 commit intosymfony:masterfromro0NL:profiler/controller-class
Feb 7, 2018

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedNov 26, 2017
edited
Loading

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

I propose to remove theController class entry from the request toolbar panel, IMHO it's confusing/useless compared to the linkedController entry above. They represent the same.

To preserve its value it's now used as title attribute instead, favored over controller file currently being used here. We can read that from the statusbar anyway :-)

Before: (hovering ontroller link)

image

After: (hovering ontroller link)

image

<ahref="{{ path('_profiler', {token:child.token }) }}">
{{ helper.set_handler(child.getcollector('request').controller) }}
</a>
{{ helper.set_handler(child.getcollector('request').controller) }}
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

While at it; removed a useless outer link, as the actual (inner) link comes fromset_handler.

@nicolas-grekas
Copy link
Member

For master, that's not a bug but an improvement.

@nicolas-grekasnicolas-grekas added this to the4.1 milestoneNov 27, 2017
@ro0NL
Copy link
ContributorAuthor

ro0NL commentedNov 27, 2017
edited
Loading

True, and i dont mind really. Just picked 3.3 so profiler templates stay in sync as much as possible. But im not sure that's a goal we should keep pursuing.

And of course, curious what others think of the change / branch target.

2nd commit is for 3.3; ill create a new PR if needed.

@nicolas-grekas
Copy link
Member

please rebase/retarget for master
a screenshot would be nice also :)

@ro0NLro0NL changed the base branch from3.3 tomasterFebruary 5, 2018 09:02
@ro0NL
Copy link
ContributorAuthor

@nicolas-grekas screenshots added in main post.

@fabpot
Copy link
Member

Thank you@ro0NL.

@fabpotfabpot merged commitf6c0dc6 intosymfony:masterFeb 7, 2018
fabpot added a commit that referenced this pull requestFeb 7, 2018
This PR was merged into the 4.1-dev branch.Discussion----------[WebProfilerBundle] Improve controller linking| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes/no| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->I propose to remove the `Controller class` entry from the request toolbar panel, IMHO it's confusing/useless compared to the linked `Controller` entry above. They represent the same.To preserve its value it's now used as title attribute instead, favored over controller file currently being used here. We can read that from the statusbar anyway :-)Before: (hovering ontroller link)![image](https://user-images.githubusercontent.com/1047696/35796142-ce6cdff4-0a5b-11e8-9fa3-91897516c9fc.png)After: (hovering ontroller link)![image](https://user-images.githubusercontent.com/1047696/35796237-2855e556-0a5c-11e8-8dca-853c3eabd2e9.png)Commits-------f6c0dc6 [WebProfilerBundle] Improve controller linking
fabpot added a commit that referenced this pull requestFeb 7, 2018
This PR was submitted for the 3.3 branch but it was merged into the 3.4 branch instead (closes#26051).Discussion----------[WebProfilerBundle] Fix sub request link| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes/no| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->Split from#25164before:```html<a href="/_profiler/395a5c">    <a href="/_profiler/open?file=symfony/src/Controller/MainController.php&amp;line=20#line20" title="symfony/src/Controller/MainController.php">MainController :: bar</a></a><small>(token = <a href="/_profiler/395a5c">395a5c</a>)</small>```after:```html<a href="/_profiler/open?file=symfony/src/Controller/MainController.php&amp;line=20#line20" title="symfony/src/Controller/MainController.php">MainController :: bar</a><small>(token = <a href="/_profiler/395a5c">395a5c</a>)</small>```Commits-------8f0e47f [WebProfilerBundle] Fix sub request link
@ro0NLro0NL deleted the profiler/controller-class branchFebruary 7, 2018 08:19
@fabpotfabpot mentioned this pull requestMay 7, 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.1

Development

Successfully merging this pull request may close these issues.

4 participants

@ro0NL@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp