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

Make ProgressBar::setMaxSteps public#26449

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:masterfromostrolucky:patch-14
Mar 19, 2018

Conversation

@ostrolucky
Copy link
Contributor

@ostroluckyostrolucky commentedMar 7, 2018
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#24100
LicenseMIT
Doc PR-

This is useful in cases when target of tracking changes its size during progress advancement. My exact use case is showing progress of file upload for file which is still being downloading.

@Destroy666x
Copy link

A test for the described use case would be nice. Also a test for setting the value for a progress bar that didn't have max steps earlier.

@ostrolucky
Copy link
ContributorAuthor

This is simple setter and is tested by proxy in existing integration tests. Will write test if required by maintainers.

@Simperfit
Copy link
Contributor

If you change from private to public, I think a test is needed.

@ostrolucky
Copy link
ContributorAuthor

test added

@nicolas-grekasnicolas-grekas added this to the4.1 milestoneMar 12, 2018
privatefunctionsetMaxSteps(int$max)
publicfunctionsetMaxSteps(int$max)
{
$this->format =null;
Copy link
Member

@nicolas-grekasnicolas-grekasMar 12, 2018
edited
Loading

Choose a reason for hiding this comment

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

is this a bug fix? or a behavioral BC break?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Bug fix. Wasn't issue before though, because this method was being called on the start only. Please note that format explicitly set by user is saved in different property.

Choose a reason for hiding this comment

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

got it
what about moving the method up with other public ones?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

will do

This is useful in cases when target of trackingchanges its size during progress advancement.
@fabpot
Copy link
Member

Thank you@ostrolucky.

@fabpotfabpot merged commit2b3c37a intosymfony:masterMar 19, 2018
fabpot added a commit that referenced this pull requestMar 19, 2018
This PR was merged into the 4.1-dev branch.Discussion----------Make ProgressBar::setMaxSteps public| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#24100| License       | MIT| Doc PR        | -This is useful in cases when target of tracking changes its size during progress advancement. My exact use case is showing progress of file upload for file which is still being downloading.Commits-------2b3c37a Make ProgressBar::setMaxSteps public
@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

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@Destroy666xDestroy666xDestroy666x approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

6 participants

@ostrolucky@Destroy666x@Simperfit@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp