Closed dvkruchinin closed 2 years ago
@nmanovic If you haven't started working on it yet, may I take up this issue?
@g-kartik , it will be great! Thanks for your contribution.
@g-kartik , it will be great! Thanks for your contribution.
Thank You!
A similar error occurs if the user was in the organization and then was removed from the database (deactivation of the user is not necessary).
It looks like it is a problem with using cacheops: https://github.com/Suor/django-cacheops/issues/348
Basically we have code which cache Task.objects.get() and Job.objects.get(): https://github.com/openvinotoolkit/cvat/blob/c9aa9a12e1fd9bacb7bb017c0cf3671616d57e79/cvat/settings/base.py#L326
Solution:
My actions before raising this issue
Internal Server Error. When trying to delete a task that was assigned to a user that was deactivated and then deleted. A similar situation occurs when trying to delete a task that was created by a user who was deactivated and then deleted. An error when opening a job that was assigned to a user who was deactivated and then deleted.
Expected Behaviour
It is possible that the task should be deleted.
Current Behaviour
Possible Solution
Fix the bug.
Steps to Reproduce (for bugs)
Context
Your Environment
git log -1
): 6cabea1ba5330142b1b6a2c6a00915a61e24fcb2docker version
(e.g. Docker 17.0.05): 20.10.7Logs from `cvat` container
Next steps
You may join our Gitter channel for community support.