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

[Messenger] Fix DataCollector template#30078

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

Conversation

@ottaviano
Copy link
Contributor

QA
Branch?4.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets~
LicenseMIT
Doc PR~

It's for adding a closing DIV tag on L96 (+ re-indent the HTML code)

Copy link

@KronhyxKronhyx left a comment

Choose a reason for hiding this comment

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

I have doubts

<divclass="tab">
{%setmessages=collector.messages %}
{%setexceptionsCount=collector.exceptionsCount %}
<h3class="tab-title">All<spanclass="badge {{exceptionsCount?exceptionsCount==messages|length?'status-error':'status-some-errors' }}">{{messages|length }}</span></h3>

Choose a reason for hiding this comment

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

Taking advantage of the fact that you are refactoring why you do not use a strict comparison?

Suggested change
<h3class="tab-title">All<spanclass="badge {{exceptionsCount?exceptionsCount==messages|length?'status-error':'status-some-errors' }}">{{messages|length }}</span></h3>
<h3class="tab-title">All<spanclass="badge {{exceptionsCount?exceptionsCount ===messages|length?'status-error':'status-some-errors' }}">{{messages|length }}</span></h3>

Copy link
Member

Choose a reason for hiding this comment

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

Twig doesn't have a=== operator.

ottaviano, fancyweb, and Kronhyx reacted with thumbs up emoji

Choose a reason for hiding this comment

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

haha ... ups ... I missed it ... hehe

Kronhyx reacted with laugh emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

But it has:

exceptionsCount is same as (messages|length)

No sure it worth using it here anyway.

@nicolas-grekasnicolas-grekas added this to the4.2 milestoneFeb 7, 2019
@nicolas-grekas
Copy link
Member

Thank you@ottaviano.

@nicolas-grekasnicolas-grekas merged commit146ae74 intosymfony:4.2Feb 7, 2019
nicolas-grekas added a commit that referenced this pull requestFeb 7, 2019
This PR was merged into the 4.2 branch.Discussion----------[Messenger] Fix DataCollector template| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | ~| License       | MIT| Doc PR        | ~It's for adding a closing DIV tag on L96 (+ re-indent the HTML code)Commits-------146ae74 [Messenger] Fix DataCollector template
@fabpotfabpot mentioned this pull requestMar 3, 2019
@ottavianoottaviano deleted the fix-messenger-data-collector-template branchMarch 4, 2019 22:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh approved these changes

+3 more reviewers

@stloydstloydstloyd left review comments

@ro0NLro0NLro0NL approved these changes

@KronhyxKronhyxKronhyx approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

7 participants

@ottaviano@nicolas-grekas@stloyd@ro0NL@xabbuh@Kronhyx@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp