Page MenuHomePhabricator

[IMPLEMENTATION] Front end: (no js), Allow participants to edit their answers on RegisterForEvent/{eventID}
Closed, ResolvedPublic3 Estimated Story Points

Description

Acceptance criteria

Scenario: Participants wants to change their answers

Given a Participant goes to the event registration page
And the Participant is already registered
Then the participant will be able to see all event questions and the answers the participant provided when registering
And the participant should be able to edit the answers by updating them and clicking on "Edit Registration"

Design

https://www.figma.com/file/lJUO73TtMpoyn30zm1qFq7/Campaigns-registration-V2?type=design&node-id=632%3A31380&t=ex0RfBSGy4qirzoT-1

External dependencies
Other dependencies

OBS: We may want to change the name of the special page now that is not only Registering the participant, but this should be done in another patch

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptMay 17 2023, 12:16 PM
cmelo renamed this task from [IMPLEMENTATION] Front end: (no js), change CancelEventRegistration special page to add Event Questions there so participants can edit it to [IMPLEMENTATION] Front end: (no js), Allow participants to edit their event registration on RegisterForEvent/{eventID}.May 19 2023, 7:22 PM
cmelo renamed this task from [IMPLEMENTATION] Front end: (no js), Allow participants to edit their event registration on RegisterForEvent/{eventID} to [IMPLEMENTATION] Front end: (no js), Allow participants to edit their answers on RegisterForEvent/{eventID}.
cmelo updated the task description. (Show Details)
MHorsey-WMF set the point value for this task to 3.

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

[mediawiki/extensions/CampaignEvents@master] SpecialRegisterForEvent: Make it possible to edit answers

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

Change 933505 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] SpecialRegisterForEvent: Make it possible to edit answers

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

โœ… Then the participant will be able to see all event questions and the answers the participant provided when registering
โœ… And the participant should be able to edit the answers by updating them and clicking on "Edit Registration"

@Daimona, I think this data in the affiliate free text field should be deleted on save of another option.
To reproduce:
Select affiliate, type something in the text field, save
Select another answer that removes the free text field (Chapter, User group, etc), save
Select affiliate again, the former answer is still in the free text field. I think that data should be erased on save like any other non selected data would be erased on save. Thoughts?

Screen Recording 2023-07-03 at 1.21.31 PM.gif (1ร—2 px, 2 MB)

(Note though that it does correctly delete that field when canceling registration and then re-registering)

@Daimona, I think this data in the affiliate free text field should be deleted on save of another option.
To reproduce:
Select affiliate, type something in the text field, save
Select another answer that removes the free text field (Chapter, User group, etc), save
Select affiliate again, the former answer is still in the free text field. I think that data should be erased on save like any other non selected data would be erased on save. Thoughts?

The data is actually removed from the DB, but it remains in the form until you close/refresh the page. This seems to be a builtin behaviour in MW core, and I'm not sure how to fix that, but maybe it could be considered a feature?

@Daimona, I think this data in the affiliate free text field should be deleted on save of another option.
To reproduce:
Select affiliate, type something in the text field, save
Select another answer that removes the free text field (Chapter, User group, etc), save
Select affiliate again, the former answer is still in the free text field. I think that data should be erased on save like any other non selected data would be erased on save. Thoughts?

The data is actually removed from the DB, but it remains in the form until you close/refresh the page. This seems to be a builtin behaviour in MW core, and I'm not sure how to fix that, but maybe it could be considered a feature?

Ah yes, as long as it is removed from the DB then this is a feature! AC is met, moving to product sign off.

ifried subscribed.

This looks good, as shown in QA notes. I'm marking this as Done.