Steps to replicate the issue (include links if applicable):
- Create an event linked to a course on the P&E Dashboard
- Delete the event (which will also unsync the course)
- Restore the event manually with the following DB query: UPDATE campaign_events SET event_deleted_at=NULL where event_id=YOUR_EVENT_ID
- Go to Special:EditEventRegistration for this event
- Remove the tracking tool
- Submit
What happens?:
Form submission fails with the following error:
The course $COURSE_NAME is not connected to this event, and therefore it cannot be synchronized.
What should have happened instead?:
The "unsynced course" error should be ignored, and the course should be removed.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): master
Other information (browser name/version, screenshots, etc.):
While the reproduction steps described here require you to alter the data at the DB level, the course might potentially get unsynced through other means (e.g., some kind of failure on the dashboard side). In general, when a course is removed, it makes sense to ignore this error if the course is not currently linked with the event.
See T362365 for an instance of this problem in production (following manual DB intervention).
Similar to T358732, but for a slightly different scenario (course unsynced instead of deleted).