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

Feature/past day check #119

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

swissbyte
Copy link

I have added the possibility to also check the previous day. The "PastDayNotComplete" class also takes into account wheter the past day was a weekend or not. If so, the past friday will be checked instead of sunday.

I have also extended the endpoint /api/timesheet/remind with additional parameters to specify what needs to be checked.

Without adding anything, the behaviour will be the exact same as it was before. Just checking for todays work and also respecting the working hours.

To be able to remind a user during the day for the badness of not adding the hours yesterday, we must be able to not respect the working hours and remind him also during the day. Therefore i added the "respectWorkingHours" variable and also the parameters.

This is, how one can now trigger the endpoint:

This will remind him for todays and yesterdays hours without respecting the working hours
api/timesheet/remind?type=yesterday&type=today&respectWorkingHours=false

This will remind him for todays hours and also for yesterdays while respecting the working hours
api/timesheet/remind?type=yesterday&type=today

This will remind him for todays hours only while respecting the working hours
api/timesheet/remind?type=today

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

Successfully merging this pull request may close these issues.

1 participant