pilot-platform-common 0.2.7__tar.gz → 0.2.8__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-0.2.7/pilot_platform_common.egg-info → pilot-platform-common-0.2.8}/PKG-INFO +1 -1
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/permissions/permissions.py +3 -3
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8/pilot_platform_common.egg-info}/PKG-INFO +1 -1
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/pyproject.toml +1 -1
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/setup.py +1 -1
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/test_permissions.py +1 -1
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/LICENSE +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/README.md +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/geid/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/geid/geid_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/jwt_handler/JWTHandler.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/jwt_handler/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/jwt_handler/jwt_handler_exception.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/lineage/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/lineage/entity_object.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/lineage/lineage_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/lineage/lineage_object.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/logger/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/logger/formatter.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/logger/logger_factory.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/models/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/models/config_center_policy.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/models/service_id_generator.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/object_storage_adaptor/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/object_storage_adaptor/base_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/object_storage_adaptor/boto3_admin_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/object_storage_adaptor/boto3_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/object_storage_adaptor/minio_policy_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/permissions/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/project/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/project/project_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/project/project_exceptions.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/vault/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/vault/vault_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/vault/vault_exception.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/pilot_platform_common.egg-info/SOURCES.txt +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/pilot_platform_common.egg-info/dependency_links.txt +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/pilot_platform_common.egg-info/requires.txt +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/pilot_platform_common.egg-info/top_level.txt +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/setup.cfg +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/__init__.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/conftest.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/test_formatter.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/test_geid_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/test_jwt_handler.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/test_lineage_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/test_logger_factory.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/test_project_client.py +0 -0
- {pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/tests/test_vault_client.py +0 -0
{pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/permissions/permissions.py
RENAMED
|
@@ -79,10 +79,10 @@ async def has_file_permission(auth_url, file_entity: dict, operation: str, curre
|
|
|
79
79
|
|
|
80
80
|
zone = 'greenroom' if file_entity['zone'] == 0 else 'core'
|
|
81
81
|
|
|
82
|
-
if
|
|
83
|
-
path_for_permissions = 'parent_path'
|
|
84
|
-
else:
|
|
82
|
+
if file_entity.get('status') == 'ARCHIVED':
|
|
85
83
|
path_for_permissions = 'restore_path'
|
|
84
|
+
else:
|
|
85
|
+
path_for_permissions = 'parent_path'
|
|
86
86
|
root_folder = file_entity[path_for_permissions].split('/')[0]
|
|
87
87
|
|
|
88
88
|
if root_folder != username:
|
|
@@ -22,7 +22,7 @@ long_description = (this_directory / 'README.md').read_text()
|
|
|
22
22
|
|
|
23
23
|
setuptools.setup(
|
|
24
24
|
name='pilot-platform-common',
|
|
25
|
-
version='0.2.
|
|
25
|
+
version='0.2.8',
|
|
26
26
|
author='Indoc Research',
|
|
27
27
|
author_email='etaylor@indocresearch.org',
|
|
28
28
|
description='Generates entity ID and connects with Vault (secret engine) to retrieve credentials',
|
|
@@ -178,7 +178,7 @@ class TestFilePermissions:
|
|
|
178
178
|
@pytest.mark.asyncio
|
|
179
179
|
async def test_has_file_permission_archived(self, httpx_mock):
|
|
180
180
|
file_data = {
|
|
181
|
-
'
|
|
181
|
+
'status': 'ARCHIVED',
|
|
182
182
|
'restore_path': 'test',
|
|
183
183
|
'zone': 'core',
|
|
184
184
|
'container_code': 'test_project',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/jwt_handler/JWTHandler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/lineage/lineage_client.py
RENAMED
|
File without changes
|
{pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/lineage/lineage_object.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/models/config_center_policy.py
RENAMED
|
File without changes
|
{pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/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
|
|
File without changes
|
{pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/common/project/project_client.py
RENAMED
|
File without changes
|
{pilot-platform-common-0.2.7 → pilot-platform-common-0.2.8}/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
|
|
File without changes
|
|
File without changes
|