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

Fix key references for OT creation #4714

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

DanielRyanSmith
Copy link
Collaborator

This is a fix for a bug that emerged today regarding the submission of a deprecation trial on the OT creation request form.

Once the change was made to use OpenAPI models for this endpoint, the body of the OT creation request always contains the keys that represent the fields in the OT creation request form. Originally, it was assumed that sometimes the keys would not exist in the body dict, and the keys were accessed with this assumption (using the dict .get() method and giving a default return value). Because the keys now always exist in the dictionary and are instead set to None if they are not provided in the requst, this causes some unintended errors accessing values.

Despite appearing just after a recent deployment, this was a long-standing bug, but we have not received a deprecation trial creation request in some time. 🙂

@DanielRyanSmith DanielRyanSmith merged commit fe353be into main Jan 17, 2025
7 checks passed
@DanielRyanSmith DanielRyanSmith deleted the 20250117_deptrial-bugfix branch January 17, 2025 21:56
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