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 a teacher/admin to delete a lesson #30

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

Allow a teacher/admin to delete a lesson #30

amellie opened this issue Jul 12, 2022 · 0 comments

Comments

@amellie
Copy link
Collaborator

amellie commented Jul 12, 2022

Dependency

Depends on #27

Story

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

Acceptance Criteria

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