[#13498] Remove "archive courses" back-end logic#13533
Merged
mingyuancode merged 5 commits intoTEAMMATES:chore/remove-archive-course-featurefrom Feb 12, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Removes the remaining back-end pieces of the “archive courses” feature (endpoint, request/output types, datastore persistence/logic, and related constants), aligning with the staged removal plan in #13498 after front-end disconnection.
Changes:
- Deleted the course-archival WebAPI endpoint (
ArchiveCourseAction) and its request/output DTOs. - Removed datastore-level
isArchivedhandling from theInstructorentity and instructor retrieval/update logic. - Updated affected WebAPI flows and tests to use the simplified instructor retrieval API and removed archived course status handling.
Reviewed changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/test/java/teammates/ui/webapi/GetActionClassesActionTest.java | Removes ArchiveCourseAction from the expected action class list. |
| src/test/java/teammates/ui/webapi/BinCourseActionTest.java | Updates instructor retrieval call signature in test. |
| src/test/java/teammates/storage/api/InstructorsDbTest.java | Updates tests for getInstructorsForGoogleId new signature. |
| src/test/java/teammates/sqlui/webapi/GetActionClassesActionTest.java | Removes ArchiveCourseAction import and expectation. |
| src/test/java/teammates/common/datatransfer/attributes/InstructorAttributesTest.java | Updates datastore Instructor constructor usage after removing isArchived. |
| src/main/java/teammates/ui/webapi/GetFeedbackSessionsAction.java | Uses simplified instructor retrieval (no archived filtering). |
| src/main/java/teammates/ui/webapi/GetCoursesAction.java | Removes archived course status branch and updates instructor retrieval accordingly. |
| src/main/java/teammates/ui/webapi/ArchiveCourseAction.java | Deletes the archive-course endpoint implementation. |
| src/main/java/teammates/ui/webapi/ActionFactory.java | Unmaps the course archive endpoint route. |
| src/main/java/teammates/ui/request/CourseArchiveRequest.java | Deletes request body type for course archival. |
| src/main/java/teammates/ui/output/CourseArchiveData.java | Deletes response DTO for course archival. |
| src/main/java/teammates/ui/constants/ResourceEndpoints.java | Removes COURSE_ARCHIVE endpoint enum entry. |
| src/main/java/teammates/storage/entity/Instructor.java | Removes datastore isArchived field and related accessors/constructor param. |
| src/main/java/teammates/storage/api/InstructorsDb.java | Removes archived filtering/support from instructor queries and updates. |
| src/main/java/teammates/sqllogic/core/FeedbackSessionsLogic.java | Updates Javadoc to remove archived-course omission mention. |
| src/main/java/teammates/sqllogic/api/Logic.java | Updates Javadoc to remove archived-course omission mention. |
| src/main/java/teammates/logic/core/InstructorsLogic.java | Removes archival setter and consolidates instructor retrieval API. |
| src/main/java/teammates/logic/core/FeedbackSessionsLogic.java | Updates Javadoc to remove archived-course omission mention. |
| src/main/java/teammates/logic/core/AccountsLogic.java | Updates instructor retrieval call signature. |
| src/main/java/teammates/logic/api/Logic.java | Removes archived-aware instructor retrieval overload and archive setter API. |
| src/main/java/teammates/common/util/Const.java | Removes archived course status and course archive URI constants. |
| src/main/java/teammates/common/datatransfer/attributes/InstructorAttributes.java | Removes isArchived from datastore instructor attributes and update options. |
| src/client/java/teammates/client/scripts/DataMigrationForInstructorNullIsArchivedField.java | Deletes obsolete migration script for isArchived null handling. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9043fd6
into
TEAMMATES:chore/remove-archive-course-feature
7 checks passed
mingyuancode
pushed a commit
that referenced
this pull request
Feb 12, 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.
Part of #13498
Outline of Solution
Fork #PR for CI proof.
Front-end Demo
TEAMMATES_PR_FRONTEND_DEMO.mp4