summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/projects.py
Commit message (Collapse)AuthorAgeFilesLines
* feat: add support for `projects.groups.list()`jlvillal/project_groupsJohn L. Villalovos2021-11-261-0/+19
| | | | | | Add support for `projects.groups.list()` endpoint. Closes #1717
* refactor: use new-style formatting for named placeholdersNejc Habjan2021-11-081-3/+3
|
* refactor: use f-strings for string formattingNejc Habjan2021-11-051-33/+28
|
* feat(api): add merge trainsJacob Henner2021-10-201-0/+2
| | | | Add support for merge trains
* 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`.
* refactor(objects): remove deprecated project.issuesstatisticsNejc Habjan2021-09-081-1/+0
| | | | | BREAKING CHANGE: remove deprecated project.issuesstatistics in favor of project.issues_statistics
* chore: convert to using type-annotations for managersJohn L. Villalovos2021-09-081-56/+1
| | | | | | | | | | | | | 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-11/+65
| | | | | | | | | | | | | | | 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
* docs: make Gitlab class usable for intersphinxNejc Habjan2021-06-141-12/+18
|
* chore: add type-hints to gitlab/v4/objects/projects.pyJohn L. Villalovos2021-06-121-49/+114
| | | | Adding type-hints to gitlab/v4/objects/projects.py
* chore: sync create and update attributes for ProjectsJohn L. Villalovos2021-06-031-81/+99
| | | | | | | | | | | | | Sync the create attributes with: https://docs.gitlab.com/ee/api/projects.html#create-project Sync the update attributes with documentation at: https://docs.gitlab.com/ee/api/projects.html#edit-project As a note the ordering of the attributes was done to match the ordering of the attributes in the documentation. Closes: #1497
* feat(objects): add support for generic packages APINejc Habjan2021-05-311-1/+2
|
* chore: apply suggestionsNejc Habjan2021-05-301-1/+2
|
* chore: fix import ordering using isortJohn L. Villalovos2021-05-251-6/+6
| | | | | | 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
|
* fix(objects): allow lists for filters for in all objectsfix/missing-list-attributesNejc Habjan2021-04-271-1/+2
|
* chore: fix F401 errors reported by flake8John L. Villalovos2021-04-181-41/+44
| | | | | | F401: Module imported but unused https://www.flake8rules.com/rules/F401.html
* Merge pull request #1366 from JohnVillalovos/jlvillal/create_attrsNejc Habjan2021-04-171-10/+10
|\ | | | | chore: have _create_attrs & _update_attrs be a namedtuple
| * chore: have _create_attrs & _update_attrs be a namedtupleJohn L. Villalovos2021-04-171-10/+10
| | | | | | | | | | | | 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-2/+2
|/
* chore(api): move repository endpoints into separate modulechore/split-repository-methodsNejc Habjan2021-02-281-197/+2
|
* Merge pull request #1319 from JohnVillalovos/jlvillal/import_starNejc Habjan2021-02-251-2/+10
|\ | | | | chore: remove usage of 'from ... import *'
| * chore: remove usage of 'from ... import *'John L. Villalovos2021-02-231-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | feat(projects): add project access token apiMax Wittig2021-02-241-0/+2
|/
* fix: undefined name errorsJohn L. Villalovos2021-02-231-3/+7
| | | | Discovered that there were some undefined names.
* chore(objects): make Project refreshableNejc Habjan2021-02-211-1/+1
| | | | Helps getting the real state of the project from the server.
* feat(objects): add Release Links API supportNejc Habjan2021-02-211-1/+2
|
* feat: add project audit endpointClayton Walker2021-02-191-0/+2
|
* refactor(api): explicitly export classes for star importsrefactor/split-objectsNejc Habjan2021-02-071-2/+13
|
* refactor(v4): split objects and managers per API resourceNejc Habjan2021-02-071-0/+1120