-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge release/v1.1.0 into dev (#463)
* LOOP-3830 PumpManager sync updates (#456) (#457) * PumpManager protocol changes for syncing * Remove debug prints * LOOP-3856: Adds canceling of temp basal if user lowers max basal below temp basal (#460) * ckpt * LOOP-3856: Wire up an "EnactTempBasal" hook for TherapySettings to use * PR Feedback: moved temp basal validation to LoopDataManager * Adds unit tests to LoopDataManager for canceling temp basal * Adds unit tests to LoopDataManager for checking loop is called when changing max basal * fix tests * Fix race condition causing intermittent unit test failures * Sigh...looks like we were "waiting" on the wrong queue * fix tests * PR Feedback * rename validateTempBasal -> validateMaxTempBasal to make it more clear * Fix comment * Rename ValidateMaxTempBasal -> MaxTempBasalSavePreflight * Remove "indirection" in syncBasalRateSchedule and maxTempBasalSavePreflight * Refactor stuff into new TherapySettingsViewModelDelegate The number of function aliases in `TherapySettingsViewModel` was getting to be a mess. I consolidated `SaveCompletion`, `MaxTempBasalSavePreflight`, `SyncBasalRateSchedule`, and `SyncDeliveryLimits` all into a new `TherapySettingsViewModelDelegate`. Things got a bit cleaner, and now `DeviceDataManager` handles doing both the `maxTempBasalSavePreflight` and `syncDeliveryLimits` so it is not so loose of a contract. * PR Feedback Co-authored-by: Pete Schwamb <[email protected]>
- Loading branch information
Showing
6 changed files
with
221 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.