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

fetch-all-upstreams: newly added, forked repos paged by name; update "through cache" from there #66

Open
salewski opened this issue Oct 31, 2020 · 0 comments
Labels

Comments

@salewski
Copy link
Owner

This issue depends on:


There is an idea in issue #65 to allow partial updating of the cache for the /user/repos "page collection" based on the (partial) name of the newly created or forked repo.

When cloning a GitHub repo, though, the tool the user is reaching for is ads-github-fetch-all-upstreams (with an invocation specifying the particular repo name(s) to clone), not ads-github-cache.

It would be nice to be able to do:

    $ ads-github-fetch-all-upstreams -vcu some-new-repo

and have it clone 'some-new-repo', even if it is not currently in the cache, and without having to pay the time penalty for updating the entire cache.

Such a feature would presumably rely on capabilities provided by issue #65.

The "Bonus points" section in issue #65 holds here, as well. The ideal solution would:

  1. update the single relevant page in the cache (determined by (full) repo name)
  2. immediately leverage the newly cached page to clone the specified repo
  3. immediately return shell control to the user (to continue working; but...)
  4. trigger or allow the background cache updating of "the rest of the pages" to proceed, notifying the user when complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant