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

[Console] [DX] Fix command description/help display#26439

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

Closed

Conversation

@noniagriconomie
Copy link
Contributor

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#26376
LicenseMIT
Doc PRnone

Hi,

Here is a fix for the issue#26376

I only patch the text descriptor, should I do it for others?
(I do not think so as the main and default one is text)

Thanks

@noniagriconomienoniagriconomie changed the title[Console] Fix command description display[Console] [DX] Fix command description displayMar 7, 2018
@noniagriconomienoniagriconomie changed the title[Console] [DX] Fix command description display[Console] [DX] Fix command description/help displayMar 7, 2018
$this->writeText(''.$description);
$this->writeText("\n\n");
}

Copy link
ContributorAuthor

@noniagriconomienoniagriconomieMar 7, 2018
edited
Loading

Choose a reason for hiding this comment

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

should as well the$command->getProcessedHelp() return only the$command->getHelp() and not sometimes the$command->getDescription()? so description will be only on top and not at the bottom?
linehttps://github.com/symfony/symfony/pull/26439/files#diff-f21e3938d69281cd0815f081627d9c34R164

Copy link
Member

Choose a reason for hiding this comment

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

I think it should yes, it's weird thatgetProcessedHelp() can return the description., but I'm not sure it's fine to change it now. Instead, could we display theHelp section (callinggetProcessedHelp()) only ifgetHelp() is not null? or only ifgetProcessedHelp() !== getDescription()?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@chalasr ok, I will change the called method here

@chalasrchalasr self-requested a reviewMarch 7, 2018 10:45
@chalasrchalasr added this to the2.7 milestoneMar 7, 2018
@chalasr
Copy link
Member

@noniagriconomie For other descriptors, I also think they don't need to be updated. In fact, the TextDescriptor seems to be the only one that does not contain the description.

By the way, I must say that you're working on a part which is quite hard to update and not very "first-time-contribution friendly" (not contribution friendly at all in fact), and you just do it perfectly for now!
Congratz, welcome and thank you for contributing to Symfony :)

@noniagriconomie
Copy link
ContributorAuthor

noniagriconomie commentedMar 7, 2018
edited
Loading

@chalasr PR code updated accordingly
Ok for others command descriptors :)


if ($help =$command->getProcessedHelp()) {
$help =$command->getProcessedHelp();
if ($help !==$command->getDescription()) {
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$help && $help !== $description

Copy link
ContributorAuthor

@noniagriconomienoniagriconomieMar 8, 2018
edited
Loading

Choose a reason for hiding this comment

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

👍 change is done@chalasr

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

@noniagriconomie I love DX issues, so thanks a lot for contributing this one. And congrats on your first Symfony contribution!

@noniagriconomie
Copy link
ContributorAuthor

@javiereguiluz hope this help a lot of sf devs :)
regards

@fabpot
Copy link
Member

@noniagriconomie Thanks for the pull request. I don't think this qualifies as a bug. So, I'm going to merge it into master into 2.7.

@fabpot
Copy link
Member

Thank you@noniagriconomie.

@ogizanagiogizanagi mentioned this pull requestMar 11, 2018
chalasr added a commit that referenced this pull requestMar 12, 2018
This PR was merged into the 4.1-dev branch.Discussion----------[Console] Fix tests| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | N/A   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | N/AFix Console tests after#26439 merge.Commits-------c429fa0 [Console] Fix tests
@fabpotfabpot mentioned this pull requestMay 7, 2018
@noniagriconomienoniagriconomie deleted the ticket_26376 branchJune 5, 2018 07:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

5 participants

@noniagriconomie@chalasr@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp