AC:
The API to enable event registration must handle the new country code parameter
The API to edit event registration must handle the new country code parameter
The API to get event details must handle the new country code
Description
Details
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Update API endpoints to accept country code instead of country | mediawiki/extensions/CampaignEvents | master | +58 -9 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Daimona | T393967 [EPIC] Country of event | |||
| Resolved | MHorsey-WMF | T397276 Update APIs to handle the new country code field | |||
| Resolved | Daimona | T397867 Update entity layer to handle the new country schema |
Event Timeline
Change #1169237 had a related patch set uploaded (by Mhorsey; author: Mhorsey):
[mediawiki/extensions/CampaignEvents@master] Update API endpoints to accept country code instead of country
Change #1168205 had a related patch set uploaded (by Mhorsey; author: Mhorsey):
[mediawiki/extensions/CampaignEvents@master] Modifications to UpdateCountriesScript
Change #1169237 merged by jenkins-bot:
[mediawiki/extensions/CampaignEvents@master] Update API endpoints to accept country code instead of country
AC:
โ
The API to enable event registration must handle the new country code parameter
QA Note: nothing to show here, but API accepts new country code parameter, "meeting_country_code": "AW", for example.
And also displays error if country code is not present:
{
"errorKey": "rawmessage",
"messageTranslations": {
"en": "The country code is required."
},
"httpCode": 400,
"httpReason": "Bad Request"
}โ
The API to edit event registration must handle the new country code parameter
QA Note: nothing to show here, but API accepts new country code parameter, "meeting_country_code": "AW", for example.
โ The API to get event details must handle the new country code
{
"id": 953,
"name": "CountryDropdown",
"event_page": "Event:CountryDropdown",
"event_page_wiki": "my_wiki",
"status": "open",
"timezone": "+00:00",
"start_time": "20250806154600",
"end_time": "20300830154600",
"types": [
"media-upload-event"
],
"wikis": [],
"topics": [],
"tracking_tools": [],
"online_meeting": true,
"inperson_meeting": true,
"meeting_url": null,
"meeting_country": null,
"meeting_country_code": "AW",
"meeting_address": "",
"chat_url": null,
"is_test_event": false,
"questions": []
}All AC is met here and error states are being handled in the API. Sending this to product sign off.