Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | chore: add `pprint()` and `pformat()` methods to RESTObject | John L. Villalovos | 2022-01-08 | 1 | -0/+14 |
| | | | | | This is useful in debugging and testing. As can easily print out the values from an instance in a more human-readable form. | ||||
* | fix: handle situation where GitLab does not return valuesjlvillal/pagination | John L. Villalovos | 2021-12-30 | 1 | -2/+11 |
| | | | | | | | | | | | | | | | | If a query returns more than 10,000 records than the following values are NOT returned: x.total_pages x.total Modify the code to allow no value to be set for these values. If there is not a value returned the functions will now return None. Update unit test so no longer `xfail` https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers Closes #1686 | ||||
* | docs(api): clarify job token usage with auth() | Axel Amigo Arnold | 2021-10-08 | 1 | -1/+4 |
| | | | | See issue #1620 | ||||
* | feat: default to gitlab.com if no URL given | Nejc Habjan | 2021-09-08 | 1 | -18/+24 |
| | | | | | BREAKING CHANGE: python-gitlab will now default to gitlab.com if no URL is given | ||||
* | fix!: raise error if there is a 301/302 redirection | John L. Villalovos | 2021-09-08 | 1 | -1/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Before we raised an error if there was a 301, 302 redirect but only from an http URL to an https URL. But we didn't raise an error for any other redirects. This caused two problems: 1. PUT requests that are redirected get changed to GET requests which don't perform the desired action but raise no error. This is because the GET response succeeds but since it wasn't a PUT it doesn't update. See issue: https://github.com/python-gitlab/python-gitlab/issues/1432 2. POST requests that are redirected also got changed to GET requests. They also caused hard to debug tracebacks for the user. See issue: https://github.com/python-gitlab/python-gitlab/issues/1477 Correct this by always raising a RedirectError exception and improve the exception message to let them know what was redirected. Closes: #1485 Closes: #1432 Closes: #1477 | ||||
* | feat: allow global retry_transient_errors setup | Karun Japhet | 2021-08-29 | 1 | -0/+11 |
| | | | | | | `retry_transient_errors` can now be set through the Gitlab instance and global configuration Documentation for API usage has been updated and missing tests have been added. | ||||
* | docs(api): add behavior in local attributes when updating objects | Nejc Habjan | 2021-05-06 | 1 | -0/+20 |
| | |||||
* | docs: add docs and examples for custom user agentfeat/override-user-agent | Nejc Habjan | 2021-01-31 | 1 | -0/+3 |
| | |||||
* | Revert "feat: use keyset pagination by default for `all=True`" | Max Wittig | 2020-03-09 | 1 | -5/+1 |
| | |||||
* | chore: fix broken requests links | Nejc Habjan | 2020-02-25 | 1 | -2/+2 |
| | | | | Another case of the double slash rewrite. | ||||
* | docs: add reference for REQUESTS_CA_BUNDLE | Nejc Habjan | 2020-02-25 | 1 | -0/+12 |
| | |||||
* | docs(pagination): clear up pagination docsfeat/all-keyset-pagination | Max Wittig | 2020-02-12 | 1 | -3/+2 |
| | | | | Co-Authored-By: Mitar <mitar.git@tnode.com> | ||||
* | feat: use keyset pagination by default for `all=True` | Max Wittig | 2020-01-27 | 1 | -0/+5 |
| | |||||
* | Merge pull request #1000 from matusf/update-auth-docs | Max Wittig | 2020-01-26 | 1 | -3/+0 |
|\ | | | | | Update auth docs | ||||
| * | docs(auth): remove email/password auth | Matus Ferech | 2020-01-26 | 1 | -3/+0 |
| | | |||||
* | | feat: add global order_by option to ease paginationfeat/keyset-pagination | Max Wittig | 2020-01-26 | 1 | -2/+2 |
| | | |||||
* | | feat: support keyset pagination globally | Max Wittig | 2020-01-26 | 1 | -0/+12 |
|/ | |||||
* | feat: allow cfg timeout to be overrided via kwargs | Andrew Tergis | 2019-12-16 | 1 | -0/+17 |
| | | | | | | | | | | | | | On startup, the `timeout` parameter is loaded from config and stored on the base gitlab object instance. This instance parameter is used as the timeout for all API requests (it's passed into the `session` object when making HTTP calls). This change allows any API method to specify a `timeout` argument to `**kwargs` that will override the global timeout value. This was somewhat needed / helpful for the `import_github` method. I have also updated the docs accordingly. | ||||
* | feat: retry transient HTTP errors | Mitar | 2019-12-12 | 1 | -0/+18 |
| | | | | Fixes #970 | ||||
* | feat: add support for job token | Mathieu Parent | 2019-09-06 | 1 | -0/+4 |
| | | | | See https://docs.gitlab.com/ee/api/jobs.html#get-job-artifacts for usage | ||||
* | docs(api-usage): fix project group example | Nikolaos Pothitos | 2019-06-19 | 1 | -2/+2 |
| | | | | Fixes #798 | ||||
* | docs: remove v3 supportno-more-v3 | Gauvain Pocentek | 2019-06-08 | 1 | -6/+1 |
| | |||||
* | fix(api): avoid parameter conflicts with python and gitlabno-param-conflicts | Gauvain Pocentek | 2019-01-13 | 1 | -0/+19 |
| | | | | | | | | | | 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 | ||||
* | fix: handle empty 'Retry-After' header from GitLab | Srikanth Chelluri | 2019-01-08 | 1 | -1/+15 |
| | | | | | | | | | 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. | ||||
* | [docs] add a warning about https:// | Gauvain Pocentek | 2018-09-05 | 1 | -0/+5 |
| | | | | | http to https redirection cause problems. Make notes of this in the docs. | ||||
* | [docs] fix cut and paste leftover | Gauvain Pocentek | 2018-09-05 | 1 | -1/+1 |
| | |||||
* | [docs] Fix the owned/starred usage documentation | Gauvain Pocentek | 2018-09-04 | 1 | -1/+1 |
| | | | | Closes #579 | ||||
* | Minor doc updates | Gauvain Pocentek | 2018-08-25 | 1 | -4/+4 |
| | |||||
* | Correct session example | Stefan Crain | 2018-06-13 | 1 | -1/+1 |
| | |||||
* | Document the global per_page setting | Gauvain Pocentek | 2018-05-26 | 1 | -0/+7 |
| | |||||
* | Drop API v3 support | Gauvain Pocentek | 2018-05-19 | 1 | -69/+23 |
| | | | | Drop the code, the tests, and update the documentation. | ||||
* | api-usage: bit more detail for listing with `all` | Gauvain Pocentek | 2018-05-11 | 1 | -9/+10 |
| | |||||
* | docs(api-usage): add rate limit documentation | Max Wittig | 2018-04-18 | 1 | -0/+23 |
| | |||||
* | Fix typos in documentation | Jakub Wilk | 2018-03-03 | 1 | -2/+2 |
| | |||||
* | Default to API v4 | Gauvain Pocentek | 2018-02-05 | 1 | -7/+5 |
| | |||||
* | Gitlab can be used as context manager | Gauvain Pocentek | 2018-02-05 | 1 | -0/+17 |
| | | | | Fixes #371 | ||||
* | [docs] Add a note about password auth being removed from GitLab | Gauvain Pocentek | 2017-12-16 | 1 | -2/+17 |
| | | | | | | | Provide a code snippet demonstrating how to use cookie-based authentication. Fixes #380 | ||||
* | Update pagination docs for ProjectCommit | Gauvain Pocentek | 2017-12-11 | 1 | -1/+1 |
| | | | | | | In v3 pagination starts at page 0 instead of page 1. Fixes: #377 | ||||
* | Rework authentication args handling | Gauvain Pocentek | 2017-11-10 | 1 | -2/+8 |
| | | | | | | | | * 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 | ||||
* | [doc] Add sample code for client-side certificates | Gauvain Pocentek | 2017-11-03 | 1 | -0/+23 |
| | | | | Closes #23 | ||||
* | Pagination generators: expose more information | Gauvain Pocentek | 2017-11-01 | 1 | -0/+9 |
| | | | | | | | Expose the X-* pagination attributes returned by the Gitlab server when requesting lists. Closes #304 | ||||
* | Document the Gitlab session parameter | Gauvain Pocentek | 2017-10-21 | 1 | -0/+24 |
| | | | | | | Provide a proxy setup example. Closes #341 | ||||
* | [docs] document `get_create_attrs` in the API tutorial | Gauvain Pocentek | 2017-10-21 | 1 | -27/+36 |
| | |||||
* | Improve the docs to make v4 a first class citizen | Gauvain Pocentek | 2017-09-07 | 1 | -19/+75 |
| | |||||
* | Add v4 support to docs | Gauvain Pocentek | 2017-05-24 | 1 | -0/+14 |
| | |||||
* | s/correspnding/corresponding/ | Guillaume Delacour | 2017-04-05 | 1 | -1/+1 |
| | |||||
* | Stop listing if recursion limit is hit (#234) | Johan Brandhorst | 2017-03-23 | 1 | -1/+3 |
| | |||||
* | document the dynamic aspect of objects | Gauvain Pocentek | 2017-02-04 | 1 | -1/+12 |
| | |||||
* | [docs] update pagination section | Gauvain Pocentek | 2016-12-24 | 1 | -1/+6 |
| | | | | | | First page is page 1. Fixes #197 | ||||
* | docs: improve the pagination section | Gauvain Pocentek | 2016-08-30 | 1 | -2/+11 |
| |