summaryrefslogtreecommitdiff
path: root/gitlab
Commit message (Collapse)AuthorAgeFilesLines
* Make the project services work in v4rework_apiGauvain Pocentek2017-08-042-43/+48
|
* Update tests for list() changesGauvain Pocentek2017-08-042-5/+10
|
* Restore the prvious listing behaviorGauvain Pocentek2017-08-043-21/+45
| | | | | | | Return lists by default : this makes the explicit use of pagination work again. Use generators only when `as_list` is explicitly set to `False`.
* functional tests for v4Gauvain Pocentek2017-08-043-41/+138
| | | | | Update the python tests for v4, and fix the problems raised when running those tests.
* Restore correct exceptionsGauvain Pocentek2017-07-155-148/+655
| | | | | | Match the exceptions raised in v3 for v4. Also update the doc strings with correct information.
* Fix merge_when_build_succeeds attribute nameGauvain Pocentek2017-07-092-10/+10
| | | | Fixes #285
* Merge branch 'master' into rework_apiGauvain Pocentek2017-07-091-3/+3
|\
| * Added dependency injection support for SessionGuyzmo2017-07-081-2/+2
| | | | | | | | | | | | fixes #280 Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
| * Missing expires_at in GroupMembers updateEli Sarver2017-06-161-1/+1
| | | | | | CreateAttrs was set twice in GroupMember due to possible copy-paste error.
| * 0.21.2 release0.21.2Gauvain Pocentek2017-06-111-1/+1
| |
| * Add new event types to ProjectHookJamie Bliss2017-06-051-1/+1
| | | | | | These are being returned in the live API, but can't set them.
* | remove useless attributesGauvain Pocentek2017-06-251-12/+1
| |
* | Refactor the CLIGauvain Pocentek2017-06-253-177/+222
| | | | | | | | | | | | | | v3 and v4 CLI will be very different, so start moving things in their own folders. For now v4 isn't working at all.
* | Add missing doc filesGauvain Pocentek2017-06-251-0/+0
| |
* | typoGauvain Pocentek2017-06-241-1/+1
| |
* | build submanagers for v3 onlyGauvain Pocentek2017-06-241-15/+16
| |
* | Fix GroupProject constructorGauvain Pocentek2017-06-241-3/+2
| |
* | minor doc updatesGauvain Pocentek2017-06-182-1/+12
| |
* | Rework documentationGauvain Pocentek2017-06-181-4/+0
| |
* | Remove unused future.division importGauvain Pocentek2017-06-115-5/+0
| | | | | | | | We don't do math.
* | add support for objects delete()Gauvain Pocentek2017-06-112-37/+48
| |
* | pep8 fixesGauvain Pocentek2017-06-112-6/+5
| |
* | Add laziness to get()Gauvain Pocentek2017-06-111-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal is to create empty objects (no API called) but give access to the managers. Using this users can reduce the number of API calls but still use the same API to access children objects. For example the following will only make one API call but will still get the result right: gl.projects.get(49, lazy=True).issues.get(2, lazy=True).notes.list() This removes the need for more complex managers attributes (e.g. gl.project_issue_notes)
* | Drop invalid doc about raised exceptionsGauvain Pocentek2017-06-111-59/+2
| |
* | Add new event types to ProjectHookGauvain Pocentek2017-06-111-1/+1
| |
* | Fix a few remaining methodsGauvain Pocentek2017-06-112-100/+62
| |
* | tests for objects mixinsGauvain Pocentek2017-06-051-0/+57
| |
* | Add tests for managers mixinsGauvain Pocentek2017-06-052-2/+359
| |
* | Basic test for GitlabListGauvain Pocentek2017-06-051-1/+47
| |
* | Fix GitlabList.__len__Gauvain Pocentek2017-06-051-1/+1
| |
* | Unit tests for REST* classesGauvain Pocentek2017-06-052-4/+140
| |
* | Tests and fixes for the http_* methodsGauvain Pocentek2017-06-023-17/+230
| |
* | make the tests passGauvain Pocentek2017-06-023-23/+26
| |
* | Migrate all v4 objects to new APIGauvain Pocentek2017-06-025-1161/+926
| | | | | | | | | | | | | | Some things are probably broken. Next step is writting unit and functional tests. And fix.
* | Simplify SidekiqManagerGauvain Pocentek2017-06-021-17/+4
| |
* | New API: handle gl.auth() and CurrentUser* classesGauvain Pocentek2017-06-022-32/+41
| |
* | Add support for managers in objects for new APIGauvain Pocentek2017-06-023-88/+119
| | | | | | | | Convert User* to the new REST* API.
* | pep8Gauvain Pocentek2017-06-023-5/+4
| |
* | Move the mixins in their own moduleGauvain Pocentek2017-06-023-189/+208
| |
* | Rework the manager and object classesGauvain Pocentek2017-06-023-106/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new RESTObject and RESTManager base class, linked to a bunch of Mixin class to implement the actual CRUD methods. Object are generated by the managers, and special cases are handled in the derivated classes. Both ways (old and new) can be used together, migrate only a few v4 objects to the new method as a POC. TODO: handle managers on generated objects (have to deal with attributes in the URLs).
* | pep8 againGauvain Pocentek2017-06-021-10/+12
| |
* | Add lower-level methods for Gitlab()Gauvain Pocentek2017-06-022-0/+229
|/ | | | | | | | | | | | Multiple goals: * Support making direct queries to the Gitlab server, without objects and managers. * Progressively remove the need to know about managers and objects in the Gitlab class; the Gitlab should only be an HTTP proxy to the gitlab server. * With this the objects gain control on how they should do requests. The complexities of dealing with object specifics will be moved in the object classes where they belong.
* import urlencode() from six.moves.urllib.parse instead of from urllib (#268)Cosimo Lupo2017-06-022-5/+5
| | | | | Fixes AttributeError on Python 3, as `urlencode` function has been moved to `urllib.parse` module. `six.moves.urllib.parse.urlencode()` is an py2.py3 compatible alias of `urllib.parse.urlencode()` on Python 3, and of `urllib.urlencode()` on Python 2.
* [v4] Make project issues work properlyGauvain Pocentek2017-05-271-27/+36
| | | | | | * Use iids instead of ids * Add required duration argument for time_estimate() and add_spent_time()
* Remove extra_attrs argument from _raw_list (unneeded)Gauvain Pocentek2017-05-273-31/+11
|
* pep8 fixGauvain Pocentek2017-05-271-1/+2
|
* Fix python functional testsGauvain Pocentek2017-05-271-1/+1
|
* [v4] Make MR work properlyGauvain Pocentek2017-05-271-33/+43
| | | | | | * Use iids instead of ids (Fixes #266) * Add required duration argument for time_estimate() and add_spent_time()
* Prepare the 0.21.1 releaseGauvain Pocentek2017-05-251-1/+1
|
* [v4] Fix the jobs manager attribute in ProjectGauvain Pocentek2017-05-251-1/+1
|