summaryrefslogtreecommitdiff
path: root/gitlab/mixins.py
Commit message (Collapse)AuthorAgeFilesLines
* Make the project services work in v4rework_apiGauvain Pocentek2017-08-041-1/+2
|
* Restore the prvious listing behaviorGauvain Pocentek2017-08-041-7/+7
| | | | | | | 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-041-1/+1
| | | | | Update the python tests for v4, and fix the problems raised when running those tests.
* Restore correct exceptionsGauvain Pocentek2017-07-151-44/+111
| | | | | | Match the exceptions raised in v3 for v4. Also update the doc strings with correct information.
* add support for objects delete()Gauvain Pocentek2017-06-111-0/+11
|
* 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)
* Add tests for managers mixinsGauvain Pocentek2017-06-051-2/+5
|
* make the tests passGauvain Pocentek2017-06-021-2/+2
|
* Migrate all v4 objects to new APIGauvain Pocentek2017-06-021-16/+159
| | | | | | | Some things are probably broken. Next step is writting unit and functional tests. And fix.
* Add support for managers in objects for new APIGauvain Pocentek2017-06-021-7/+7
| | | | Convert User* to the new REST* API.
* pep8Gauvain Pocentek2017-06-021-3/+3
|
* Move the mixins in their own moduleGauvain Pocentek2017-06-021-0/+207