Do we need this, or do we use the API for register/unregister?
TO DISCUSS AS A TEAM.
On our last engineering meeting, we decide that we will use the register/unregister API.
Acceptance criteria:
Add a new parameter to the register/unregister [[ https://www.mediawiki.org/wiki/Extension:CampaignEvents/Api#Register_as_a_participant | API ]] , something like "private", if it is true set the registration as private, if false set it as public, this parameter can be optional and if it is null we do not change the **cep_private** on **ce_participants**.
Given a participant changes its registration from private to public
Then we must update the "cep_private" to **false** on "ce_participants"
Given a participant changes its registration from public to private
Then we must update the "cep_private" to **true** on "ce_participants"
Given the register/unregister API is called and the private parameter is not passed
IF the participant is not registered
Then we should set **cep_private** as false
IF the participant is registered
Then we should not update the **cep_private** column