Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💥 Make TemporaryFileUpload.submission non-nullable #4894

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Dec 9, 2024

Part of #3283

We've provided a transition period from Open Forms 2.7, which ensures that a submission is stored. Support for legacy uploads is now removed.

The celery background jobs should by now have deleted all the old unclaimed uploads, unless absurdly large retention values have been set.

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh
    • Ran ./bin/compilemessages_js.sh
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.62%. Comparing base (3e7b959) to head (6adb90d).
Report is 28 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4894      +/-   ##
==========================================
- Coverage   96.62%   96.62%   -0.01%     
==========================================
  Files         757      757              
  Lines       25945    25942       -3     
  Branches     3419     3419              
==========================================
- Hits        25069    25066       -3     
  Misses        613      613              
  Partials      263      263              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-maertens sergei-maertens force-pushed the cleanup/3283-temporary-file-upload-submission-not-nullable branch from e436584 to 171034a Compare December 9, 2024 15:38
@sergei-maertens sergei-maertens marked this pull request as draft December 10, 2024 08:32
@sergei-maertens
Copy link
Member Author

sergei-maertens commented Dec 10, 2024

-> need to add an upgrade check script

We've provided a transition period from Open Forms 2.7, which ensures
that a submission is stored. Support for legacy uploads is now removed.

The celery background jobs should by now have deleted all the old
unclaimed uploads, unless absurdly large retention values have been
set.
Prevent upgrades going through if known constraint violations exist
in the database.
@sergei-maertens sergei-maertens force-pushed the cleanup/3283-temporary-file-upload-submission-not-nullable branch from 171034a to 6adb90d Compare December 10, 2024 13:00
@sergei-maertens sergei-maertens marked this pull request as ready for review December 10, 2024 14:49
Copy link
Contributor

@vaszig vaszig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs/installation/upgrade-300.rst Show resolved Hide resolved
@sergei-maertens
Copy link
Member Author

I think there are some more pieces left like here: https://github.com/open-formulieren/open-forms/blob/master/src/openforms/formio/components/vanilla.py#L387

is it not showing up in the diff for you? I've remove this check since I came across it when CTRL + F on 'legacy'.

@sergei-maertens sergei-maertens merged commit 53bf9d8 into master Dec 11, 2024
36 checks passed
@sergei-maertens sergei-maertens deleted the cleanup/3283-temporary-file-upload-submission-not-nullable branch December 11, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants