Page MenuHomePhabricator

API backend for participant questions
Closed, ResolvedPublic

Description

Acceptance criteria
  • As a user
    • Given I have registered
    • And I have answered participant questions for the first time
    • Those answers should be submitted to an API to be saved
  • As a user
    • Given I have registered
    • And I have answered participant questions
    • And I have edited their answers
    • Those answers should be submitted to an API to be updated
  • As a user
    • Given I have registered
    • And I have answered participant questions
    • And I have revoked my registration
    • My answers should be submitted to an API to be deleted
  • The "register for event" endpoint documentation should be documented
Other dependencies
  • The ability to edit answers is dependent on T336853. If this task is resolved before that one, then the requirement for editing is that internally, the answers you gave when registering are left untouched.
  • The internal backend will be developed in T339259, and it can then be used here

Event Timeline

Change 932448 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Create backend for storing participant answers

https://gerrit.wikimedia.org/r/932448

Change 932448 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Create backend for storing participant answers

https://gerrit.wikimedia.org/r/932448

Change 934426 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Add support for participant questions to the API

https://gerrit.wikimedia.org/r/934426

Change 934426 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add support for participant questions to the API

https://gerrit.wikimedia.org/r/934426

As a user
Given I have registered
And I have answered participant questions for the first time
โœ… Those answers should be submitted to an API to be saved

Screenshot 2023-07-11 at 11.31.03 AM.png (1ร—1 px, 257 KB)

and those answers are correctly reflected in the GUI as well.


As a user
Given I have registered
And I have answered participant questions
And I have edited their answers
โœ… Those answers should be submitted to an API to be updated

Screen Recording 2023-07-11 at 11.35.44 AM.gif (2ร—3 px, 1 MB)

Also correctly updates the affiliate free text field.

Screenshot 2023-07-11 at 4.31.43 PM.png (1ร—2 px, 630 KB)


Given I have registered
And I have answered participant questions
And I have revoked my registration
โœ… My answers should be submitted to an API to be deleted

Screen Recording 2023-07-11 at 11.43.13 AM.gif (2ร—3 px, 891 KB)


This ticket looks good. @Daimona , can we change the error message "You need a central user account in order to register for events." to You are not allowed to register for events if the user is not logged in but attempts to register though?

Screenshot 2023-07-11 at 10.51.42 AM.png (1ร—1 px, 199 KB)

Change 937191 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Update error message when GETting questions if user is not global

https://gerrit.wikimedia.org/r/937191

Change 937191 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Update error message when GETting registration info if user is not global

https://gerrit.wikimedia.org/r/937191

Error message updated.

โœ… Error message successfully updated in case of user logged out user attempting to register for an event.

Screenshot 2023-07-16 at 12.34.07 PM.png (1ร—1 px, 211 KB)


all AC met in T339257#9007064, moving this to product sign off.