Commit graph

9 commits

Author SHA1 Message Date
Joseph Schorr
759eee00f1 Small fixes for GitLab trigger handler, since the GitLab API is returning the wrong ID for the user's namespace
Also has a small UI improvement
2018-07-19 13:11:39 -04:00
Joseph Schorr
059d5c656d Reimplement GitLab trigger handler using the V4 API library
GitLab has deprecated and removed the V3 API entirely

Fixes https://jira.coreos.com/browse/QUAY-966
2018-07-19 13:11:25 -04:00
Joseph Schorr
bf41aedc9c Have gitlab default to True on permissions if they are missing
This allows the repositories to be selected in the UI, if we are unsure whether the user has permission. Since gitlab will do the check anyway, this is safe, although not a great user experience if they chose an invalid repository, but we can't really do much about that.
2017-05-02 13:11:57 -04:00
Joseph Schorr
ae7012eef2 Anything can be None in GitLab!
Fixes a problem where the `project_access` block is reported as `null` from GitLab API, which breaks our code, because we assume sanity in API design.
2017-05-01 20:09:18 -04:00
Joseph Schorr
69ff58f7bd Gitlab can return None for avatar blocks
Because reasons!
2017-04-21 17:37:00 -04:00
Joseph Schorr
c8950f34b1 Fix avatar URLs for non-owner namespaces in Gitlab 2017-04-11 15:00:20 -04:00
Charlton Austin
e6d201e0b0 feat(build runner): added in context, dockerfile_location
this is a new feature meant to allow people to use any file as
  a dockerfile and any folder as a context directory
2017-03-28 13:55:31 -04:00
Joseph Schorr
a15abd3b5c Fix API exception in trigger setup due to invalid Dockerfile path 2017-03-07 19:25:18 -05:00
Joseph Schorr
57528aa2bc Add unit testing of gitlab trigger handler 2017-02-28 17:19:17 -05:00