Skip to content

[WebSoc] Provide indication of cancelled courses #168

@ecxyzzy

Description

@ecxyzzy

Currently, WebSoc sections that have been cancelled have no explicit indication thereto in the section response, except through the section comment. We already have a generated column whose value is informed by the section comment for filtering purposes. It would be trivial to add this flag to the section response; the issue is how to convey this in the response.

The naive solution is of course to add an isCancelled field to the section response. However, given that sections retain their pre-cancellation status (sample query: https://anteaterapi.com/v2/rest/websoc?year=2025&quarter=Spring&department=COMPSCI&sectionCodes=34671) which is now semantically meaningless, @Awesome-E proposed that cancelled sections should simply have their status set to "Cancelled" or similar.

I agree that replacing the status would make the most sense, but it would also result in loss of data as the original status is no longer conveyed. However, it can be argued that the original status is no longer relevant once a section is cancelled. Would love to hear your opinions on the matter.

cc: @icssc/api, @icssc/antalmanac, @icssc/peterportal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions