summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #1699 from python-gitlab/jlvillal/arraysNejc Habjan2022-07-287-31/+134
|\ \ | |/ |/| fix: use the [] after key names for array variables in `params`
| * fix: use the [] after key names for array variables in `params`John L. Villalovos2022-07-277-31/+134
|/ | | | | | | | | | | | | | | | | | 1. If a value is of type ArrayAttribute then append '[]' to the name of the value for query parameters (`params`). This is step 3 in a series of steps of our goal to add full support for the GitLab API data types[1]: * array * hash * array of hashes Step one was: commit 5127b1594c00c7364e9af15e42d2e2f2d909449b Step two was: commit a57334f1930752c70ea15847a39324fa94042460 Fixes: #1698 [1] https://docs.gitlab.com/ee/api/#encoding-api-parameters-of-array-and-hash-types
* feat: add support for iterations APINejc Habjan2022-07-277-0/+112
|
* feat(groups): add support for shared projects APINejc Habjan2022-07-264-4/+72
|
* test: always ensure clean config environmentNejc Habjan2022-07-264-19/+29
|
* chore: revert "test(functional): simplify token creation"Nejc Habjan2022-07-262-4/+26
| | | | This reverts commit 67ab24fe5ae10a9f8cc9122b1a08848e8927635d.
* Merge pull request #1778 from python-gitlab/jlvillal/gitlab-eeNejc Habjan2022-07-265-7/+89
|\ | | | | chore: enable using GitLab EE in functional tests
| * test(ee): add an EE specific testJohn L. Villalovos2022-07-252-5/+11
| |
| * chore: enable using GitLab EE in functional testsJohn L. Villalovos2022-07-254-3/+79
|/ | | | | | Enable using GitLab Enterprise Edition (EE) in the functional tests. This will allow us to add functional tests for EE only features in the functional tests.
* test(functional): simplify token creationNejc Habjan2022-07-253-26/+9
|
* Merge pull request #2184 from ↵Nejc Habjan2022-07-251-1/+1
|\ | | | | | | | | python-gitlab/renovate/commitizen-tools-commitizen-2.x chore(deps): update pre-commit hook commitizen-tools/commitizen to v2.29.0
| * chore(deps): update pre-commit hook commitizen-tools/commitizen to v2.29.0renovate[bot]2022-07-251-1/+1
| |
* | Merge pull request #2182 from python-gitlab/renovate/commitizen-2.xNejc Habjan2022-07-251-1/+1
|\ \ | | | | | | chore(deps): update dependency commitizen to v2.29.0
| * | chore(deps): update dependency commitizen to v2.29.0renovate[bot]2022-07-251-1/+1
| | |
* | | chore(deps): update dependency mypy to v0.971renovate[bot]2022-07-241-1/+1
| |/ |/|
* | chore(deps): update typing dependenciesrenovate[bot]2022-07-242-4/+4
|/
* docs(projects): document export with upload to URLNejc Habjan2022-07-241-0/+13
|
* feat(issues): add support for issue reorder APINejc Habjan2022-07-243-1/+57
|
* feat(namespaces): add support for namespace existence APINejc Habjan2022-07-243-4/+49
|
* Merge pull request #2173 from python-gitlab/jlvillal/config_test_fixNejc Habjan2022-07-241-1/+6
|\ | | | | test: fix broken test if user had config files
| * test: fix broken test if user had config filesJohn L. Villalovos2022-07-231-1/+6
|/ | | | | | | Use `monkeypatch` to ensure that no config files are reported for the test. Closes: #2172
* feat: add support for group and project invitations APINejc Habjan2022-07-238-0/+331
|
* feat(projects): add support for project restore APINejc Habjan2022-07-234-0/+40
|
* chore(authors): fix email and do the ABCNejc Habjan2022-07-231-1/+1
|
* refactor: migrate services to integrationsNejc Habjan2022-07-235-55/+79
|
* fix(runners): fix listing for /runners/allNejc Habjan2022-07-235-5/+68
|
* docs: describe fetching existing export statusNejc Habjan2022-07-231-0/+8
|
* Merge pull request #2166 from python-gitlab/jlvillal/podmanNejc Habjan2022-07-231-1/+1
|\ | | | | test: allow `podman` users to run functional tests
| * test: allow `podman` users to run functional testsJohn L. Villalovos2022-07-221-1/+1
|/ | | | | | | | Users of `podman` will likely have `DOCKER_HOST` set to something like `unix:///run/user/1000/podman/podman.sock` Pass this environment variable so that it will be used during the functional tests.
* fix(config): raise error when gitlab id provided but no config section foundNejc Habjan2022-07-222-1/+12
|
* fix(config): raise error when gitlab id provided but no config file foundNejc Habjan2022-07-222-0/+11
|
* Merge pull request #1785 from python-gitlab/jlvillal/reset_gitlabNejc Habjan2022-07-221-48/+17
|\ | | | | chore: make reset_gitlab() better
| * chore: make reset_gitlab() betterJohn L. Villalovos2022-07-221-48/+17
|/ | | | | | | | | | | | | Saw issues in the CI where reset_gitlab() would fail. It would fail to delete the group that is created when GitLab starts up. Extending the timeout didn't fix the issue. Changed the code to use the new `helpers.safe_delete()` function. Which will delete the resource and then make sure it is deleted before returning. Also added some logging functionality that can be seen if logging is turned on in pytest.
* Merge pull request #1784 from python-gitlab/jlvillal/sidekiqNejc Habjan2022-07-222-29/+50
|\ | | | | chore: fixtures: after delete() wait to verify deleted
| * chore: fixtures: after delete() wait to verify deletedJohn L. Villalovos2022-07-212-29/+50
| | | | | | | | | | | | | | | | | | | | | | | | In our fixtures that create: - groups - project merge requests - projects - users They delete the created objects after use. Now wait to ensure the objects are deleted before continuing as having unexpected objects existing can impact some of our tests.
* | Merge pull request #2163 from python-gitlab/jlvillal/lint_warningNejc Habjan2022-07-221-1/+2
|\ \ | |/ |/| test(api_func_v4): catch deprecation warning for `gl.lint()`
| * test(api_func_v4): catch deprecation warning for `gl.lint()`John L. Villalovos2022-07-211-1/+2
|/ | | | | Catch the deprecation warning for the call to `gl.lint()`, so it won't show up in the log.
* test(functional): use both get_all and all in list() testsNejc Habjan2022-07-211-11/+22
|
* fix: add `get_all` param (and `--get-all`) to allow passing `all` to APINejc Habjan2022-07-2119-100/+158
|
* Merge pull request #2161 from nickbroon/nickbroon-jobs_scopeNejc Habjan2022-07-211-0/+1
|\ | | | | feat: add support for filtering jobs by scope
| * feat: add support for filtering jobs by scopeNick Brown2022-07-211-0/+1
| | | | | | | | | | See: 'scope' here: https://docs.gitlab.com/ee/api/jobs.html#list-project-jobs
* | Merge pull request #2160 from python-gitlab/docs-author-add-johnNejc Habjan2022-07-211-0/+1
|\ \ | |/ |/| docs(authors): add John
| * docs(authors): add JohnMax Wittig2022-07-211-0/+1
|/
* Merge pull request #1872 from python-gitlab/jlvillal/as_dictNejc Habjan2022-07-203-13/+148
|\ | | | | feat: add `asdict()` and `to_json()` methods to Gitlab Objects
| * feat: add `asdict()` and `to_json()` methods to Gitlab ObjectsJohn L. Villalovos2022-07-203-22/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an `asdict()` method that returns a dictionary representation copy of the Gitlab Object. This is a copy and changes made to it will have no impact on the Gitlab Object. The `asdict()` method name was chosen as both the `dataclasses` and `attrs` libraries have an `asdict()` function which has the similar purpose of creating a dictionary represenation of an object. Also add a `to_json()` method that returns a JSON string representation of the object. Closes: #1116
| * fix: results returned by `attributes` property to show updatesJohn L. Villalovos2022-07-202-4/+32
| | | | | | | | | | | | | | | | | | Previously the `attributes` method would show the original values in a Gitlab Object even if they had been updated. Correct this so that the updated value will be returned. Also use copy.deepcopy() to ensure that modifying the dictionary returned can not also modify the object.
* | Merge pull request #2082 from python-gitlab/jlvillal/mark_lazy_stateNejc Habjan2022-07-203-2/+54
|\ \ | |/ |/| chore: add a `lazy` boolean attribute to `RESTObject`
| * chore: add a `lazy` boolean attribute to `RESTObject`John L. Villalovos2022-07-203-2/+54
|/ | | | | | | | This can be used to tell if a `RESTObject` was created using `lazy=True`. Add a message to the `AttributeError` if attribute access fails for an instance created with `lazy=True`.
* test: add more tests for container registriesNejc Habjan2022-07-201-4/+50
|
* feat(api): add support for instance-level registry repositoriesNejc Habjan2022-07-202-1/+25
|