-
Notifications
You must be signed in to change notification settings - Fork 889
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
Add setting to disable automatic fetching of subscription feed #2632
Add setting to disable automatic fetching of subscription feed #2632
Conversation
Accidentally opened this before filling in the template... It's filled in now so I'll reopen it. |
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.
Code changes look fine
Still need to test locally tomorrow (21:08 here)
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.
Tested
- Main changes
- Profile with no channel for message 1
- Switching between profiles to see fetched video list kept
message 3 not tested since no channel with no video provided
@@ -14,6 +14,12 @@ | |||
:tooltip="$t('Tooltips.Subscription Settings.Fetch Feeds from RSS')" | |||
@change="updateUseRssFeeds" | |||
/> | |||
<ft-toggle-switch |
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 you should add a switch column grid and two switch columns so it matches the layout of other setting components (parental control settings, distraction free settings, privacy settings, player settings)
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.
Sorry forgot to include a one. Didn't want to pick a random users channel. |
This matches the layout other settings components
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
used so the disable automatic fetch message doesn't block the empty channels message.
Head branch was pushed to by a user without write access
static/locales/en-US.yaml
Outdated
@@ -768,6 +770,8 @@ Tooltips: | |||
Fetch Feeds from RSS: When enabled, FreeTube will use RSS instead of its default | |||
method for grabbing your subscription feed. RSS is faster and prevents IP blocking, | |||
but doesn't provide certain information like video duration or live status | |||
Fetch Automatically: When enabled, FreeTube will automatically fetch | |||
your subscription feed on start and when switching profile. |
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.
Not sure if important to mention but feed will also be fetched when opening a new window/tab
Also not a big fan of the space between this setting and the RSS 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.
The visual space between them can be fixed by adding the :compact="true"
attribute to all 3 switches.
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.
Not sure if important to mention but feed will also be fetched when opening a new window/tab
I don't think "on start" is the best wording.
I'll see if I can think of something better or if there's any suggestions.
Maybe "when a window is opened" or something.
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.
The visual space between them can be fixed by adding the
:compact="true"
attribute to all 3 switches.
Thanks, I'll add that.
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've made the switches compact and reworded the tooltip.
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.
Some observations
Head branch was pushed to by a user without write access
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.
All tested locally
Add setting to disable automatic fetching of subscription feed
Pull Request Type
Related issue
closes #2515
part of #539
Description
Main changes
Adds a new setting in subscription settings to disable automatic fetching of the subscription feed.
Prevents calls to the method
getSubscriptions()
inSubscriptions.js
in to places.getProfileSubscriptions
method, when the users switches profile.When the users switches profile and has disabled auto fetching 2 things can happen
profileSubscriptions
then it will be loaded instead.other stuff
In
Subscriptions.vue
I made some changes to the messages that show when the video list is emptymessage 2 will block message 3 from being displayed even if they have attempted two fetch subscriptions.This will probably not be a huge deal since I imagine it rarely happens.
The alternatives is to check if the user has attempted to refresh subscriptions.
Screenshots
This is the message that shows when the setting is disabled and the user starts the app or navigates to a new profile.
Testing
I created 2 new profiles
one without any channels to test if message 1 is displayed
the second one included only a channel without any videos to test if message 3 is displayed.
with the new setting disabled
I tested to make sure subscriptions where not fetched when freetube is started.
I switched between profiles to make sure subscriptions where not fetched automatically
I fetched subscriptions from one profile switched to another and the switched back to see if the video list was kept.
chosen api or rss should not affect anything since this check is done before that part of the code.
Desktop
Additional context
It's likely that I've missed something or implemented this weirdly since I am unfamiliar with this part of the code.
I had to remove the newline for the
Your Subscription list is currently empty
string in the locale file to get the new strings to work.If disabling fetching when switching profile is unwanted I could make a new setting for that or just remove it.