You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So submission_step.form_step should in practice never be None. This historical data thing was added specifically because all code assumes it can never be None. There is an edge case where no history data is available (that's was the bug why this stuff was made nullable, as it was a data loss bug due to cascading deletes), but by now all of those submissions should be gone due to the periodic cleanup of submissions for privacy reasons.
joeribekker
changed the title
Incorrectly handle None case?
Forms steps can be None but this is not always expected (related to form deletion/exports)
Jul 10, 2023
Product versie / Product version
latest
Omschrijf het probleem / Describe the bug
open-forms/src/openforms/submissions/api/permissions.py
Lines 113 to 123 in 0bcda15
In facc4ce we refactored
Submission.form_step
to be allowed to be null.It's unclear to me if
CanNavigateBetweenSubmissionStepsPermission
can ever be on a code path afterFormStep
deletion.I've noticed more spots in the code base that assume form_step to not be
None
SubmissionState.get_submission_step
Stappen om te reproduceren / Steps to reproduce
No response
Verwacht gedrag / Expected behavior
No response
Screen resolution
None
Device
None
OS
None
Browser
No response
The text was updated successfully, but these errors were encountered: