Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | docs: use annotations for return typesdocs/sphinx-annotations | Nejc Habjan | 2021-12-01 | 1 | -12/+12 |
| | |||||
* | docs: only use type annotations for documentation | Nejc Habjan | 2021-11-28 | 1 | -21/+21 |
| | |||||
* | refactor: use f-strings for string formatting | Nejc Habjan | 2021-11-05 | 1 | -23/+23 |
| | |||||
* | feat(api): add project label promotion | Raimund Hook | 2021-10-18 | 1 | -0/+47 |
| | | | | | | Adds a mixin that allows the /promote endpoint to be called. Signed-off-by: Raimund Hook <raimund.hook@exfo.com> | ||||
* | docs: fix a few typos | Tim Gates | 2021-09-19 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | There are small typos in: - docs/gl_objects/deploy_tokens.rst - gitlab/base.py - gitlab/mixins.py - gitlab/v4/objects/features.py - gitlab/v4/objects/groups.py - gitlab/v4/objects/packages.py - gitlab/v4/objects/projects.py - gitlab/v4/objects/sidekiq.py - gitlab/v4/objects/todos.py Fixes: - Should read `treatment` rather than `reatment`. - Should read `transferred` rather than `transfered`. - Should read `registered` rather than `registred`. - Should read `occurred` rather than `occured`. - Should read `overridden` rather than `overriden`. - Should read `marked` rather than `maked`. - Should read `instantiate` rather than `instanciate`. - Should read `function` rather than `fonction`. | ||||
* | refactor(objects): remove deprecated members.all() method | Nejc Habjan | 2021-09-08 | 1 | -48/+0 |
| | | | | | BREAKING CHANGE: remove deprecated members.all() method in favor of members_all.list() | ||||
* | fix(mixins): improve deprecation warning | Max Wittig | 2021-08-13 | 1 | -1/+1 |
| | | | Also note what should be changed | ||||
* | fix: ensure kwargs are passed appropriately for ObjectDeleteMixin | Ben Brown | 2021-06-01 | 1 | -1/+1 |
| | |||||
* | chore: fix import ordering using isort | John L. Villalovos | 2021-05-25 | 1 | -3/+2 |
| | | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/ | ||||
* | feat: add feature to get inherited member for project/group | Oleksii Shkurupii | 2021-05-07 | 1 | -1/+48 |
| | |||||
* | Merge pull request #1412 from JohnVillalovos/jlvillal/optional_get_attrs | Nejc Habjan | 2021-04-26 | 1 | -0/+2 |
|\ | | | | | chore: make Get.*Mixin._optional_get_attrs always present | ||||
| * | chore: make Get.*Mixin._optional_get_attrs always present | John L. Villalovos | 2021-04-24 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | Always create GetMixin/GetWithoutIdMixin._optional_get_attrs attribute with a default value of tuple() This way we don't need to use hasattr() and we will know the type of the attribute. | ||||
* | | chore: make ListMixin._list_filters always present | John L. Villalovos | 2021-04-24 | 1 | -0/+2 |
|/ | | | | | | | | Always create ListMixin._list_filters attribute with a default value of tuple(). This way we don't need to use hasattr() and we will know the type of the attribute. | ||||
* | Merge pull request #1397 from JohnVillalovos/jlvillal/flake8 | Max Wittig | 2021-04-23 | 1 | -1/+0 |
|\ | | | | | Fix all issues reported by running: tox -e pep8 and enable pep8 as a linter check | ||||
| * | chore: fix F401 errors reported by flake8 | John L. Villalovos | 2021-04-18 | 1 | -1/+0 |
| | | | | | | | | | | | | F401: Module imported but unused https://www.flake8rules.com/rules/F401.html | ||||
* | | fix: correct some type-hints in gitlab/mixins.py | John L. Villalovos | 2021-04-18 | 1 | -24/+26 |
|/ | | | | | | | | | | | | | Commit baea7215bbbe07c06b2ca0f97a1d3d482668d887 introduced type-hints for gitlab/mixins.py. After starting to add type-hints to gitlab/v4/objects/users.py discovered a few errors. Main error was using '=' instead of ':'. For example: _parent = Optional[...] should be _parent: Optional[...] Resolved those issues. | ||||
* | Merge pull request #1375 from JohnVillalovos/jlvillal/update_uses_post | Nejc Habjan | 2021-04-17 | 1 | -1/+2 |
|\ | | | | | chore: remove usage of getattr() | ||||
| * | chore: remove usage of getattr() | John L. Villalovos | 2021-03-15 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | Remove usage of getattr(self, "_update_uses_post", False) Instead add it to class and set default value to False. Add a tests that shows it is set to True for the ProjectMergeRequestApprovalManager and ProjectApprovalManager classes. | ||||
* | | chore: have _create_attrs & _update_attrs be a namedtuple | John L. Villalovos | 2021-04-17 | 1 | -3/+3 |
|/ | | | | | | Convert _create_attrs and _update_attrs to use a NamedTuple (RequiredOptional) to help with code readability. Update all code to use the NamedTuple. | ||||
* | chore: add _create_attrs & _update_attrs to RESTManager | John L. Villalovos | 2021-03-10 | 1 | -25/+7 |
| | | | | | | | Add the attributes: _create_attrs and _update_attrs to the RESTManager class. This is so that we stop using getattr() if we don't need to. This also helps with type-hints being available for these attributes. | ||||
* | chore: make _types always present in RESTManager | John L. Villalovos | 2021-03-07 | 1 | -11/+8 |
| | | | | | | | | | | We now create _types = {} in RESTManager class. By making _types always present in RESTManager it makes the code simpler. We no longer have to do: types = getattr(self, "_types", {}) And the type checker now understands the type. | ||||
* | chore: add type-hints for gitlab/mixins.py | John L. Villalovos | 2021-03-06 | 1 | -57/+313 |
| | | | | | | | * Added type-hints for gitlab/mixins.py * Changed use of filter with a lambda expression to list-comprehension. mypy was not able to understand the previous code. Also list-comprehension is better :) | ||||
* | refactor(api): explicitly export classes for star importsrefactor/split-objects | Nejc Habjan | 2021-02-07 | 1 | -0/+25 |
| | |||||
* | chore: rename ExportMixin to DownloadMixinfeat/group-import-export | Nejc Habjan | 2020-04-05 | 1 | -1/+1 |
| | |||||
* | feat(api): add support for Group Import/Export API (#1037) | Nejc Habjan | 2020-04-05 | 1 | -1/+1 |
| | |||||
* | chore(mixins): factor out export download into ExportMixin | Nejc Habjan | 2020-04-05 | 1 | -0/+29 |
| | |||||
* | fix: do not require empty data dict for create() | Nejc Habjan | 2020-03-07 | 1 | -1/+4 |
| | |||||
* | feat: add global order_by option to ease paginationfeat/keyset-pagination | Max Wittig | 2020-01-26 | 1 | -0/+3 |
| | |||||
* | feat: support keyset pagination globally | Max Wittig | 2020-01-26 | 1 | -0/+4 |
| | |||||
* | fix: remove empty dict default arguments | Frantisek Lachman | 2019-08-14 | 1 | -1/+2 |
| | | | | Signed-off-by: Frantisek Lachman <flachman@redhat.com> | ||||
* | feat: group labels with subscriptable mixin | Alberto López Martín | 2019-07-26 | 1 | -2/+6 |
| | |||||
* | fix(cli): fix update value for key not workingproject-variable-update | nateatkins | 2019-07-21 | 1 | -0/+2 |
| | |||||
* | fix: convert # to %23 in URLsfix/779 | Gauvain Pocentek | 2019-06-08 | 1 | -3/+4 |
| | | | | | | Refactor a bit to handle this change, and add unit tests. Closes #779 | ||||
* | refactor: format everything blackrefactor/black | Max Wittig | 2019-05-16 | 1 | -57/+55 |
| | |||||
* | fix(api): make reset_time_estimate() work againfix/672 | Gauvain Pocentek | 2019-01-08 | 1 | -1/+1 |
| | | | | Closes #672 | ||||
* | Use the same description for **kwargs everywhere | Gauvain Pocentek | 2018-06-17 | 1 | -7/+7 |
| | |||||
* | Add project push rules configuration (#520) | Eric Sabouraud | 2018-06-11 | 1 | -3/+8 |
| | |||||
* | Add support for project-level MR approval configuration | Eric Sabouraud | 2018-06-08 | 1 | -2/+14 |
| | |||||
* | time_stats(): use an existing attribute if available | Gauvain Pocentek | 2018-05-30 | 1 | -0/+5 |
| | | | | | | | | A time_stats attribute is returned by GitLab when fetching issues and merge requests (on reasonably recent GitLab versions). Use this info instead of making a new API call if possible. Fixes #510 | ||||
* | Add support for group badges | Gauvain Pocentek | 2018-05-29 | 1 | -0/+24 |
| | | | | | | Also consolidate project/group badges tests, and add some docs Fixes #469 | ||||
* | Fix the participants() decorator | Gauvain Pocentek | 2018-05-28 | 1 | -1/+1 |
| | |||||
* | Issues: add missing attributes and methods | Gauvain Pocentek | 2018-05-28 | 1 | -0/+26 |
| | |||||
* | Implement user_agent_detail for snippets | Gauvain Pocentek | 2018-05-27 | 1 | -0/+17 |
| | | | | Add a new UserAgentDetail mixin to avoid code duplication. | ||||
* | add per_page config option | Cyril Jouve | 2018-05-22 | 1 | -0/+2 |
| | |||||
* | Add support for project import/export | Gauvain Pocentek | 2018-05-21 | 1 | -1/+4 |
| | | | | Fixes #471 | ||||
* | pep8 fix | Gauvain Pocentek | 2018-05-21 | 1 | -1/+1 |
| | |||||
* | Add support for user avatar upload | Gauvain Pocentek | 2018-05-21 | 1 | -9/+30 |
| | | | | Fixes #308 | ||||
* | Drop GetFromListMixin | Gauvain Pocentek | 2018-05-19 | 1 | -37/+0 |
| | |||||
* | pep8 fix | Gauvain Pocentek | 2018-05-19 | 1 | -1/+1 |
| | |||||
* | Deprecate GetFromListMixin | Gauvain Pocentek | 2018-05-19 | 1 | -0/+9 |
| | | | | | | | | | This mixin provides a workaround for get() for GitLab objects that don't implement a 'get a single object' API. We are now getting conflicts because GitLab adds GET methods, and this is against the "Implement only what exists in the API" strategy. Also use the proper GET API call for objects that support it. |