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

Headteachers and Parents must be able to manage students' absence appeals #9

Open
josepostiga opened this issue Jul 24, 2021 · 0 comments
Assignees
Labels
story New feature or request

Comments

@josepostiga
Copy link
Owner

josepostiga commented Jul 24, 2021

Scenario

As a Headteacher
I want to access a list of my classes' students' absences
So that I can manage them

As a Parent
I want to access a list of my student's absences
So that I can manage them

Description

When a teacher marks a student as absent from a lesson, the lesson_registry table gets a record of type ABSENT associated with that student.

The absences might be justified later on, by the students' parents. Parents must be able to access a list of their students' absences and insert an absence justification that, in turn, will be the object of a decision from that class Headteacher, deciding if to accept or reject it (with a reason for not accepting it), according to the school's internal guidelines.

When a Parent submits a justification, the Headteacher must receive an email notification, and, in turn, when the Headteacher decides on that, the Parent and the Student should also receive an email notification.

Besides that, Headteachers can change the decision, at any time, but needs to also insert a motive of change. A notification email should also be sent on this case.

Database and schema information

Create a new appeal table, which will hold a polymorphic relation to the original record to be appealed (to resolve to the relevant lesson_registry), a status enum (PENDING being the default, ACCEPTED or DECLINED) and the usual timestamps.

Create a new appeal_registry which will hold an appeal and user foreign keys, an action enum (PENDING being the default, ACCEPTED, DECLINED) and a description, to hold contextual information to the type of record created.

Additional requirements

No additional requirements.

@josepostiga josepostiga added the story New feature or request label Jul 24, 2021
@josepostiga josepostiga self-assigned this Jul 24, 2021
@josepostiga josepostiga changed the title Headteachers and Parents must be able to manage students' absences' appeals Headteachers and Parents must be able to manage students' absence appeals Jul 24, 2021
@josepostiga josepostiga changed the title Headteachers and Parents must be able to manage students' absence appeals Headteachers and Parents must be able to manage students' appeals Jul 24, 2021
@josepostiga josepostiga changed the title Headteachers and Parents must be able to manage students' appeals Headteachers and Parents must be able to manage students' absence absence appeals Jul 24, 2021
@josepostiga josepostiga changed the title Headteachers and Parents must be able to manage students' absence absence appeals Headteachers and Parents must be able to manage students' absence appeals Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
story New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant