summaryrefslogtreecommitdiff
path: root/gitlab/mixins.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Get rid of _sanitize_dataGauvain Pocentek2018-03-171-14/+4
| | | | It was used in one class only, no need for added complexity.
* Implement attribute types to handle special casesGauvain Pocentek2018-03-171-2/+37
| | | | | | | | Some attributes need to be parsed/modified to work with the API (for instance lists). This patch provides two attribute types that will simplify parts of the code, and fix some CLI bugs. Fixes #443
* introduce RefreshMixinPierre Tardy2018-03-041-0/+19
| | | | | RefreshMixin allows to update a REST object so that you can poll on it. This is mostly useful for pipelines and jobs, but could be set on most of other objects, with unknown usecases.
* Add support for features flagsGauvain Pocentek2018-01-011-1/+1
| | | | Fixes #360
* mixins.py: Avoid sending empty update data to issue.save (#389)Carlos Soriano2017-12-161-0/+3
|
* Make todo() raise GitlabTodoError on errorGauvain Pocentek2017-12-161-2/+7
|
* Revert "Add unit tests for mixin exceptions"Gauvain Pocentek2017-11-161-7/+2
| | | | This reverts commit 4ee139ad5c58006da1f9af93fdd4e70592e6daa0.
* Add unit tests for mixin exceptionsGauvain Pocentek2017-11-111-2/+7
|
* Add a SetMixinGauvain Pocentek2017-11-111-0/+23
| | | | | Use it for UserCustomAttribute, will be useful for {Project,Group}CustomAttribute (#367)
* Fix the CLI for objects without ID (API v4)Gauvain Pocentek2017-11-011-1/+1
| | | | Fixes #319
* Drop leftover pdb callGauvain Pocentek2017-10-081-1/+0
|
* Make the delete() method handle / in idsGauvain Pocentek2017-10-081-0/+3
| | | | | | Replace the / with the HTTP %2F as is done with other methods. Closes #337
* [v4] fix CLI for some mixin methodsGauvain Pocentek2017-09-071-0/+15
|
* Fix Args attribute in docstringsGauvain Pocentek2017-08-111-1/+1
|
* [v4] Fix getting projects using full namespaceGauvain Pocentek2017-08-111-0/+2
|
* 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