-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix KeyError 'changes_to_release_date'
#26
Conversation
Cannot quite reproduce in tests nor locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to enforce using .get
on cleaned_data
. When can we expect the keys to be populated, I'm seeing inconsistent behaviour of it sometimes existing. While testing this, I got a KeyError
on status
key https://github.com/ONSdigital/dis-wagtail/pull/26/files#diff-97e098c994ca593ce24412351be5632c9b77fdf54cc70d6f184c45020644d481R29
To recreate:
- Add a release calendar entry with title, summary and status Provisional then Save draft.
- Change status to Published and click Save draft and then you should see the key error in the logs.
@MebinAbraham done da53e25. Added to the list to investigate in Wagtail core. |
Cannot quite reproduce in tests nor locally. Follow up to #16
What is the context of this PR?
Sentry issue screenshot
How to review
Just review the code.
Follow-up Actions
Monitor Sentry and follow up with any other tweaks.