files: syncing metadata changes for uploaded files #1618
Annotations
4 errors
Tests / Tests (3.9, postgresql14, opensearch2):
invenio_records_resources/records/systemfields/files/manager.py#L1
Black format check
--- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/records/systemfields/files/manager.py 2024-08-08 14:30:27.607291+00:00
+++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/records/systemfields/files/manager.py 2024-08-08 14:32:54.584543+00:00
@@ -369,11 +369,14 @@
# Check for metadata and access changes
for key, dest_rf in self.entries.items():
if key in src_files:
src_rf = src_files[key]
- if src_rf.metadata != dest_rf.metadata or src_rf.access != dest_rf.access:
+ if (
+ src_rf.metadata != dest_rf.metadata
+ or src_rf.access != dest_rf.access
+ ):
obj_or_key = dest_rf.object_version
self[key] = obj_or_key, dict(src_rf)
@Property
def entries(self):
|
Tests / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|
Tests / Tests (3.12, postgresql14, opensearch2):
invenio_records_resources/records/systemfields/files/manager.py#L1
Black format check
--- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/records/systemfields/files/manager.py 2024-08-08 14:30:26.483987+00:00
+++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/records/systemfields/files/manager.py 2024-08-08 14:33:19.570609+00:00
@@ -369,11 +369,14 @@
# Check for metadata and access changes
for key, dest_rf in self.entries.items():
if key in src_files:
src_rf = src_files[key]
- if src_rf.metadata != dest_rf.metadata or src_rf.access != dest_rf.access:
+ if (
+ src_rf.metadata != dest_rf.metadata
+ or src_rf.access != dest_rf.access
+ ):
obj_or_key = dest_rf.object_version
self[key] = obj_or_key, dict(src_rf)
@Property
def entries(self):
|
Tests / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|