elody 0.0.213__tar.gz → 0.0.214__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.213 → elody-0.0.214}/PKG-INFO +1 -1
- {elody-0.0.213 → elody-0.0.214}/pyproject.toml +1 -1
- {elody-0.0.213 → elody-0.0.214}/src/elody/object_configurations/elody_configuration.py +40 -2
- {elody-0.0.213 → elody-0.0.214}/src/elody.egg-info/PKG-INFO +1 -1
- {elody-0.0.213 → elody-0.0.214}/LICENSE +0 -0
- {elody-0.0.213 → elody-0.0.214}/README.md +0 -0
- {elody-0.0.213 → elody-0.0.214}/setup.cfg +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/__init__.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/__init__.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/client.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/csv.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/error_codes.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/exceptions.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/job.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/loader.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/migration/__init__.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/migration/base_object_migrator.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/object_configurations/__init__.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/object_configurations/base_object_configuration.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/object_configurations/job_configuration.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/object_configurations/saved_search_configuration.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/__init__.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authentication/__init__.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authentication/base_user_tenant_validation_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authentication/multi_tenant_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/__init__.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/filter_generic_objects_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/filter_generic_objects_policy_v2.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_detail_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_mediafiles_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_metadata_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_relations_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_request_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_request_policy_v2.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/mediafile_derivatives_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/mediafile_download_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/multi_tenant_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/tenant_request_policy.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/helpers.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/policies/permission_handler.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/schemas.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/util.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody/validator.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody.egg-info/SOURCES.txt +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody.egg-info/dependency_links.txt +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody.egg-info/requires.txt +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/elody.egg-info/top_level.txt +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/tests/__init_.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/tests/data.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/tests/unit/__init__.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/tests/unit/test_csv.py +0 -0
- {elody-0.0.213 → elody-0.0.214}/src/tests/unit/test_utils.py +0 -0
|
@@ -179,7 +179,45 @@ class ElodyConfiguration(BaseObjectConfiguration):
|
|
|
179
179
|
def _sorting(self, key_order_map, **_):
|
|
180
180
|
addFields, sort = {}, {}
|
|
181
181
|
for key, order in key_order_map.items():
|
|
182
|
-
if key
|
|
182
|
+
if key == "order":
|
|
183
|
+
addFields.update(
|
|
184
|
+
{
|
|
185
|
+
key: {
|
|
186
|
+
"$arrayElemAt": [
|
|
187
|
+
{
|
|
188
|
+
"$map": {
|
|
189
|
+
"input": {
|
|
190
|
+
"$filter": {
|
|
191
|
+
"input": "$relations",
|
|
192
|
+
"as": "relation",
|
|
193
|
+
"cond": {
|
|
194
|
+
"$eq": [
|
|
195
|
+
{
|
|
196
|
+
"$arrayElemAt": [
|
|
197
|
+
"$$relation.metadata.key",
|
|
198
|
+
0,
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
key,
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"as": "relation",
|
|
207
|
+
"in": {
|
|
208
|
+
"$arrayElemAt": [
|
|
209
|
+
"$$relation.metadata.value",
|
|
210
|
+
0,
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
0,
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
elif key not in ["date_created", "date_updated", "last_editor"]:
|
|
183
221
|
addFields.update(
|
|
184
222
|
{
|
|
185
223
|
key: {
|
|
@@ -196,7 +234,7 @@ class ElodyConfiguration(BaseObjectConfiguration):
|
|
|
196
234
|
}
|
|
197
235
|
},
|
|
198
236
|
"as": "metadata",
|
|
199
|
-
"in": {
|
|
237
|
+
"in": {"$toLower": "$$metadata.value"},
|
|
200
238
|
}
|
|
201
239
|
},
|
|
202
240
|
0,
|
|
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.213 → elody-0.0.214}/src/elody/object_configurations/base_object_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/object_configurations/saved_search_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/filter_generic_objects_policy.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/filter_generic_objects_policy_v2.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_detail_policy.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_mediafiles_policy.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_metadata_policy.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_relations_policy.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_request_policy.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/generic_object_request_policy_v2.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/src/elody/policies/authorization/mediafile_derivatives_policy.py
RENAMED
|
File without changes
|
{elody-0.0.213 → elody-0.0.214}/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
|