Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Update contract end date with locked shifts raises modified minutes error

Open
#433 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start at api/serializers.py lines 235-241 and reproduce the contract edit with locked and submitted shifts described in the issue. Trace why changing only the contract end date reaches the locked-shift minutes validation; done means the end date saves without that error while locked-shift minutes remain protected.

Written by the indexing model from the issue text.

Description

:bug: Bug
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
Dominant language
Python
Stars
0
Forks
4
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClockGU/clock-backend

All issues in ClockGU/clock-backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.