Git Product home page Git Product logo

Comments (3)

russellbanks avatar russellbanks commented on May 24, 2024

I ideally want to avoid synchronicity in Komac because having to wait for something to complete doesn't feel like a great user experience. Yamlcreate has this for a second or so as it retrieves all the schemas when it's first ran, so I want to avoid having anything blocking that does the same.

For token validity checks, I've adjusted it in a197424:

There are now 2 "breakpoints" during the Package Identifier prompt. The first one checks whether there is a currently stored token, as this can be retrieved fairly quickly from Windows Credentials. If there isn't the user is prompted for it before the Package Identifier prompt. The second one is after the Package Identifier prompt and checks whether it's valid. If it's not the user will be prompted for a new token.

This is because retrieving the token takes a very small amount of time whilst checking if the token is valid requires a request to GitHub, taking a second or longer. The way I have changed it means that it can do the longer validity check in the background while the user is being asked for the Package Identifier. In a situation where we have the token stored and it's valid, the user shouldn't notice that there are any checks happening.

from komac.

vedantmgoyal2009 avatar vedantmgoyal2009 commented on May 24, 2024

@allcontributors please add @vedantmgoyal2009 for bug

from komac.

allcontributors avatar allcontributors commented on May 24, 2024

@vedantmgoyal2009

I've put up a pull request to add @vedantmgoyal2009! 🎉

from komac.

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.