-
Notifications
You must be signed in to change notification settings - Fork 137
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
feat: settings to allow new networks and show notif when a network is disallowed #1658
base: master
Are you sure you want to change the base?
feat: settings to allow new networks and show notif when a network is disallowed #1658
Conversation
… a network is disallowed
…ng' of https://github.com/diivi/vorta into feat/allow-new-networks-and-show-disallowed-notif-setting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I didn't test the new notification setting.
I feel like "Show notification when a network is disallowed" duplicates the option that's already there under Misc - "Display notification when background tasks fails". If you look at notifications and backups in general:
The question is if 2 and 3 are different enough to have their own option. Or if 3 is just some other failure. In any case, the option is better suited under Misc as it's so similar to the others. |
@bcelary what do you think (about the difference between 2 and 3)? Since you requested this in the first place. Otherwise, yeah, maybe this should be under Misc. |
Seems like misc is the right place to keep it consistent. It looks like this is really a different category of a message that is not really an error but like an info. Similarly there could be an error that there is no available network at all which seems pointless because user is likely aware of this (not sure if there's such a message but just as an example). Caveat here that I'm not an UX expert. |
I think 2 and 3 can be merged to one notification. |
So I should drop the second part of this PR entirely, and @bcelary can use the
I agree; but a different setting for this use case probably only makes sense if there's an overlap, i.e. you want to hide an error, not the wifi notification (or vice versa), but end up hiding both because of the current setting. |
I realize that too many options is not ideal so I'm definitely good with whatever you decide. Maybe some criticality should be added to notifications so that user would be able to decide the level of severity but that would require a new feature. I think the most sensible is to simply drop that part indeed. |
What should I do about this - #1658 (comment)? |
Didn't we discuss that we treat blocked wifi like any other error? |
Can you upgrade to |
@@ -97,6 +97,7 @@ class BackupProfileModel(BaseModel): | |||
pre_backup_cmd = pw.CharField(default='') | |||
post_backup_cmd = pw.CharField(default='') | |||
dont_run_on_metered_networks = pw.BooleanField(default=True) | |||
allow_new_networks = pw.BooleanField(default=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it defaults to False
, but in migrations it's True
? Suggest to use True
everywhere, which is the current behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think yf and I discussed this before (been long so idr exactly where, I tried searching). The new behaviour should not surprise existing users, so the migration changes nothing. But for new users, having this value as false is more beneficial.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found it - #1658 (comment)
This is almost ready. |
Adds 2 columns to the profile model:
Related Issue
Fixes #1655
Motivation and Context
#1654
How Has This Been Tested?
Manually tested.
Types of changes
Checklist:
I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.