Skip to content

. Add POST /api/v1/admin/courses/:id/archive endpoint #358

Description

@DeFiVC

What: Add an endpoint that archives a course, removing it from public listings while preserving data.

Why: Courses may become outdated or irrelevant but shouldn't be deleted (users have enrollments and credentials). Archiving hides the course while keeping historical data.

Scope: Add route that sets isActive = false and archivedAt = now(). Archived courses don't appear in listings but enrolled users can still access them. Add archivedAt column to courses table.

Acceptance criteria:

  • Archived course is hidden from public listings
  • Enrolled users can still access the course
  • Archive action is logged in audit logs
  • Course data is preserved

Technical context: src/modules/courses/course.service.ts — course operations. src/database/schema.ts:50 — isActive column.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions