Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor(objects): remove deprecated constants defined in objects#1593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JohnVillalovos merged 1 commit intomasterfromrefactor/consts-in-const-module
Sep 11, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletionsgitlab/const.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,12 +25,11 @@
REPORTER_ACCESS: int = 20
DEVELOPER_ACCESS: int = 30
MAINTAINER_ACCESS: int = 40
MASTER_ACCESS: int = MAINTAINER_ACCESS
OWNER_ACCESS: int = 50

VISIBILITY_PRIVATE:int =0
VISIBILITY_INTERNAL:int =10
VISIBILITY_PUBLIC:int =20
VISIBILITY_PRIVATE:str ="private"
VISIBILITY_INTERNAL:str ="internal"
VISIBILITY_PUBLIC:str ="public"

NOTIFICATION_LEVEL_DISABLED: str = "disabled"
NOTIFICATION_LEVEL_PARTICIPATING: str = "participating"
Expand Down
11 changes: 0 additions & 11 deletionsgitlab/v4/objects/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -74,15 +74,4 @@
from .variables import *
from .wikis import *

# TODO: deprecate these in favor of gitlab.const.*
VISIBILITY_PRIVATE = "private"
VISIBILITY_INTERNAL = "internal"
VISIBILITY_PUBLIC = "public"

ACCESS_GUEST = 10
ACCESS_REPORTER = 20
ACCESS_DEVELOPER = 30
ACCESS_MASTER = 40
ACCESS_OWNER = 50

__all__ = [name for name in dir() if not name.startswith("_")]
2 changes: 1 addition & 1 deletiontests/functional/api/test_snippets.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,7 +33,7 @@ def test_project_snippets(project):
"title": "snip1",
"file_name": "foo.py",
"content": "initial content",
"visibility": gitlab.v4.objects.VISIBILITY_PRIVATE,
"visibility": gitlab.VISIBILITY_PRIVATE,
}
)

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp