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

Remove Download Loop/iAPS Data toggle #297

Merged
merged 2 commits into from
May 13, 2024
Merged

Conversation

bjorkert
Copy link
Contributor

@bjorkert bjorkert commented May 13, 2024

In an effort to simplify the functionality and improve user experience, we have made a small update to the LoopFollow app. Previously, users had to manually toggle the option to download Nightscout data, dependent on a separate 'Download Loop/iAPS Data' setting. This has been streamlined to enhance efficiency and ease of use.

Key Change:
Automatic Data Download: The toggle for 'Download Loop/iAPS Data' has been removed. Now, the app will automatically start downloading Nightscout data whenever a URL is entered. This change ensures that users won't need to manage additional settings to start receiving data, reducing setup complexity and potential user errors.
This update is part of our ongoing efforts to make LoopFollow more intuitive and user-friendly, ensuring that your focus can remain on what's most important—managing health data effectively.

As always, we are eager to hear your feedback as we continue to improve the app. Please share your thoughts and experiences after this update.

Ping @MikePlante1

@bjorkert bjorkert requested a review from marionbarker May 13, 2024 12:07
@flyingpie101
Copy link

Sorry. Why are we removing this toggle ?

@bjorkert
Copy link
Contributor Author

Sorry. Why are we removing this toggle ?

Hi, thanks for commenting!
It is removed in order to clean up the gui, it is a common error to forget to turn on this setting. I believe it was from a time when LF crashed very easily when there was bad data in Nightscout.
Are you using it, and for what?

@marionbarker
Copy link
Collaborator

marionbarker commented May 13, 2024

Edited after PM with @bjorkert.
This is desired behavior.

A blank NS table indicates a problem downloading data from the URL.

No NS table indicates the NS URL is empty.

Test Results:

  • If NS URL is present and valid, NS table displayed and has data
  • If NS URL is present but not valid (e.g. bad token), the NS table is still shown but is empty (glucose coming from Dexcom for this test)
  • repeat but with no Dexcom credentials, BG shows ---, NS table displayed but blank
  • NS URL is blank, then NS table is not displayed

@flyingpie101
Copy link

I have it toggled on, because I use NS and want the NS data downloaded.
So, I assume this is proposing to remove the toggle and the download data (if available) is always 'enabled' ?
Fine with me if thats the case.

@marionbarker
Copy link
Collaborator

And while you are at it. This is an unexpected consequence of a PR a couple of times ago where you sanitized the URL.

Try typing in https://sitename, instead of pasting in a URL, and you'll notice it won't allow you to enter the / characters.

@bjorkert
Copy link
Contributor Author

I have it toggled on, because I use NS and want the NS data downloaded. So, I assume this is proposing to remove the toggle and the download data (if available) is always 'enabled' ? Fine with me if thats the case.

Yes, exactly. My fault, I should have written a better PR description of this. So after this change, it will always try to download Nightscout data, just as if the switch would have been on.

@flyingpie101
Copy link

flyingpie101 commented May 13, 2024

And while you are at it. This is an unexpected consequence of a PR a couple of times ago where you sanitized the URL.

Try typing in https://sitename, instead of pasting in a URL, and you'll notice it won't allow you to enter the / characters.

I feel like, perhaps, your comments are for a different PR ;)
#290

@flyingpie101
Copy link

I have it toggled on, because I use NS and want the NS data downloaded. So, I assume this is proposing to remove the toggle and the download data (if available) is always 'enabled' ? Fine with me if thats the case.

Yes, exactly. My fault, I should have written a better PR description of this. So after this change, it will always try to download Nightscout data, just as if the switch would have been on.

Sure, I figured, just wanted to make sure. I also assume that if there is no NS url entered. it won't attempt to download every few minutes ?

@bjorkert
Copy link
Contributor Author

I have it toggled on, because I use NS and want the NS data downloaded. So, I assume this is proposing to remove the toggle and the download data (if available) is always 'enabled' ? Fine with me if thats the case.

Yes, exactly. My fault, I should have written a better PR description of this. So after this change, it will always try to download Nightscout data, just as if the switch would have been on.

Sure, I figured, just wanted to make sure. I also assume that if there is no NS url entered. it won't attempt to download every few minutes ?

Yes, blank URL would be the same as toggling the removed toggle off.

Copy link
Collaborator

@marionbarker marionbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the successful test that the slider used to enable NS download is no longer needed, this PR also fixes a bug introduced in PR #290. It is now possible to type the https:// into the URL row.

@marionbarker marionbarker merged commit 2ac4fa2 into dev May 13, 2024
@marionbarker marionbarker deleted the remove-download-data branch June 19, 2024 14:49
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.

3 participants