Feat/course alternate names #269
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Addressing #172, adds an
aliasescolumn to thecourse_viewmaterialized view that finds courses with matching descriptions (which seems to be the most effective way to find courses under different names) and collects their course IDs as a string array.It applies to all course requests, in the case of no aliases it returns an empty array, otherwise, it returns a list of course IDs.
Disclaimer
There is an existing
same_ascolumn which does not seem to work consistently or provide a robust solution, so it seemed more straightforward to create a new column. We can leave it as is to avoid potentially breaking changes, but I'd recommend deprecating it.Related Issue
#172
Motivation and Context
This is useful information for PeterPortal/AntAlmanac to annotate course entries since UCI enjoys renaming and relabeling courses for some reason.
How Has This Been Tested?
In a locally run environment.
Types of changes
Checklist: