You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We don't cache repositories retrieved from the API, so it's really slow on each usage (not just the first) when you have access to hundreds of repositories.
Might also need some design thought about managing the interactions (show cached repositories, while fetching new repositories to refresh, and then merging) so that the app refreshes without interrupting the user.
@niik and I talked about this a bit, specifically around the race condition where you create a new repository on dotcom, go to clone it in Desktop, and it's missing because we haven't refreshed in time or invalidated the cache.
This was at least part of the motivation for Classic Windows' clone design and it not caching data.
The root problem here is that it takes a looooooooooong time to see your repositories. That's because we currently load all the pages before showing anything in the UI. It'd be nicer if we could progressively show repositories as we get them.
since a user's repos shouldn't change too drastically
While it's true that a user's repos don't change often, I think @niik's concern is that they're more likely to change right before you try to clone. For example:
Susan creates a new repo on GitHub.com.
Susan goes to GitHub Desktop to clone it.
It's not in her list because Desktop hasn't refreshed again yet.
Susan has to manually refresh.
She now has to wait while it refreshes.
In that case, caching hurts more than it helps. I think @niik's point is that the nature of clone makes them more likely to run into that.
This idea is interesting for the future, but this is beyond the scope of our current roadmap.
I added the future-proposal label to this issue and closed it so that we won't get overwhelmed with our backlog! We will revisit this in our next planning session.
Activity
joshaber commentedon Sep 19, 2017
From an implementation perspective, there's a few things we should weigh:
AppState. It's lost across relaunches, but it'd be an easy win.joshaber commentedon Sep 19, 2017
@niik and I talked about this a bit, specifically around the race condition where you create a new repository on dotcom, go to clone it in Desktop, and it's missing because we haven't refreshed in time or invalidated the cache.
This was at least part of the motivation for Classic Windows' clone design and it not caching data.
The root problem here is that it takes a looooooooooong time to see your repositories. That's because we currently load all the pages before showing anything in the UI. It'd be nicer if we could progressively show repositories as we get them.
iAmWillShepherd commentedon Sep 19, 2017
I'd prefer using the database since a user's repos shouldn't change too drastically. I believe the typical action is to add a repo...
joshaber commentedon Sep 19, 2017
While it's true that a user's repos don't change often, I think @niik's concern is that they're more likely to change right before you try to clone. For example:
In that case, caching hurts more than it helps. I think @niik's point is that the nature of clone makes them more likely to run into that.
niik commentedon Sep 20, 2017
☝️ exactly. And the same goes for organizations. "Let's get started on this new project team! I've created the super-app repo, go clone it".
shiftkey commentedon Dec 28, 2017
This idea is interesting for the future, but this is beyond the scope of our current roadmap.
I added the
future-proposallabel to this issue and closed it so that we won't get overwhelmed with our backlog! We will revisit this in our next planning session.billygriffin commentedon Nov 30, 2018
Superseded by @niik's work in #5686 so I'm going to remove
future-proposalhere.