Coder Social home page Coder Social logo

coffee's People

Contributors

vibhamasti avatar vishruth-v avatar yashichawla avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

crstnmac

coffee's Issues

Replace loops with `getUserRepositoryRelation(userId, repositoryId)` in `RepositoryUtilities.java`

This snippet (or a slight modification of it) is used in almost all repository related functions. It is used to fetch the relation the current user has with the current repository.

found_user = False
    for relation in relations:
        if relation[0]==user_id:
            repo_relation = relation[-1]
            found_user = True
            break
    if not found_user:
        print("You do not have access on this repository. Cannot see status")
        return

There is a function in RelationDatabaseUtilities.java that performs the same. We should call the database function instead of looping through all possible relations after fetching from database. This has been performed for pull and commit

`commit(coffee, message)`

Commits all updated files. Multiple processes take place - diff calculations, database updates, creating commit files

`push(coffee)`

Push local clone to remote. Upload the entire folder and update database entries.

`coffee()`

Display a cute coffee bean (similar to togepi) command

`status(coffee)`

For all tracked files, check if local clone is modified and display

`add(coffee, filePaths)`

Adds all the files to track. Can take in a String of space-separated file paths, or a . for recursively adding all files, directories and subdirectories in the current folder. For any new files, update in database.

`CommandRunner.java` Function Mapping

Implement method calling functions for RepositoryUtilities.java so commands can be executed. Requires RepositoryUtilities to be finished first for functions to be mapped to commands. Templates are already present in the same file for other command types, needs to be replicated for the repository commands.

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.