Performance: faster statistics panel on dashboard (#11760)

This commit is contained in:
Antoine Mérino
2026-01-26 21:10:57 +01:00
committed by GitHub
parent cac1b721b9
commit df07b8a03e
5 changed files with 73 additions and 34 deletions

View File

@@ -241,6 +241,10 @@ class TestExportImport(
checksum = hashlib.md5(f.read()).hexdigest()
self.assertEqual(checksum, element["fields"]["checksum"])
# Generated field "content_length" should not be exported,
# it is automatically computed during import.
self.assertNotIn("content_length", element["fields"])
if document_exporter.EXPORTER_ARCHIVE_NAME in element:
fname = (
self.target / element[document_exporter.EXPORTER_ARCHIVE_NAME]