summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/groups.py
Commit message (Collapse)AuthorAgeFilesLines
* docs: use annotations for return typesdocs/sphinx-annotationsNejc Habjan2021-12-011-2/+2
|
* docs: only use type annotations for documentationNejc Habjan2021-11-281-14/+14
|
* refactor: use new-style formatting for named placeholdersNejc Habjan2021-11-081-2/+2
|
* chore: add type-hints to gitlab/v4/objects/groups.pyJohn L. Villalovos2021-11-071-11/+44
| | | | | | | * Add type-hints to gitlab/v4/objects/groups.py * Have share() function update object attributes. * Add 'get()' method so that type-checkers will understand that getting a group is of type Group.
* refactor: use f-strings for string formattingNejc Habjan2021-11-051-9/+9
|
* docs: fix a few typosTim Gates2021-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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`.
* fix(objects): rename confusing `to_project_id` argumentNejc Habjan2021-09-111-3/+3
| | | | | | BREAKING CHANGE: rename confusing `to_project_id` argument in transfer_project to `project_id` (`--project-id` in CLI). This is used for the source project, not for the target namespace.
* chore: convert to using type-annotations for managersJohn L. Villalovos2021-09-081-29/+0
| | | | | | | | | | | | | Convert our manager usage to be done via type annotations. Now to define a manager to be used in a RESTObject subclass can simply do: class ExampleClass(CRUDMixin, RESTObject): my_manager: MyManager Any type-annotation that annotates it to be of type *Manager (with the exception of RESTManager) will cause the manager to be created on the object.
* chore: improve type-hinting for managersJohn L. Villalovos2021-09-071-0/+28
| | | | | | | | | | | | | | | The 'managers' are dynamically created. This unfortunately means that we don't have any type-hints for them and so editors which understand type-hints won't know that they are valid attributes. * Add the type-hints for the managers we define. * Add a unit test that makes sure that the type-hints and the '_managers' attribute are kept in sync with each other. * Add unit test that makes sure specified managers in '_managers' have a name ending in 'Managers' to keep with current convention. * Make RESTObject._managers always present with a default value of None. * Fix a type-issue revealed now that mypy knows what the type is
* feat(api): add group hooksIvan Sugonyak2021-06-261-0/+2
|
* feat(objects): add support for Group wikis (#1484)Simon Pamies2021-06-031-0/+2
| | | feat(objects): add support for Group wikis
* chore: apply suggestionsNejc Habjan2021-05-301-1/+1
|
* feat(objects): support all issues statistics endpointsNejc Habjan2021-05-301-0/+2
|
* feat(objects): add support for descendant groups APINejc Habjan2021-05-291-0/+17
|
* feat(objects): add support for billable membersNejc Habjan2021-05-251-1/+6
|
* chore: fix import ordering using isortJohn L. Villalovos2021-05-251-6/+7
| | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/
* feat: add feature to get inherited member for project/groupOleksii Shkurupii2021-05-071-1/+2
|
* Merge pull request #1420 from python-gitlab/fix/missing-list-attributesJohn Villalovos2021-05-061-1/+2
|\ | | | | fix(objects): make lists work for filters in all objects
| * fix(objects): allow lists for filters for in all objectsfix/missing-list-attributesNejc Habjan2021-04-271-1/+2
| |
* | fix(objects): add missing group attributesNejc Habjan2021-05-011-0/+9
|/
* chore: fix F401 errors reported by flake8John L. Villalovos2021-04-181-19/+19
| | | | | | F401: Module imported but unused https://www.flake8rules.com/rules/F401.html
* Merge pull request #1366 from JohnVillalovos/jlvillal/create_attrsNejc Habjan2021-04-171-7/+6
|\ | | | | chore: have _create_attrs & _update_attrs be a namedtuple
| * chore: have _create_attrs & _update_attrs be a namedtupleJohn L. Villalovos2021-04-171-7/+6
| | | | | | | | | | | | Convert _create_attrs and _update_attrs to use a NamedTuple (RequiredOptional) to help with code readability. Update all code to use the NamedTuple.
* | feat(objects): add support for group audit events APIfeat/all-audit-eventsNejc Habjan2021-03-071-0/+2
|/
* chore: remove usage of 'from ... import *'John L. Villalovos2021-02-231-2/+2
| | | | | | | | | | | | | | | | | | In gitlab/v4/objects/*.py remove usage of: * from gitlab.base import * * from gitlab.mixins import * Change them to: * from gitlab.base import CLASS_NAME * from gitlab.mixins import CLASS_NAME Programmatically update code to explicitly import needed classes only. After the change the output of: $ flake8 gitlab/v4/objects/*py | grep 'REST\|Mixin' Is empty. Before many messages about unable to determine if it was a valid name.
* refactor(api): explicitly export classes for star importsrefactor/split-objectsNejc Habjan2021-02-071-0/+8
|
* refactor(v4): split objects and managers per API resourceNejc Habjan2021-02-071-0/+286