pilot-platform-common 2.3.0__tar.gz → 2.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/PKG-INFO +1 -1
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/project/project_client.py +5 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/pilot_platform_common.egg-info/PKG-INFO +1 -1
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/pyproject.toml +1 -1
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/setup.py +1 -1
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/conftest.py +1 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/test_project_client.py +3 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/README.md +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/geid/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/geid/geid_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/jwt_handler/JWTHandler.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/jwt_handler/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/jwt_handler/jwt_handler_exception.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/jwt_handler/models.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/logging/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/logging/formatter.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/logging/logger.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/logging/logging.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/models/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/models/config_center_policy.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/models/service_id_generator.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/object_storage_adaptor/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/object_storage_adaptor/base_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/object_storage_adaptor/boto3_admin_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/object_storage_adaptor/boto3_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/object_storage_adaptor/minio_policy_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/permissions/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/permissions/exceptions.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/permissions/permissions.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/permissions/permissions_manager.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/permissions/schemas.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/project/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/project/project_exceptions.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/services/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/services/auth_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/vault/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/vault/vault_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/vault/vault_exception.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/pilot_platform_common.egg-info/SOURCES.txt +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/pilot_platform_common.egg-info/dependency_links.txt +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/pilot_platform_common.egg-info/requires.txt +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/pilot_platform_common.egg-info/top_level.txt +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/setup.cfg +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/fixtures/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/fixtures/fake.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/fixtures/metadata.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/permissions/__init__.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/permissions/test_auth_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/permissions/test_permissions.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/permissions/test_permissions_manager.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/test_formatter.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/test_geid_client.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/test_jwt_handler.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/test_logging.py +0 -0
- {pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/test_vault_client.py +0 -0
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/project/project_client.py
RENAMED
|
@@ -33,6 +33,7 @@ class ProjectObject:
|
|
|
33
33
|
'updated_at',
|
|
34
34
|
'is_favourite',
|
|
35
35
|
'state',
|
|
36
|
+
'created_by',
|
|
36
37
|
]
|
|
37
38
|
|
|
38
39
|
def __init__(self, data, project_client):
|
|
@@ -59,6 +60,7 @@ class ProjectObject:
|
|
|
59
60
|
system_tags=None,
|
|
60
61
|
is_discoverable=None,
|
|
61
62
|
state=None,
|
|
63
|
+
notify_users=None,
|
|
62
64
|
):
|
|
63
65
|
await self.project_client.connect_redis()
|
|
64
66
|
data = {
|
|
@@ -70,6 +72,7 @@ class ProjectObject:
|
|
|
70
72
|
'system_tags': system_tags,
|
|
71
73
|
'is_discoverable': is_discoverable,
|
|
72
74
|
'state': state,
|
|
75
|
+
'notify_users': notify_users,
|
|
73
76
|
}
|
|
74
77
|
# remove blank items
|
|
75
78
|
data = {k: v for k, v in data.items() if v is not None}
|
|
@@ -198,6 +201,7 @@ class ProjectClient:
|
|
|
198
201
|
name: str,
|
|
199
202
|
description: str,
|
|
200
203
|
operator: str,
|
|
204
|
+
created_by: str,
|
|
201
205
|
image_url: Union[str, None] = None,
|
|
202
206
|
tags: Union[list[str], None] = None,
|
|
203
207
|
system_tags: Union[list[str], None] = None,
|
|
@@ -216,6 +220,7 @@ class ProjectClient:
|
|
|
216
220
|
'tags': tags,
|
|
217
221
|
'system_tags': system_tags,
|
|
218
222
|
'is_discoverable': is_discoverable,
|
|
223
|
+
'created_by': created_by,
|
|
219
224
|
}
|
|
220
225
|
# remove blank items
|
|
221
226
|
data = {k: v for k, v in data.items() if v is not None}
|
|
@@ -11,7 +11,7 @@ long_description = (this_directory / 'README.md').read_text()
|
|
|
11
11
|
|
|
12
12
|
setuptools.setup(
|
|
13
13
|
name='pilot-platform-common',
|
|
14
|
-
version='2.
|
|
14
|
+
version='2.5.0',
|
|
15
15
|
author='Indoc Systems',
|
|
16
16
|
author_email='etaylor@indocresearch.org',
|
|
17
17
|
description='Generates entity ID and connects with Vault (secret engine) to retrieve credentials',
|
|
@@ -110,9 +110,11 @@ def test_create_project_200(fake, redis, httpx_mock):
|
|
|
110
110
|
operator=fake.user_name(),
|
|
111
111
|
tags=PROJECT_DATA['tags'],
|
|
112
112
|
system_tags=PROJECT_DATA['system_tags'],
|
|
113
|
+
created_by=PROJECT_DATA['created_by'],
|
|
113
114
|
)
|
|
114
115
|
assert project.name == PROJECT_DATA['name']
|
|
115
116
|
assert project.state == PROJECT_DATA['state']
|
|
117
|
+
assert project.created_by == PROJECT_DATA['created_by']
|
|
116
118
|
|
|
117
119
|
|
|
118
120
|
def test_create_project_500(fake, redis, httpx_mock):
|
|
@@ -132,6 +134,7 @@ def test_create_project_500(fake, redis, httpx_mock):
|
|
|
132
134
|
operator=fake.user_name(),
|
|
133
135
|
tags=PROJECT_DATA['tags'],
|
|
134
136
|
system_tags=PROJECT_DATA['system_tags'],
|
|
137
|
+
created_by=PROJECT_DATA['created_by'],
|
|
135
138
|
)
|
|
136
139
|
|
|
137
140
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/jwt_handler/JWTHandler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/models/config_center_policy.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/models/service_id_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/permissions/exceptions.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/permissions/permissions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/common/project/project_exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/permissions/test_auth_client.py
RENAMED
|
File without changes
|
{pilot_platform_common-2.3.0 → pilot_platform_common-2.5.0}/tests/permissions/test_permissions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|