GithubHelp home page GithubHelp logo

Comments (5)

jescalan avatar jescalan commented on July 24, 2024

👍 this would make a world of difference

from alfred-github-workflow.

gharlan avatar gharlan commented on July 24, 2024

The workflow is already caching, and the cache is refreshing in background.
But unused cache is deleted after 30 days, so when you didn't use gh for 30 days, the next time will be slow. I will increase this to 100 days.

gh my pulls is static. But after typing gh, the workflow starts searching all your repos. And the workflow is waiting for the result before handling next input.

from alfred-github-workflow.

cogell avatar cogell commented on July 24, 2024

Ahh I see. So the issue is not caching but the command blocking on searching all the repos. Could the command be made to display current cache results immediately and run the search asynchronously in the background?

At best case this would provide all the expected commands and repos instantly. At worst case the user would see results for some of their repos/issues/pulls but not newly created ones until the async call completed. Either case, I suppose it would be best to surface some fetching dialogue to the user -- dunno how to do that. Perhaps stuff it in first option slot?

from alfred-github-workflow.

gharlan avatar gharlan commented on July 24, 2024

Could the command be made to display current cache results immediately and run the search asynchronously in the background?

It's already implemented this way. Only if there is no cache for the query type, then it is loaded synchronously before showing results.

At worst case the user would see results for some of their repos/issues/pulls but not newly created ones until the async call completed.

.. until async call completed and hitting another key, because it is not possible to add async results to alfred.

from alfred-github-workflow.

cogell avatar cogell commented on July 24, 2024

ok kewl, thanks for helping me understand! I guess we can close this then.

from alfred-github-workflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.