Skip to content

Update UPGRADE-3.0 with Voter::voteOnAttribute() #18376

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

Closed
wants to merge 1 commit into from

Conversation

eriwin
Copy link

@eriwin eriwin commented Mar 31, 2016

Q A
Branch? 3.0
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? n/a
Fixed tickets
License MIT
Doc PR

The instructions show that AbstractVoter::isGranted() has been replaced by AbstractVoter::voteOnAttribute(). Since AbstractVoter is removed it should be Voter::voteOnAttribute()

Instructions showed that `AbstractVoter::isGranted()` had been replaced by `AbstractVoter::voteOnAttribute()`. Since AbstractVoter is removed it should be Voter::voteOnAttribute()
@xabbuh
Copy link
Member

xabbuh commented Mar 31, 2016

It looks like the initial change was done in #16035 which was accidentally merged in the 3.0 branch instead of 2.8. So I think the best idea is to backport #16035 to the 2.8 branch and then apply this fix there.

@eriwin
Copy link
Author

eriwin commented Apr 5, 2016

Ok I will try to do that next week. Currently I don't have much time.

@eriwin
Copy link
Author

eriwin commented May 4, 2016

@xabbuh I finally have time. I'm not sure how to do this 'backport #16035 to the 2.8 branch'. Can you help me with that?

@eriwin
Copy link
Author

eriwin commented May 17, 2016

ping @xabbuh

@xabbuh
Copy link
Member

xabbuh commented May 17, 2016

If the Symfony remote name is upstream on your local machine, you should be able to do something like this when you are on your patch-1 branch:

$ git fetch upstream
$ git cherry-pick 437398d6d03c86552777fdb8ed97c0f9c6cecbd5

@xabbuh
Copy link
Member

xabbuh commented May 17, 2016

I just noticed that you might run into conflicts when doing so. So maybe it's easier to simply copy the missing text to your PR instead.

@eriwin
Copy link
Author

eriwin commented May 30, 2016

@xabbuh I checked the PR but I don't see any missing text? The text in my PR seems to match https://github.com/symfony/symfony/pull/16035/files#diff-0901ceb76939b17cd920bc69aa52d21fR728

@xabbuh
Copy link
Member

xabbuh commented May 31, 2016

@eriwin We have some inconsistencies across the different branches. I opened #18927 and #18928 which should synchronise them again.

@eriwin
Copy link
Author

eriwin commented Jun 1, 2016

@xabbuh Thank you. I think I can close this PR?

@xabbuh
Copy link
Member

xabbuh commented Jun 1, 2016

@eriwin Sorry, I sadly didn't find a way to keep your contribution. :( Though thank you very much for pointing us to these inconcistencies in our upgrade instructions. It's much appreciated!

@xabbuh xabbuh closed this Jun 1, 2016
@sstok
Copy link
Contributor

sstok commented Jun 1, 2016

@xabbuh for the future, you can change the author of a commit using the --author option 👍
http://stackoverflow.com/questions/3042437/change-commit-author-at-one-specific-commit

@eriwin eriwin deleted the patch-1 branch June 1, 2016 14:41
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.

4 participants