Problem/Motivation
The DX of the Registrant::getWaitlist() and Registrant::setWaitlist() methods is poor. The documentation mentions that an integer value should be passed, but in fact a string value "0" indicates that a registrant is not on the waitlist, and "1" indicates they are on the waitlist.
Proposed resolution
Let's use a boolean value.
API changes
This changes the types of these methods. We should throw deprecation warnings in 2.0.x, and enforce the boolean type in 3.0.x.
Issue fork recurring_events-3542050
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
muriqui commentedComment #6
joshf commentedI've tested this in a vanilla D10.5 install and the waitlist features function as expected.
Comment #9
pfrenssenThanks a lot for working on this! Merged both in 2.0.x and 3.0.x.
Comment #11
pfrenssen