Repository navigation
Conversation
…es outside the limits A remote save of an existing profile is checked against the shared limits only in the schedules it changes, as Loop and Trio check it, so one schedule that no longer fits does not keep the others from being corrected. Profiles that no longer fit the limits are marked in the list, the profile screen says why the app will not activate them, and the activation confirmation says when the active profile can't be activated again.
…hedules stay outside them Profiles are flagged only when the shared limits are usable, the profile was read completely and both are in the same units. A schedule grid of zero seconds gives no segments. The review notes when the schedules a save leaves alone stay outside the limits, the activation confirmation says when the target is outside them, and the wording follows whether the profile can be edited from LoopFollow.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These problems came up in the review of the Loop version of therapy profiles (LoopKit/LoopKit#698), and LoopFollow has its part of them. A remote save of an existing profile was checked against the limits in every schedule, so a profile with one schedule outside the limits, after the max basal rate was lowered or the pump changed, could not be corrected from LoopFollow in any of its schedules. Nothing in LoopFollow showed that such a profile could no longer be activated until an activation was refused.
A remote save is checked against the shared limits only in the schedules it changes, as Loop and Trio check it, so a profile can be corrected one schedule at a time. Profiles that no longer fit the limits are marked Outside Limits in the list, the profile screen says why the app will not activate them, and the review notes when the schedules a save leaves alone stay outside the limits. Profiles are flagged only when the limits are usable, the profile was read completely and both are in the same units.
Matches LoopKit/LoopKit#698, LoopKit/LoopKit#707 and nightscout/Trio#1808, and follows up on #833.