elody 0.0.176__tar.gz → 0.0.178__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.
- {elody-0.0.176 → elody-0.0.178}/PKG-INFO +1 -1
- {elody-0.0.176 → elody-0.0.178}/pyproject.toml +1 -1
- {elody-0.0.176 → elody-0.0.178}/src/elody/object_configurations/base_object_configuration.py +10 -5
- {elody-0.0.176 → elody-0.0.178}/src/elody/util.py +2 -1
- {elody-0.0.176 → elody-0.0.178}/src/elody.egg-info/PKG-INFO +1 -1
- {elody-0.0.176 → elody-0.0.178}/LICENSE +0 -0
- {elody-0.0.176 → elody-0.0.178}/README.md +0 -0
- {elody-0.0.176 → elody-0.0.178}/setup.cfg +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/__init__.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/__init__.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/client.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/csv.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/error_codes.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/exceptions.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/job.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/loader.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/migration/__init__.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/migration/base_object_migrator.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/object_configurations/__init__.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/object_configurations/elody_configuration.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/object_configurations/job_configuration.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/__init__.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authentication/__init__.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authentication/base_user_tenant_validation_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authentication/multi_tenant_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/__init__.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/filter_generic_objects_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/filter_generic_objects_policy_v2.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_detail_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_mediafiles_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_metadata_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_relations_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_request_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_request_policy_v2.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/mediafile_derivatives_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/mediafile_download_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/multi_tenant_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/tenant_request_policy.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/helpers.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/permission_handler.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/policies/tenant_id_resolver.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/schemas.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody/validator.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody.egg-info/SOURCES.txt +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody.egg-info/dependency_links.txt +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody.egg-info/requires.txt +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/elody.egg-info/top_level.txt +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/tests/__init_.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/tests/data.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/tests/unit/__init__.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/tests/unit/test_csv.py +0 -0
- {elody-0.0.176 → elody-0.0.178}/src/tests/unit/test_utils.py +0 -0
{elody-0.0.176 → elody-0.0.178}/src/elody/object_configurations/base_object_configuration.py
RENAMED
|
@@ -17,8 +17,8 @@ class BaseObjectConfiguration(ABC):
|
|
|
17
17
|
overwrite=overwrite,
|
|
18
18
|
**kwargs,
|
|
19
19
|
),
|
|
20
|
-
"nested_matcher_builder": lambda object_lists, keys_info, value: self.__build_nested_matcher(
|
|
21
|
-
object_lists, keys_info, value
|
|
20
|
+
"nested_matcher_builder": lambda object_lists, keys_info, value, **kwargs: self.__build_nested_matcher(
|
|
21
|
+
object_lists, keys_info, value, **kwargs
|
|
22
22
|
),
|
|
23
23
|
"post_crud_hook": lambda **kwargs: None,
|
|
24
24
|
"pre_crud_hook": lambda *, document, **kwargs: document,
|
|
@@ -142,11 +142,16 @@ class BaseObjectConfiguration(ABC):
|
|
|
142
142
|
sort_keys(document)
|
|
143
143
|
return document
|
|
144
144
|
|
|
145
|
-
def __build_nested_matcher(
|
|
145
|
+
def __build_nested_matcher(
|
|
146
|
+
self, object_lists, keys_info, value, *, index=0, **kwargs
|
|
147
|
+
):
|
|
146
148
|
if index == 0 and not any(info["object_list"] for info in keys_info):
|
|
147
149
|
if value in ["ANY_MATCH", "NONE_MATCH"]:
|
|
148
150
|
value = {"$exists": value == "ANY_MATCH"}
|
|
149
|
-
|
|
151
|
+
matcher = {".".join(info["key"] for info in keys_info): value}
|
|
152
|
+
if inner_exact_matches := kwargs.get("inner_exact_matches"):
|
|
153
|
+
matcher.update(inner_exact_matches)
|
|
154
|
+
return matcher
|
|
150
155
|
|
|
151
156
|
info = keys_info[index]
|
|
152
157
|
|
|
@@ -155,7 +160,7 @@ class BaseObjectConfiguration(ABC):
|
|
|
155
160
|
"$elemMatch": {
|
|
156
161
|
object_lists[info["object_list"]]: info["object_key"],
|
|
157
162
|
**self.__build_nested_matcher(
|
|
158
|
-
object_lists, keys_info[index + 1 :], value, 0
|
|
163
|
+
object_lists, keys_info[index + 1 :], value, index=0, **kwargs
|
|
159
164
|
),
|
|
160
165
|
}
|
|
161
166
|
}
|
|
@@ -223,10 +223,11 @@ def signal_edge_changed(mq_client, parent_ids_from_changed_edges):
|
|
|
223
223
|
send_cloudevent(mq_client, "dams", "dams.edge_changed", data)
|
|
224
224
|
|
|
225
225
|
|
|
226
|
-
def signal_entity_changed(mq_client, entity):
|
|
226
|
+
def signal_entity_changed(mq_client, entity, unchanged_entity=None):
|
|
227
227
|
data = {
|
|
228
228
|
"location": f"/entities/{get_raw_id(entity)}",
|
|
229
229
|
"type": entity.get("type", "unspecified"),
|
|
230
|
+
"unchanged_entity": unchanged_entity,
|
|
230
231
|
}
|
|
231
232
|
send_cloudevent(mq_client, "dams", "dams.entity_changed", data)
|
|
232
233
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/filter_generic_objects_policy.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/filter_generic_objects_policy_v2.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_detail_policy.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_mediafiles_policy.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_metadata_policy.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_relations_policy.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_request_policy.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/generic_object_request_policy_v2.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/mediafile_derivatives_policy.py
RENAMED
|
File without changes
|
{elody-0.0.176 → elody-0.0.178}/src/elody/policies/authorization/mediafile_download_policy.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
|