Page MenuHomePhabricator

Dashboard Integration: Add tracking tools to all the relevant API endpoints
Closed, ResolvedPublic2 Estimated Story Points

Description

Acceptance criteria
  • When enabling or editing a registration via the API, it should be possible to connect a tracking tool
  • When retrieving details about a registration, it should return what, if any, tracking tools are connected to it
  • Documentation of the 3 endpoints should be updated

Note: this can only be tested locally until beta and prod are configured (T320258 and T320260).

Event Timeline

ifried renamed this task from Add tracking tools to all the relevant API endpoints to Dashboard Integration: Add tracking tools to all the relevant API endpoints.Nov 11 2022, 4:24 PM

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

[mediawiki/extensions/CampaignEvents@master] Add support for tracking tools to all the endpoints

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

Change 923298 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add support for tracking tools to all the endpoints

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

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

[mediawiki/extensions/CampaignEvents@master] Provide the correct tracking tools data to the API in Special:MyEvents

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

Change 931321 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Provide the correct tracking tools data to the API in Special:MyEvents

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

✅ When enabling or editing a registration via the API, it should be possible to connect a tracking tool
Enabling:

POST success.png (1×1 px, 266 KB)

Editing:

PUT - success.png (1×1 px, 322 KB)

✅ When retrieving details about a registration, it should return what, if any, tracking tools are connected to it

GET success.png (1×1 px, 286 KB)

✅ Documentation of the 3 endpoints should be updated


Also, some error messages are correctly displaying:
will not enable registration where organizers of event are not facilitators of course

will not enable registration where organizers of event are not facilitators of course.png (1×1 px, 327 KB)

Will not connect course to event if the course already has participants

Will not connect course to event if the course already has participants.png (1×1 px, 295 KB)

already connected to an event and it cannot be connected again

PUT - already conected to an event, and it cannot be connected again.png (1×1 px, 394 KB)