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

Chore: PD 8.2.2 mergeback into edge #17143

Merged
merged 6 commits into from
Dec 19, 2024
Merged

Chore: PD 8.2.2 mergeback into edge #17143

merged 6 commits into from
Dec 19, 2024

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Dec 18, 2024

Overview

This is a merge back of PD 8.2.2 release branch into edge

jerader and others added 6 commits December 16, 2024 14:55
… modal (#17121)

* fix(protocol-designer) remove hardcoded pd version from release notes modal
#17124)

…field

The `heaterShakerSetTimer` field's type is `heaterShakerSetTimer: 'true'
| 'false' | null` - this was written 3 years ago. However, despite this,
the field when checking the checkbox in the form in PD would populate it
as `true` or `false` booleans rather than the true/false strings.

2 weeks ago, right before 8.2.0 was released, there was a bug checking
the timer checkbox for the temperature module and it was because of this
boolean vs boolean strings issue. So I extended it onto the
heater-shaker set timer field as well because of its type. Unfortunately, that resulted in this
current error:

- protocols created in 8.2.0 and 8.2.1 have the `heaterShakerSetTimer`
field set to either `'true'` or `'false'` strings
- protocols created prior to 8.2.0 have the `heaterShakerSetTimer` field
set to `true` or `false` boolean
- my initial fix was to update the form field to check for `true` or `false` boolean but
that didn't fix any protocols created in 8.2.0 and 8.2.1.
- the extended fix unfortunately required a migration so now if `'true'`
or `'false'` strings are used in the field, they get migrated to `true`
or `false` boolean -- this i believe is the only way to fix all protocol
versions
* fix(protocol-designer): change initial value from null to true
@jerader jerader requested review from a team as code owners December 18, 2024 21:18
@jerader jerader requested review from ncdiehl11 and koji and removed request for a team December 18, 2024 21:18
@jerader jerader merged commit 78e4c5c into edge Dec 19, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants