Skip to content

Commit ce39754

Browse files
committed
refactor(objects): remove deprecated constants defined in objects
BREAKING CHANGE: remove deprecated constants defined in gitlab.v4.objects, and use only gitlab.const module
1 parent 8236281 commit ce39754

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

gitlab/const.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
REPORTER_ACCESS: int = 20
2626
DEVELOPER_ACCESS: int = 30
2727
MAINTAINER_ACCESS: int = 40
28-
MASTER_ACCESS: int = MAINTAINER_ACCESS
2928
OWNER_ACCESS: int = 50
3029

3130
VISIBILITY_PRIVATE: int = 0

gitlab/v4/objects/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,4 @@
7474
from .variables import *
7575
from .wikis import *
7676

77-
# TODO: deprecate these in favor of gitlab.const.*
78-
VISIBILITY_PRIVATE = "private"
79-
VISIBILITY_INTERNAL = "internal"
80-
VISIBILITY_PUBLIC = "public"
81-
82-
ACCESS_GUEST = 10
83-
ACCESS_REPORTER = 20
84-
ACCESS_DEVELOPER = 30
85-
ACCESS_MASTER = 40
86-
ACCESS_OWNER = 50
87-
8877
__all__ = [name for name in dir() if not name.startswith("_")]

tests/functional/api/test_snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_project_snippets(project):
3333
"title": "snip1",
3434
"file_name": "foo.py",
3535
"content": "initial content",
36-
"visibility": gitlab.v4.objects.VISIBILITY_PRIVATE,
36+
"visibility": gitlab.VISIBILITY_PRIVATE,
3737
}
3838
)
3939

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy