Page MenuHomePhabricator

Update APIs to handle the new country code field
Closed, ResolvedPublic

Description

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

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

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

Change #1168205 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/CampaignEvents@master] Modifications to UpdateCountriesScript

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

Change #1169237 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Update API endpoints to accept country code instead of country

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

Daimona removed a project: Patch-For-Review.

Nothing left to review here, assuming this is done. I've updated the documentation.

vaughnwalters subscribed.

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.