Skip to content

Conversation

@Angeluz-07
Copy link
Contributor

Fixes ioet/time-tracker-ui#504
Close #217

This PR should fix the following problem:
You already have a time entry that starts at 11:00:00.
Then, you want to create a time entry that starts at 9:00:00 and ends at 11:00:00.
You can't because "There is already a time entry in that range"
You have to explicitly set your new time entry to (9:00:00 - 10:59:00)

I excluded these cases from the validation that is made when creating/updating time-entries.

Check time_tracker_api/time_entries/time_entries_model.py lines 312, 313 for important changes. And tests/time_tracker_api/time_entries/time_entries_model_test.py line 216 for important unit test.

@ioet ioet deleted a comment from rene-enriquez-ct Oct 6, 2020
@enriquezrene enriquezrene merged commit f386c1e into master Oct 6, 2020
@enriquezrene enriquezrene deleted the 217_allow_limits_overlap branch October 6, 2020 19:28
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.

Auto fix times if possible Auto-fix times if possible

4 participants