Page MenuHomePhabricator

API - List of created event registrations
Closed, ResolvedPublic

Description

As a Dev I want to create the API to list all the event registration of an organizer

Acceptance criteria:

This API must return the needed data to list all the organizer's event registrations.

Needed data: it must be a list of event registrations with the fields below:

  • Event ID
  • Event name

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptMar 11 2022, 8:38 PM

Discussed that we won't estimate this since all subtasks are estimated

Change 776357 had a related patch set uploaded (by JCarvalho; author: JCarvalho):

[mediawiki/extensions/CampaignEvents@master] List all events by organizer or participant

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

Change 776357 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] List all events by organizer or participant

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

Adding these notes here for clarification for anyone who might be looking at this ticket and its subtasks, because there are two separate API calls to get the data:

Needed data:
from /campaignevents/v0/organizer/<user_name>/event_registration:

Event name
Event Id

then using that event id, can bring back each event with the following fields (which include all of the Needed data from this ticket, except Number of Participants):

/campaignevents/v0/event_registration/{id}

id
name
event_page
chat_url
tracking_tool_name
tracking_tool_url
status
start_time
end_time
type
online_meeting - bool, whether the event is online
physical_meeting - bool, whether the event is physical
meeting_url
meeting_country
meeting_address

Number of participants is listed in the need Needed data list for this ticket, but is not being returned from either of the API calls I listed in the above comment. Can we 1. add that data to the returned json payload or 2, remove it from the acceptance criteria of this ticket if it is no longer needed from these two endpoints? @cmelo @Daimona @ifried

Number of participants is listed in the need Needed data list for this ticket, but is not being returned from either of the API calls I listed in the above comment. Can we 1. add that data to the returned json payload or 2, remove it from the acceptance criteria of this ticket if it is no longer needed from these two endpoints? @cmelo @Daimona @ifried

Thanks for pointing this out. We decided not to include that information but didn't update the task. I'll do that now.

There is nothing user-facing here, so I'm marking this as Done.