ClockGU / ClockGU/clock-backend

Update contract end date with locked shifts raises modified minutes error

Open
#433 1 comment 1 reaction 0 assignees View on GitHub
:bug: Bug
Dominant language
Python
Stars
0
Forks
4
PR merge metrics
No merged PRs in 30d

Description

#### Observation

Users try to change their contract's end date routinely while locked shifts exist.
They receive and error `"The minutes of a contract with locked shifts is not allowed to modify."`

The error is raised here: https://github.com/ClockGU/clock-backend/blob/develop/api/serializers.py#L235-L241

#### Steps to reproduce

1. Create a contract starting a month or so in the past
2. Create some shifts in the 1st month
3. Lock and submit
4. Open the contract to edit and set a new end date
5. Save - the error will appear

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.