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

Backend Write-up: Attendance Rate Added into Schemas #22

Open
4 tasks done
izzyconner opened this issue Apr 3, 2024 · 1 comment
Open
4 tasks done

Backend Write-up: Attendance Rate Added into Schemas #22

izzyconner opened this issue Apr 3, 2024 · 1 comment
Assignees

Comments

@izzyconner
Copy link
Contributor

izzyconner commented Apr 3, 2024

Description

Determine the best way to store attendance rate for a user and add in any necessary fields to the database schemas. Write up the proposed method for attendance rate calculation, including calls and coalescing needed on the backend.

Attendance rate can be calculated for:

  • Shifts where reports were filed
  • Shifts where the associate didn't show up
  • Shifts where the associate was late/early

Attendance rates should be able to be calculated for a given associate:

  • Per week
  • Per month
  • Total

Conditions of Satisfaction

  • Any fields necessary to add into TimesheetEntry schema have been added to the Lucidchart schema diagram
  • Any fields necessary to add into TimesheetEntry schema have been added to the Dynamo schemas in the backend
  • Any fields necessary to add into TimesheetEntry schema have been added to the shared schemas
  • A one-page write-up is available to describe the proposed method for calculating various attendance rates
@neetidesai
Copy link
Contributor

neetidesai commented Apr 6, 2024

Don't have a ton to say so I'll put my writeup here.

I wanted to introduce attendance tracking with minimal backend changes. So, I propose adding an list of Attendance enums to the TimesheetEntry schema, which would be a list containing any of ABSENT, ON_TIME, LATE, or EARLY. Then, to find shifts where reports were filed, comments were left, etc. etc. you would filter shifts by 1.) If the attendance list exists and does not only contain ABSENT, and then 2.) If a report was filed, if the employee left late, came early, both, etc. etc. Let me know if I approached this the wrong way or more needs to be done! Link to the branch with the modified schemas here: https://github.com/Code-4-Community/breaktime/tree/22-attendance-rate-ND

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

2 participants