Repository navigation
refine background fetching by throttling better - #5241
Merged
Merged
Conversation
shiftkey
force-pushed
the
shiftkey/refine-background-throttling
branch
from
August 1, 2018 19:58
27f4291 to
32520d2
Compare
Member
Author
|
@iAmWillShepherd I've rebased this on top of |
Contributor
|
I think 30 mins is acceptable, but this feels like something we could give the user more control over. I'm happy with this change as is, but let's talk about adding some more user-configurable preferences. |
iAmWillShepherd
approved these changes
Aug 1, 2018
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.
This PR addresses two common ways that you can introduce excessive background fetching, as part of investigating #1128:
To see these details for yourself into this run up a development version of
masterwith these changes:You should see these two sets of messages when either switching between apps or switching between repositories:
Both of these fetches, while considered "background" can be run if the repository hasn't been fetched in the last two minutes. That threshold was added in #3403 because we weren't really doing any checks. I think we should go even higher now, so this PR moves us up to 30mins for any background fetching.
@vanessayuenn just an FYI: I found myself renaming these methods to indicate they're related "indicators" in the sidebar, rather than the current name, because it helped me to navigate the code better. Let me know if you have any feels on this.