UpdateMLClass fails due to missing corpus ID
Sentry Issue: ARKINDEX-BACKEND-12K
NotNullViolation: null value in column "corpus_id" violates not-null constraint
DETAIL: Failing row contains (0bc8d19b-7262-4871-9d39-b031e5e0b544, TEEEEEST, null).
File "django/db/backends/utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
IntegrityError: null value in column "corpus_id" violates not-null constraint
DETAIL: Failing row contains (0bc8d19b-7262-4871-9d39-b031e5e0b544, TEEEEEST, null).
(21 additional frame(s) were not displayed)
...
File "django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "django/db/backends/utils.py", line 76, in _execute_with_wrappers
return executor(sql, params, many, context)
File "django/db/backends/utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
File "django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "django/db/backends/utils.py", line 85, in _execute
return self.cursor.execute(sql, params)
This only occurs with UpdateMLClass
(PUT
) and not PartialUpdateMLClass
(PATCH
), which is why this cannot be noticed with the frontend.