Draft
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Hemavathi15sg <224925058+Hemavathi15sg@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add download feature for CourseApplication
Add CSV download for courses and registrations
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the ability to download course and registration data as CSV files, triggered directly from the relevant UI sections.
Backend
DownloadsController(new) — two endpoints:GET /api/downloads/courses— all courses viaICourseService.SearchCoursesAsync(null, null)GET /api/downloads/registrations— all registrations via newGetAllRegistrationsAsync()IRegistrationService/RegistrationService— addedGetAllRegistrationsAsync()backed by the existingGetRegistrationsWithFiltersAsync(null, null, null)to bypass the 100-row pagination cap=,+,-,@tab-prefixed)Frontend
downloadCoursesCsv()/downloadRegistrationsCsv()— fetch blob, invoke browser download via a temporary anchor; errors surface through the existingshowErrorModalDate.getUTC*()to match backend'sDateTime.UtcNowconventionTests
Nine unit tests added for
DownloadsControllerusing hand-written fakes (consistent with existing test style), covering: empty result sets, data rows, correct content type, comma quoting, double-quote escaping, and formula injection neutralisation.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.