Skip to content

Only use active classes for some endpoints#294

Merged
Carifio24 merged 11 commits into
cosmicds:mainfrom
Carifio24:active-classes
Jun 8, 2026
Merged

Only use active classes for some endpoints#294
Carifio24 merged 11 commits into
cosmicds:mainfrom
Carifio24:active-classes

Conversation

@Carifio24

Copy link
Copy Markdown
Member

This PR updates adds in the definition of ActiveClass. This corresponds to a SQL view which is defined in the database as all of the entries in the Class table where active = 1.

The main changes here where we use active classes:

  • The DELETE /classes/<identifier> endpoint now no longer actually deletes the class in the database, it only marks it as inactive
  • By default, the list of classes returned for students and educators only uses active classes

@Carifio24 Carifio24 linked an issue Jun 5, 2026 that may be closed by this pull request
@Carifio24 Carifio24 marked this pull request as ready for review June 8, 2026 16:35
@Carifio24 Carifio24 merged commit c3710e9 into cosmicds:main Jun 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't delete classes but mark them as inactive

1 participant