Git Product home page Git Product logo

developer.keyman.com's People

Contributors

dependabot[bot] avatar ermshiperete avatar mcdurdin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

developer.keyman.com's Issues

Fix return status codes

Trying to call an API method that requires authentication without an authentication token should result in 401. However, the different methods return different values (which are different from what's documented).

Investigate PR edge cases

Check how we deal with the following scenarios:

  • PR gets merged; user makes additional changes to single-keyboard repo (skr), creates a new PR
  • user creates a PR; abandons PR, makes additional changes in skr, and creates a new PR
  • user creates a PR; abandons PR, resets skr, does force-push on skr, and creates a new PR
  • PR gets merged; some changes get made directly in keyboards repo; user makes changes in skr, creates a new PR

(a PR here means getting the changes from the single-keyboard repo into keyboards repo)

Update user's keyboards repo prior to transfer changes from skr

The first step when creating a pull request/project should be to fetch keymanapp/keyboards before fetching the user's keyboards repo and transferring the changes from his single keyboard repo to his keyboards repo.

This is necessary because the user most likely won't keep his keyboards repo up-to-date and will help to make merge conflicts less likely.

Frontend: Progress component (3d)

  • Displays while the server clones the project and creates or updates the pull request
  • Status message is different based on the context

Get list of special prefixes from folder names

src/pull-request/pull-request.service.ts hard-codes the names of the special prefixes. This could be retrieved dynamically from the folder names of the keyboards repo - every folder under releases with name.length > 1 is a special folder.

Backend: GitRepo component (2w)

  • Clone project from GitHub
  • Pull project from GitHub
  • Push project to GitHub
  • Extract keyboard id
  • Determine location in file system
  • Create branch

Backend e2e tests for PR creation

Write e2e tests for:

  • Create a PR from commits on single keyboards repo (skr) (201)
  • Update a PR from new commits on skr (201)
  • Can not update an existing PR if there are no new commits on skr (304)
  • Can not update an existing PR if skr got force-pushed (400)
  • Can not update an existing PR if keyboards repo got new changes in skr-branch (409)

This tests the functionality implement in #56 and #57.

Frontend: User component (2d)

  • Login

  • Logout

  • Detect if user is logged in

  • Display username and avatar

  • User service as client-side endpoint of REST API

Backend: Implement pushing of commits (5d)

When using OAUTH token it's not possible to use git push command to push commits on behalf of the user.

However, GitHub provides a Database API that allows low-level access to git objects. Using this API it's possible to implement pushing of commits by re-creating commits on GitHub.

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.