Closed (fixed)
Project:
Voting API
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2017 at 23:22 UTC
Updated:
12 Mar 2025 at 06:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mroycroft commentedHere is the patch, and a test is included.
Comment #3
mroycroft commentedComment #4
jhedstromThis patch no longer applies to the latest code.
Comment #5
pifagor commented@jhedstrom
Please test. I changed patch, but I didn't test it
Comment #6
pifagor commentedComment #7
pifagor commentedComment #8
mmjvb commentedIgnore, my mistake
Comment #9
pifagor commentedPlease test patch
Comment #10
pifagor commentedComment #11
kevin.dutra commentedMinor reroll to address the patch failing to apply. (EOF newline issue in the permissions file)
Comment #12
rpayanmComment #13
tr commentedPatch in #11 still applies, and comes with a test so it can be tested!
I made only two minor changes to the patch. Specifically, in the test case, $modules should be protected and we don't need to use StringTranslationTrait or t(). Other than that everything looks good to me.
Comment #14
tr commentedRe-roll because #13 was using the old simpletest Trait instead of the new one. See the interdiff, it's only a change to one "use" statement.
Comment #15
tr commentedRe-rolled #14 against current HEAD. The only difference is in VoteAccessControlHandler.php, and the previous patch is old enough that a proper interdiff can't be made for that file.
Comment #16
tr commentedRearranged the switch statement to satisfy phpcs.
Comment #18
tr commentedStupid mistake - forgot the return.
Comment #20
tr commentedNot doing too well tonight - I keep missing little things. Let's see if I got it right this time:
Comment #21
Anonymous (not verified) commentedHello,
I have tested the patch from #20 and it is working for me.
Comment #22
igork96 commentedI gave it a view and can confirm it's working.
Comment #23
tr commentedRerolled the patch to add return type hints to the new test functions.
Comment #24
tr commentedComment #25
tr commentedI put #23 into an MR for the 4.0.x branch, so the testbot can test it.
Comment #27
tr commentedComment #29
tr commentedMerged.