| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`all` kwarg is used to manage GitlabList generator behaviour.
However, as it is not poped from kwargs, it is sent to Gitlab API.
Some endpoints such as [the project commits](https://docs.gitlab.com/ee/api/commits.html#list-repository-commits) one,
support a `all` attribute.
This means a call like `project.commits.list(all=True, ref_name='master')`
won't return all the master commits as one might expect but all the
repository's commits.
To prevent confusion, the same kwarg shouldn't be used for 2 distinct
purposes.
Moreover according to [the documentation](https://python-gitlab.readthedocs.io/en/stable/gl_objects/commits.html#examples),
the `all` project commits API endpoint attribute doesn't seem supported.
|
|\
| |
| | |
fix(api): Don't try to parse raw downloads
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
http_get always tries to interpret the retrieved data if the
content-type is json. In some cases (artifact download for instance)
this is not the expected behavior.
This patch changes http_get and download methods to always get the raw
data without parsing.
Closes #683
|
|/
|
|
|
|
|
|
|
|
| |
Provide another way to send data to gitlab with a new `query_parameters`
argument. This parameter can be used to explicitly define the dict of
items to send to the server, so that **kwargs are only used to specify
python-gitlab specific parameters.
Closes #566
Closes #629
|
|
|
|
|
|
|
|
|
| |
When requests are throttled (HTTP response code 429), python-gitlab
assumed that 'Retry-After' existed in the response headers. This is
not always the case and so the request fails due to a KeyError. The
change in this commit adds a rudimentary exponential backoff to the
'http_request' method, which defaults to 10 retries but can be set
to -1 to retry without bound.
|
| |
|
|
|
|
|
|
|
|
|
| |
* Depending on the request Gitlab has a 'message' or 'error' attribute
in the json data, handle both
* Add some consistency by converting messages to unicode or str for
exceptions (depending on the python version)
Closes #616
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
POST and PUT requests are modified by clients when redirections happen.
A common problem with python-gitlab is a misconfiguration of the server
URL: the http to https redirection breaks some requests.
With this change python-gitlab should detect problematic redirections,
and raise a proper exception instead of failing with a cryptic error.
Closes #565
|
|
|
|
| |
Closes #553
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This reverts commit 8e787612fa77dc945a4c1327e9faa6eee10c48f2.
This change broke the basic generator usage (Fixes #534)
|
| |
|
| |
|
|\
| |
| | |
make as_list=False work for all=True queries
|
| | |
|
| |
| |
| |
| | |
Fixes #524
|
|/ |
|
| |
|
|
|
|
| |
Testing will be enable when GitLab 11.0 is available.
|
| |
|
|
|
|
| |
Fixes #470
|
|
|
|
| |
Fixes #308
|
|
|
|
| |
Drop the code, the tests, and update the documentation.
|
| |
|
| |
|
|
|
|
|
|
| |
done by using the retry-after header
Fixes #166
|
|
|
|
|
|
|
| |
* url: the URL provided by the user (from config or constructor)
* api_url: the computed base endpoint (URL/api/v?)
Fixes #474
|
| |
|
| |
|
|
|
|
| |
Fixes #371
|
|
|
|
| |
Closes #412
|
| |
|
|
|
|
|
|
|
|
| |
Explicitly call the requests session.merge_environment_settings()
method, which will use some environment variables to setup the session
properly.
Closes #352
|
|
|
|
| |
Closes #367
|
|
|
|
| |
Fixes #360
|
|
|
|
| |
Closes #362
|
|
|
|
| |
Fixes #405
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* Raise exceptions when conflicting arguments are used
* Build the auth headers when instanciating Gitlab, not on each request
* Enable anonymous Gitlab objects (#364)
Add docs and unit tests
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Make gitlab objects serializable
With current implementation of API v3 and v4 support, some instances
have properties of type module and are not serializable. Handle
these properties manually with setstate and getstate methods.
|
|
|
|
|
|
|
| |
Expose the X-* pagination attributes returned by the Gitlab server when
requesting lists.
Closes #304
|