Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow admin/teacher to delete a module #29

Open
amellie opened this issue Jul 12, 2022 · 0 comments
Open

Allow admin/teacher to delete a module #29

amellie opened this issue Jul 12, 2022 · 0 comments

Comments

@amellie
Copy link
Collaborator

amellie commented Jul 12, 2022

Dependency

Depends on #21 and #27

Story

As a Teacher or an Admin
I Want to delete an existing module
So That I can keep the modules up to date

Acceptance Criteria

  • The delete capability should only be accessible by a teacher/admin
  • Deletion can be done from the module list page created in Allow a teacher/admin to see the list of modules with controls #21, by clicking the Delete button. The module list page should be updated to allow this control
  • When a module is deleted, ALL of its associated lessons and submissions should be deleted. In the database level, deleting a module should result in the automatic deletion of the lessons AND submissions. This can be done if you set DELETE CASCADE on the modules table as explained here
  • The lesson documents and submission documents associated with the module should be permanently deleted from the server as what's done in Allow a teacher/admin to delete a lesson #30
  • Ensure that users can confirm Yes/No if they REALLY want to delete the module (after clicking the Delete button). Please also mention that deleting this module will result in the deletion of all of its associated lessons and submissions and the action cannot be reversed
  • Upon deletion, the user should be redirected to the current module list page with a message "Module has been deleted" (if successful) or show an error message if unsuccessful
@amellie amellie changed the title Allow admin/teacher to edit or delete a module Allow admin/teacher to delete a module Jul 12, 2022
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

No branches or pull requests

1 participant