-
Notifications
You must be signed in to change notification settings - Fork 71.9k
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
Bolus settings #5633
Bolus settings #5633
Conversation
Sorry for the delay, aiming to review tomorrow |
Right, so - @jasoncalabrese this PR changes the functionality and removes the current release behaviour, which is likely to anger users. The current release (which the previous change retained) renders boluses above a certain threshold (1U) using the large font, and boluses that are below threshold are assumed to be microboluses and rendered without the 0 and the U, so the user can still see the amount in the plot, but also the bolus size is less likely to overlap in case of frequent microbolusing from a loop. I'd like to retain that behaviour and I'd prefer to actually make it hard to hide the bolus amount altogether, since many users don't have IOB pill enabled at all and if we make it easy to hide the bolus amount, it's going to lead to users double bolusing. So while the code in this one is cleaner, the change in behaviour is undesirable? |
since maybe I'm missing something |
Ok with screenshots - the behaviour we have now, that I can't replicate with this PR, is having full rendering for the manual boluses (over 1U) and the minimized rendering for the SMBs. What this PR does is enforces the same rendering logic for boluses of all sizes. The two intents I've seen for bolus rendering have so far been 1) clear rendering of data for maximal understandability of the plot and 2) reducing the space needed to render SBMs due to overlapping text in the timeline to make the text readable. At least in my view the "full rendering" is the best in terms of being explicit on the amount boluses, but that doesn't fit the second intent, so the current implementation meets this mid-way by using the minimised rendering for small boluses and full rendering for manual / large boluses. So the view that's in current implementation but impossible to replicate with this PR is this one, where small boluses are minimized and large are rendered fully: |
thanks @sulkaharo makes more sense now, I think the names of the settings should probably change to better align with this behaviour, also the copy in the settings panel. Since SMB is a OpenAPS only term, maybe we could call these micro boluses to be clear. Then we could have settings/defaults like:
But then by default micro boluses would snooze treatment notifications, as they did before, maybe that's ok. |
Hi, may I ask what the config vars for Heroku are and which values they could have for the 4 "Render Bolus Amount" options? |
Merged through #6834 |
to answer my own question - the 3 variables available for the heroku config vars now are:
|
This adds a (fake) bolus plugin so that extended settings are available and splits the bolus rendering settings into
BOLUS_RENDER_OVER
andBOLUS_RENDER_FORMAT
for extra control and cleaner logic.Also adds a new
TREATMENTNOTIFY_INCLUDE_BOLUSES_OVER
setting to prevent automated micro boluses from triggering notifications and snoozing alarms