Deleted groups appearing in courses list
Marilyn was working with a faculty member on creating a group called "poets together".
Several private groups were created and have since been deleted but they still appear in the courses list. See here: https://commons.gc.cuny.edu/courses/?filters%5Bkeyword%5D=poets&order-by=semester
The only "poets together" group that should exist is the public group with working link.
Can the listings for the other, private "poets together" groups be removed/deleted from the courses tab?
#1 Updated by Boone Gorges almost 2 years ago
- Category name set to Courses
- Status changed from New to Assigned
- Assignee set to Boone Gorges
- Target version set to 1.17.1
I'm going to pin this to the 1.17.1 milestone, so that I can make this process automated. Namely, when a group or site is deleted, if it's associated with a Course, and the Course has no other groups or sites associated with it, trash the Course as well.
#6 Updated by Boone Gorges almost 2 years ago
- Status changed from Assigned to Staged for Production Release
I've implemented this in https://github.com/cuny-academic-commons/cac-courses/commit/a26961075cc2aca7bf43efd11ac6e926ad90cd95. When you delete a Site that's associated with a Course, we check to see whether the Course has any other associated items (Groups, or other Sites). If no, the Course is trashed. If yes, the deleted Site is removed from the association with the Course. Mutatis mutandis for Groups.