Page MenuHomePhabricator

Create a backend for adding questions to an event
Closed, ResolvedPublic

Description

Acceptance criteria

  • As an organizer
    • When I enable an event registration
    • All the available participant questions should be added to my event, for participants to answer
    • And this list of enabled questions should be persisted
  • As a participant
    • When I register for an event (via the dialog OR the special page)
    • I am shown the list of questions enabled for the event

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptJun 22 2023, 3:22 PM

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

[mediawiki/extensions/CampaignEvents@master] Create a backend for adding questions to an event

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

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

[mediawiki/extensions/CampaignEvents@master] SpecialRegisterForEvent: only show questions enabled for that event

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

Change 932331 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Create a backend for adding questions to an event

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

Change 932335 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] SpecialRegisterForEvent: only show questions enabled for that event

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

For this AC:

When I register for an event (via the dialog OR the special page)

noting that the dialog version is still in review, so it cannot be tested until T335809 is resolved.

For this AC:

When I register for an event (via the dialog OR the special page)

noting that the dialog version is still in review, so it cannot be tested until T335809 is resolved.

The relevant parts of T335809 were implemented, so this is ready for QA now.

As an organizer
When I enable or edit an event registration
All the available participant questions should be added to my event, for participants to answer
โœ… And this list of enabled questions should be persisted

โœ… Enabling event registration adds participant questions to the event:

Screen Recording 2023-07-13 at 3.26.23 PM.gif (1ร—3 px, 1 MB)

โœ… participant questions persist when editing an event:

Screen Recording 2023-07-13 at 3.34.51 PM.gif (1ร—3 px, 2 MB)


As a participant
When I register for an event (via the dialog OR the special page)
โœ… I am shown the list of questions enabled for the event

โœ… Event dialog:

Screenshot 2023-07-13 at 3.37.45 PM.png (1ร—1 px, 421 KB)

โœ… Special:RegisterForEvent:

Screenshot 2023-07-13 at 3.38.36 PM.png (1ร—1 px, 385 KB)


@Daimona For this AC:
As an organizer
When I enable or edit an event registration
All the available participant questions should be added to my event, for participants to answer

If I edit an event that previously did not have participant questions on it, when editing an event, the participant questions are not added to the event:

edit event registration.gif (1ร—3 px, 3 MB)

Should the AC be When I enable an event registration or edit an event registration that has already had participant questions added instead of When I enable or edit an event registration or should actually be as is written that if any event is edited, then participant questions should be added to the event?

@Daimona For this AC:
As an organizer
When I enable or edit an event registration
All the available participant questions should be added to my event, for participants to answer

If I edit an event that previously did not have participant questions on it, when editing an event, the participant questions are not added to the event:

Should the AC be When I enable an event registration or edit an event registration that has already had participant questions added instead of When I enable or edit an event registration or should actually be as is written that if any event is edited, then participant questions should be added to the event?

Good point. We really only add questions to new events. We might do that when editing, but that might potentially be confusing. I think this isn't something for which we had precise requirements. In practice, the current code results in no questions being added to events created before the participant questions feature was enabled, which I think is less surprising. I will update the AC.

@Daimona For this AC:
As an organizer
When I enable or edit an event registration
All the available participant questions should be added to my event, for participants to answer

If I edit an event that previously did not have participant questions on it, when editing an event, the participant questions are not added to the event:

Should the AC be When I enable an event registration or edit an event registration that has already had participant questions added instead of When I enable or edit an event registration or should actually be as is written that if any event is edited, then participant questions should be added to the event?

Good point. We really only add questions to new events. We might do that when editing, but that might potentially be confusing. I think this isn't something for which we had precise requirements. In practice, the current code results in no questions being added to events created before the participant questions feature was enabled, which I think is less surprising. I will update the AC.

Okay sounds good. With that update, all AC is met and sending this to product sign off.

ifried subscribed.

This has been implemented, as per the QA notes, so I'm marking this as Done.