Giter Club home page Giter Club logo

contributio's People

Watchers

 avatar  avatar

contributio's Issues

Add origin to resources

An origin is a VCS platform from which a project is imported.
There are VCS families, like GitHub or Gitlab, that can be either community or enterprise editions.
An origin has a family, a root URI and potentially an app password.

Projects, tasks and submissions tables should get an additional origin_id field.

Tests

Add frontend and backend tests.

Bug when trying to connect with GH

Request: POST /graph
** (exit) an exception was raised:
    ** (Ecto.MultipleResultsError) expected at most one result but got 2 in query:

from u0 in Contributio.Accounts.UserOrigin,
  where: u0.origin_id == ^1 and u0.user_id == ^1

        (ecto 3.5.5) lib/ecto/repo/queryable.ex:152: Ecto.Repo.Queryable.one/3
        (contributio 0.1.0) lib/contributio/accounts.ex:83: Contributio.Accounts.upsert_user_origin/1
        (contributio 0.1.0) lib/contributio_web/resolvers/users.ex:127: Resolvers.Users.create_linked_account/2
        (absinthe 1.5.5) lib/absinthe/resolution.ex:206: Absinthe.Resolution.call/2
        (absinthe 1.5.5) lib/absinthe/phase/document/execution/resolution.ex:230: Absinthe.Phase.Document.Execution.Resolution.reduce_resolution/1
        (absinthe 1.5.5) lib/absinthe/phase/document/execution/resolution.ex:185: Absinthe.Phase.Document.Execution.Resolution.do_resolve_field/3
        (absinthe 1.5.5) lib/absinthe/phase/document/execution/resolution.ex:170: Absinthe.Phase.Document.Execution.Resolution.do_resolve_fields/6
        (absinthe 1.5.5) lib/absinthe/phase/document/execution/resolution.ex:88: Absinthe.Phase.Document.Execution.Resolution.walk_result/5
        (absinthe 1.5.5) lib/absinthe/phase/document/execution/resolution.ex:67: Absinthe.Phase.Document.Execution.Resolution.perform_resolution/3
        (absinthe 1.5.5) lib/absinthe/phase/document/execution/resolution.ex:24: Absinthe.Phase.Document.Execution.Resolution.resolve_current/3
        (absinthe 1.5.5) lib/absinthe/pipeline.ex:369: Absinthe.Pipeline.run_phase/3
        (absinthe_plug 1.5.2) lib/absinthe/plug.ex:488: Absinthe.Plug.run_query/4
        (absinthe_plug 1.5.2) lib/absinthe/plug.ex:268: Absinthe.Plug.call/2
        (phoenix 1.5.7) lib/phoenix/router/route.ex:41: Phoenix.Router.Route.call/2
        (phoenix 1.5.7) lib/phoenix/router.ex:352: Phoenix.Router.__call__/2
        (contributio 0.1.0) lib/contributio_web/endpoint.ex:1: ContributioWeb.Endpoint.plug_builder_call/2
        (contributio 0.1.0) lib/plug/debugger.ex:132: ContributioWeb.Endpoint."call (overridable 3)"/2
        (contributio 0.1.0) lib/contributio_web/endpoint.ex:1: ContributioWeb.Endpoint.call/2
        (phoenix 1.5.7) lib/phoenix/endpoint/cowboy2_handler.ex:65: Phoenix.Endpoint.Cowboy2Handler.init/4
        (cowboy 2.8.0) /app/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2

Webhooks

Make sure they work for all required events.

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.