From 5ab6f529246ee77d25deaf7497d6cf4213f0fbff Mon Sep 17 00:00:00 2001 From: ml bonhomme <bonhomme@teklia.com> Date: Wed, 24 Jan 2024 08:36:03 +0000 Subject: [PATCH] Remove Training process mode --- arkindex/documents/deletion.py | 29 - arkindex/documents/fixtures/data.json | 1122 ++++++++--------- arkindex/documents/managers.py | 5 - ...del_remove_process_test_folder_and_more.py | 40 + arkindex/process/models.py | 31 - arkindex/process/serializers/imports.py | 38 +- arkindex/process/serializers/worker_runs.py | 4 +- .../process/tests/test_corpus_worker_runs.py | 8 - arkindex/process/tests/test_create_process.py | 24 - arkindex/process/tests/test_processes.py | 27 +- .../process/tests/test_user_workerruns.py | 16 - arkindex/process/tests/test_workerruns.py | 84 -- .../sql_validation/element_dot_delete.sql | 24 - .../sql_validation/element_trash_children.sql | 87 -- .../sql_validation/element_trash_deep.sql | 153 --- .../sql_validation/element_trash_ml_class.sql | 60 - .../element_trash_no_children.sql | 21 - .../process_elements_filter_ml_class.sql | 6 +- .../process_elements_filter_type.sql | 6 +- .../process_elements_top_level.sql | 6 +- .../process_elements_with_image.sql | 6 +- .../worker_results_delete_all_versions.sql | 60 - ...er_results_delete_configuration_filter.sql | 30 - .../worker_results_delete_in_corpus.sql | 60 - ...ults_delete_model_version_under_parent.sql | 69 - .../worker_results_delete_under_parent.sql | 57 - ...r_results_delete_under_parent_included.sql | 96 -- ...ker_results_delete_unset_configuration.sql | 69 - 28 files changed, 622 insertions(+), 1616 deletions(-) create mode 100644 arkindex/process/migrations/0028_remove_process_model_remove_process_test_folder_and_more.py diff --git a/arkindex/documents/deletion.py b/arkindex/documents/deletion.py index e49077e265..68d68e58d4 100644 --- a/arkindex/documents/deletion.py +++ b/arkindex/documents/deletion.py @@ -70,35 +70,6 @@ def delete_element(element_id: UUID) -> None: """, {"id": element_id}) logger.info(f"Deleted {cursor.rowcount} usage from process as element") - # Set folders references on training processes to None - cursor.execute(""" - UPDATE process_process - SET train_folder_id = NULL - WHERE train_folder_id = %(id)s - OR train_folder_id IN ( - SELECT element_id FROM documents_elementpath WHERE path && ARRAY[%(id)s] - ) - """, {"id": element_id}) - logger.info(f"Deleted {cursor.rowcount} usage from process as train folder") - cursor.execute(""" - UPDATE process_process - SET validation_folder_id = NULL - WHERE validation_folder_id = %(id)s - OR validation_folder_id IN ( - SELECT element_id FROM documents_elementpath WHERE path && ARRAY[%(id)s] - ) - """, {"id": element_id}) - logger.info(f"Deleted {cursor.rowcount} usage from process as validation folder") - cursor.execute(""" - UPDATE process_process - SET test_folder_id = NULL - WHERE test_folder_id = %(id)s - OR test_folder_id IN ( - SELECT element_id FROM documents_elementpath WHERE path && ARRAY[%(id)s] - ) - """, {"id": element_id}) - logger.info(f"Deleted {cursor.rowcount} usage from process as test folder") - # Remove user selections cursor.execute(""" DELETE FROM documents_selection selection diff --git a/arkindex/documents/fixtures/data.json b/arkindex/documents/fixtures/data.json index e83b947afe..20d3e109a8 100644 --- a/arkindex/documents/fixtures/data.json +++ b/arkindex/documents/fixtures/data.json @@ -1,7 +1,7 @@ [ { "model": "process.process", - "pk": "058fd42a-ff15-4c95-95fc-e3743dbbbcdb", + "pk": "245bc206-350c-43d5-8db3-d98645c4eaa9", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -13,7 +13,7 @@ "activity_state": "disabled", "started": null, "finished": null, - "farm": "296cbab6-7c00-4866-8890-4e40bf78a6a6", + "farm": "c19116b6-866f-4bb7-b447-3544629a8151", "element": null, "folder_type": null, "element_type": null, @@ -27,28 +27,24 @@ "template": null, "bucket_name": null, "prefix": null, - "model": null, - "train_folder": null, - "validation_folder": null, - "test_folder": null, "files": [] } }, { "model": "process.process", - "pk": "685bdd10-7fdf-4363-b62e-886bd89a4919", + "pk": "64b06ffd-a8c4-4ba2-bbb5-c99eb99121a0", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "name": "Process fixture", "creator": 2, - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", "mode": "workers", "revision": null, "activity_state": "disabled", "started": null, "finished": null, - "farm": "296cbab6-7c00-4866-8890-4e40bf78a6a6", + "farm": "c19116b6-866f-4bb7-b447-3544629a8151", "element": null, "folder_type": null, "element_type": null, @@ -62,16 +58,12 @@ "template": null, "bucket_name": null, "prefix": null, - "model": null, - "train_folder": null, - "validation_folder": null, - "test_folder": null, "files": [] } }, { "model": "process.process", - "pk": "b569febd-7bb0-4283-8d86-4535d43a5686", + "pk": "98e30036-bd74-4480-82c0-98c3199a4503", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -97,16 +89,12 @@ "template": null, "bucket_name": null, "prefix": null, - "model": null, - "train_folder": null, - "validation_folder": null, - "test_folder": null, "files": [] } }, { "model": "process.process", - "pk": "ee420daa-2192-43e1-9206-726edec61c72", + "pk": "e395a111-ab5a-4c93-8901-b1f8bafde684", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -132,142 +120,138 @@ "template": null, "bucket_name": null, "prefix": null, - "model": null, - "train_folder": null, - "validation_folder": null, - "test_folder": null, "files": [] } }, { "model": "process.repository", - "pk": "d00dbcb7-c16c-4c3f-b070-bc3b4e5c4fa3", + "pk": "6a07d21c-cc43-4c2b-8c72-5105a0399055", "fields": { "url": "http://my_repo.fake/workers/worker" } }, { "model": "process.repository", - "pk": "d9701b21-f620-497f-839e-049969784e2b", + "pk": "b44445fb-1586-4673-b61c-c8057ccc9878", "fields": { "url": "http://gitlab/repo" } }, { "model": "process.revision", - "pk": "24b5a51d-1c85-460c-ba90-269277a61424", + "pk": "5f17c014-45e6-416e-9a6e-86a5de0f79c5", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "repo": "d00dbcb7-c16c-4c3f-b070-bc3b4e5c4fa3", - "hash": "1337", - "message": "My w0rk3r", - "author": "Test user" + "repo": "b44445fb-1586-4673-b61c-c8057ccc9878", + "hash": "42", + "message": "Salve", + "author": "Some user" } }, { "model": "process.revision", - "pk": "9104ff70-7586-463d-a230-949225f00bf8", + "pk": "88be293e-5e58-4b60-8438-3feaf38c0f12", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "repo": "d9701b21-f620-497f-839e-049969784e2b", - "hash": "42", - "message": "Salve", - "author": "Some user" + "repo": "6a07d21c-cc43-4c2b-8c72-5105a0399055", + "hash": "1337", + "message": "My w0rk3r", + "author": "Test user" } }, { "model": "process.worker", - "pk": "31fcc074-a86e-4f5f-9416-f548a4b428cc", + "pk": "19c68046-9fde-4aa6-804d-d3888205722a", "fields": { - "name": "Document layout analyser", - "slug": "dla", - "type": "b4cee6a9-d059-48dc-9e2d-e0d591d45e37", + "name": "Generic worker with a Model", + "slug": "generic", + "type": "189c3b32-1172-4a79-b9a2-3cb14f7f52e3", "description": "", - "repository": "d00dbcb7-c16c-4c3f-b070-bc3b4e5c4fa3", + "repository": "6a07d21c-cc43-4c2b-8c72-5105a0399055", "public": false, "archived": null } }, { "model": "process.worker", - "pk": "32005c5b-88f1-4c54-ad38-a1276558e3e3", + "pk": "1ab3c191-f306-4c6b-89b5-5d41a50a3d22", "fields": { - "name": "File import", - "slug": "file_import", - "type": "799fd6b7-945d-4f1f-9252-2aae4f3cc889", + "name": "Document layout analyser", + "slug": "dla", + "type": "c804b4ef-b2ed-4b82-90c6-fb020e3542d8", "description": "", - "repository": "d00dbcb7-c16c-4c3f-b070-bc3b4e5c4fa3", + "repository": "6a07d21c-cc43-4c2b-8c72-5105a0399055", "public": false, "archived": null } }, { "model": "process.worker", - "pk": "5e4258d9-f8a2-4716-aac2-9293a521831a", + "pk": "5a12340d-c2b9-4d28-800b-6563fb9f6bec", "fields": { "name": "Recognizer", "slug": "reco", - "type": "ed8d9b05-5b55-4dc9-9724-ad8cd437a711", + "type": "189c3b32-1172-4a79-b9a2-3cb14f7f52e3", "description": "", - "repository": "d00dbcb7-c16c-4c3f-b070-bc3b4e5c4fa3", + "repository": "6a07d21c-cc43-4c2b-8c72-5105a0399055", "public": false, "archived": null } }, { "model": "process.worker", - "pk": "71ad2a59-a1c5-427e-94da-bc45c944f0a7", + "pk": "62666365-d37d-4e30-91ad-723405dbdc8e", "fields": { - "name": "Custom worker", - "slug": "custom", - "type": "6d23ada7-4c6e-4fc0-b527-695cdeb3141c", + "name": "Worker requiring a GPU", + "slug": "worker-gpu", + "type": "429e7774-99cd-4672-9438-7d576a69a1a4", "description": "", - "repository": null, + "repository": "6a07d21c-cc43-4c2b-8c72-5105a0399055", "public": false, "archived": null } }, { "model": "process.worker", - "pk": "7df6f050-5af7-4338-9e6b-d99ade1bfc24", + "pk": "bf76d80a-ca52-47e2-8670-2d60c1a675b0", "fields": { - "name": "Worker requiring a GPU", - "slug": "worker-gpu", - "type": "b3b684f3-8b66-4c5b-84a3-75bb9607d845", + "name": "Custom worker", + "slug": "custom", + "type": "2b2c3dae-98be-42c3-927b-28440f8df5d0", "description": "", - "repository": "d00dbcb7-c16c-4c3f-b070-bc3b4e5c4fa3", + "repository": null, "public": false, "archived": null } }, { "model": "process.worker", - "pk": "f8f04683-490f-481c-8fdf-86ad4bea60b7", + "pk": "e61fde1d-e5bb-4188-aefa-1ceb04fa34a7", "fields": { - "name": "Generic worker with a Model", - "slug": "generic", - "type": "ed8d9b05-5b55-4dc9-9724-ad8cd437a711", + "name": "File import", + "slug": "file_import", + "type": "2164e147-3109-4a68-93d7-d68341dedfb2", "description": "", - "repository": "d00dbcb7-c16c-4c3f-b070-bc3b4e5c4fa3", + "repository": "6a07d21c-cc43-4c2b-8c72-5105a0399055", "public": false, "archived": null } }, { "model": "process.workertype", - "pk": "6d23ada7-4c6e-4fc0-b527-695cdeb3141c", + "pk": "189c3b32-1172-4a79-b9a2-3cb14f7f52e3", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "custom", - "display_name": "Custom" + "slug": "recognizer", + "display_name": "Recognizer" } }, { "model": "process.workertype", - "pk": "799fd6b7-945d-4f1f-9252-2aae4f3cc889", + "pk": "2164e147-3109-4a68-93d7-d68341dedfb2", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -277,48 +261,46 @@ }, { "model": "process.workertype", - "pk": "b3b684f3-8b66-4c5b-84a3-75bb9607d845", + "pk": "2b2c3dae-98be-42c3-927b-28440f8df5d0", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "worker", - "display_name": "Worker requiring a GPU" + "slug": "custom", + "display_name": "Custom" } }, { "model": "process.workertype", - "pk": "b4cee6a9-d059-48dc-9e2d-e0d591d45e37", + "pk": "429e7774-99cd-4672-9438-7d576a69a1a4", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "dla", - "display_name": "Document Layout Analysis" + "slug": "worker", + "display_name": "Worker requiring a GPU" } }, { "model": "process.workertype", - "pk": "ed8d9b05-5b55-4dc9-9724-ad8cd437a711", + "pk": "c804b4ef-b2ed-4b82-90c6-fb020e3542d8", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "recognizer", - "display_name": "Recognizer" + "slug": "dla", + "display_name": "Document Layout Analysis" } }, { "model": "process.workerversion", - "pk": "2b15b05d-d4fc-41d9-92cd-a860dbd9c107", + "pk": "1e0dee90-0973-4017-b23d-4d972d7cfc09", "fields": { - "worker": "7df6f050-5af7-4338-9e6b-d99ade1bfc24", - "revision": "24b5a51d-1c85-460c-ba90-269277a61424", + "worker": "e61fde1d-e5bb-4188-aefa-1ceb04fa34a7", + "revision": "88be293e-5e58-4b60-8438-3feaf38c0f12", "version": null, - "configuration": { - "test": 42 - }, + "configuration": {}, "state": "available", - "gpu_usage": "required", + "gpu_usage": "disabled", "model_usage": "disabled", - "docker_image": "21a5c42e-27e7-4b56-a1f9-59c9a98c5a97", + "docker_image": "9a1b1d5d-ec3d-4a21-89da-0e930292467d", "docker_image_iid": null, "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" @@ -326,18 +308,18 @@ }, { "model": "process.workerversion", - "pk": "72342686-2a64-4fda-a22f-d4d1be6e21e3", + "pk": "5ce2dcd8-f35e-41d1-bd73-b40c9661db77", "fields": { - "worker": "31fcc074-a86e-4f5f-9416-f548a4b428cc", - "revision": "24b5a51d-1c85-460c-ba90-269277a61424", - "version": null, + "worker": "bf76d80a-ca52-47e2-8670-2d60c1a675b0", + "revision": null, + "version": 1, "configuration": { - "test": 42 + "custom": "value" }, - "state": "available", + "state": "created", "gpu_usage": "disabled", "model_usage": "disabled", - "docker_image": "21a5c42e-27e7-4b56-a1f9-59c9a98c5a97", + "docker_image": null, "docker_image_iid": null, "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" @@ -345,10 +327,10 @@ }, { "model": "process.workerversion", - "pk": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "pk": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "fields": { - "worker": "5e4258d9-f8a2-4716-aac2-9293a521831a", - "revision": "24b5a51d-1c85-460c-ba90-269277a61424", + "worker": "5a12340d-c2b9-4d28-800b-6563fb9f6bec", + "revision": "88be293e-5e58-4b60-8438-3feaf38c0f12", "version": null, "configuration": { "test": 42 @@ -356,7 +338,7 @@ "state": "available", "gpu_usage": "disabled", "model_usage": "disabled", - "docker_image": "21a5c42e-27e7-4b56-a1f9-59c9a98c5a97", + "docker_image": "9a1b1d5d-ec3d-4a21-89da-0e930292467d", "docker_image_iid": null, "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" @@ -364,18 +346,18 @@ }, { "model": "process.workerversion", - "pk": "c56b9c71-6d7d-4784-aaef-492d4ea5bf42", + "pk": "79d83370-d164-4052-bb29-18f475916ea4", "fields": { - "worker": "f8f04683-490f-481c-8fdf-86ad4bea60b7", - "revision": "24b5a51d-1c85-460c-ba90-269277a61424", + "worker": "62666365-d37d-4e30-91ad-723405dbdc8e", + "revision": "88be293e-5e58-4b60-8438-3feaf38c0f12", "version": null, "configuration": { "test": 42 }, "state": "available", - "gpu_usage": "disabled", - "model_usage": "required", - "docker_image": "21a5c42e-27e7-4b56-a1f9-59c9a98c5a97", + "gpu_usage": "required", + "model_usage": "disabled", + "docker_image": "9a1b1d5d-ec3d-4a21-89da-0e930292467d", "docker_image_iid": null, "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" @@ -383,16 +365,18 @@ }, { "model": "process.workerversion", - "pk": "eaf9d6a7-c399-43bf-814d-fe9942083b62", + "pk": "9e43ea6a-3f53-4a54-9a66-8f1699570f59", "fields": { - "worker": "32005c5b-88f1-4c54-ad38-a1276558e3e3", - "revision": "24b5a51d-1c85-460c-ba90-269277a61424", + "worker": "19c68046-9fde-4aa6-804d-d3888205722a", + "revision": "88be293e-5e58-4b60-8438-3feaf38c0f12", "version": null, - "configuration": {}, + "configuration": { + "test": 42 + }, "state": "available", "gpu_usage": "disabled", - "model_usage": "disabled", - "docker_image": "21a5c42e-27e7-4b56-a1f9-59c9a98c5a97", + "model_usage": "required", + "docker_image": "9a1b1d5d-ec3d-4a21-89da-0e930292467d", "docker_image_iid": null, "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" @@ -400,18 +384,18 @@ }, { "model": "process.workerversion", - "pk": "ecc4ed88-7e15-4194-bfe7-c508cc23e5cd", + "pk": "b0db756e-b291-4ffe-99c7-cd347741d7db", "fields": { - "worker": "71ad2a59-a1c5-427e-94da-bc45c944f0a7", - "revision": null, - "version": 1, + "worker": "1ab3c191-f306-4c6b-89b5-5d41a50a3d22", + "revision": "88be293e-5e58-4b60-8438-3feaf38c0f12", + "version": null, "configuration": { - "custom": "value" + "test": 42 }, - "state": "created", + "state": "available", "gpu_usage": "disabled", "model_usage": "disabled", - "docker_image": null, + "docker_image": "9a1b1d5d-ec3d-4a21-89da-0e930292467d", "docker_image_iid": null, "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" @@ -419,14 +403,14 @@ }, { "model": "process.workerrun", - "pk": "46d3e9c9-21b6-4a65-b8bb-0c72d3a270dd", + "pk": "4b931fc3-4c2b-44ea-8743-4907915554bb", "fields": { - "process": "685bdd10-7fdf-4363-b62e-886bd89a4919", - "version": "72342686-2a64-4fda-a22f-d4d1be6e21e3", + "process": "64b06ffd-a8c4-4ba2-bbb5-c99eb99121a0", + "version": "b0db756e-b291-4ffe-99c7-cd347741d7db", "model_version": null, "parents": "[]", "configuration": null, - "summary": "Worker Document layout analyser @ 723426", + "summary": "Worker Document layout analyser @ b0db75", "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "has_results": false @@ -434,14 +418,14 @@ }, { "model": "process.workerrun", - "pk": "157e9b04-a96a-4172-afa7-fcfca5cdb0ff", + "pk": "4d26aa77-969b-4734-9260-a52b63d6a1d6", "fields": { - "process": "685bdd10-7fdf-4363-b62e-886bd89a4919", - "version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "process": "64b06ffd-a8c4-4ba2-bbb5-c99eb99121a0", + "version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "model_version": null, - "parents": "[\"46d3e9c9-21b6-4a65-b8bb-0c72d3a270dd\"]", + "parents": "[\"4b931fc3-4c2b-44ea-8743-4907915554bb\"]", "configuration": null, - "summary": "Worker Recognizer @ 98e311", + "summary": "Worker Recognizer @ 70b6b8", "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "has_results": false @@ -449,10 +433,10 @@ }, { "model": "process.workerrun", - "pk": "176855f8-1633-481d-8c9a-c34929214579", + "pk": "83959955-af5d-459f-8e33-47b39e256852", "fields": { - "process": "ee420daa-2192-43e1-9206-726edec61c72", - "version": "ecc4ed88-7e15-4194-bfe7-c508cc23e5cd", + "process": "e395a111-ab5a-4c93-8901-b1f8bafde684", + "version": "5ce2dcd8-f35e-41d1-bd73-b40c9661db77", "model_version": null, "parents": "[]", "configuration": null, @@ -464,10 +448,10 @@ }, { "model": "process.workerrun", - "pk": "36c3b0c0-0439-43e2-8c1f-5985a3d4aa0a", + "pk": "86240072-39ba-4597-a7a5-9078f3134657", "fields": { - "process": "b569febd-7bb0-4283-8d86-4535d43a5686", - "version": "ecc4ed88-7e15-4194-bfe7-c508cc23e5cd", + "process": "98e30036-bd74-4480-82c0-98c3199a4503", + "version": "5ce2dcd8-f35e-41d1-bd73-b40c9661db77", "model_version": null, "parents": "[]", "configuration": null, @@ -479,7 +463,7 @@ }, { "model": "documents.corpus", - "pk": "72fa2511-2af5-4219-996a-45493ad64b25", + "pk": "fdbe4b5c-9475-4310-8877-eb07344e294a", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -492,11 +476,11 @@ }, { "model": "documents.elementtype", - "pk": "904d9648-3396-4caf-943f-88a07124e4c1", + "pk": "3bbbd33a-b906-4526-9e0b-0643ade1b080", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "slug": "page", - "display_name": "Page", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "slug": "word", + "display_name": "Word", "folder": false, "indexable": false, "color": "28b62c" @@ -504,9 +488,9 @@ }, { "model": "documents.elementtype", - "pk": "c14e6460-6cdb-40cb-a173-16d7977c1a89", + "pk": "4200ad41-d032-476a-acb4-943e6481ee6d", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", "slug": "volume", "display_name": "Volume", "folder": true, @@ -516,11 +500,11 @@ }, { "model": "documents.elementtype", - "pk": "e4145fd4-f924-47e1-afda-672e77c67ebf", + "pk": "634e6aee-87a1-4845-a63e-83e7226aa557", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "slug": "surface", - "display_name": "Surface", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "slug": "text_line", + "display_name": "Line", "folder": false, "indexable": false, "color": "28b62c" @@ -528,11 +512,11 @@ }, { "model": "documents.elementtype", - "pk": "e9e89260-d222-4c84-91de-137aea3d78e2", + "pk": "7afe34f9-ad57-4ce7-872a-4d9aa31b6d0b", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "slug": "act", - "display_name": "Act", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "slug": "page", + "display_name": "Page", "folder": false, "indexable": false, "color": "28b62c" @@ -540,11 +524,11 @@ }, { "model": "documents.elementtype", - "pk": "f0847218-ec03-4162-97f8-475af67f89a2", + "pk": "bc871e02-a23f-4799-a4d7-bb81813f41f5", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "slug": "text_line", - "display_name": "Line", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "slug": "surface", + "display_name": "Surface", "folder": false, "indexable": false, "color": "28b62c" @@ -552,11 +536,11 @@ }, { "model": "documents.elementtype", - "pk": "fc6d1b82-6805-4f99-b655-74e5c9347007", + "pk": "eda3da9f-1a6b-4f7a-91d1-f28e4e74f76a", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "slug": "word", - "display_name": "Word", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "slug": "act", + "display_name": "Act", "folder": false, "indexable": false, "color": "28b62c" @@ -564,279 +548,279 @@ }, { "model": "documents.elementpath", - "pk": "11da3c9c-c117-4c77-a455-ffa7abdaa8ce", + "pk": "04489822-c85b-4ac8-8d59-f7e1ac914295", "fields": { - "element": "20b23d6a-bbaa-4121-a177-e0732ada7f8f", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"7513bffc-5996-4299-9595-2062cdeb115a\"]", + "element": "6c6a774e-88c3-40c5-9913-d7ec2a3d5125", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\"]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "13de7e72-b357-4279-a624-cf6d7d84e25b", + "pk": "0a801b84-7243-4ee0-857a-446a6af3ae97", "fields": { - "element": "e951bfaa-d89f-44f4-9960-8f378e02058b", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"55513b17-d8de-4a75-91ba-8bc196d47614\"]", - "ordering": 2 + "element": "3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64", + "path": "[]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "1c7fa20d-f8e7-4946-aea5-737baf759779", + "pk": "0aad9073-0d49-492e-8455-4bd99e492e89", "fields": { - "element": "28d5fd6a-420c-40c7-a9ea-d3a177f82558", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"31e2e447-82c1-4fd8-83d0-9cfdabc95e7e\"]", - "ordering": 1 + "element": "469f4606-f5ea-406d-a0bd-6d48050c39ed", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"4d2f59fe-9808-44b1-b3b5-017490ae4064\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "1d61aecf-1fd1-4e94-8bb1-35b39c5e3ed4", + "pk": "2a801688-b438-4234-a1de-4b06553f1d55", "fields": { - "element": "81c5be37-e857-456a-95f6-2b24f0047dc2", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"31e2e447-82c1-4fd8-83d0-9cfdabc95e7e\"]", + "element": "d3dc3f63-9894-434b-9715-7bd906b63e63", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"6c6a774e-88c3-40c5-9913-d7ec2a3d5125\"]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "20a244b7-de0e-4bf7-b879-6a60710f97e9", + "pk": "394d7eca-1ccc-47a4-ae44-8dd33c9ceb17", "fields": { - "element": "8c90ad46-af7e-4978-9033-96e222dc38ff", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"5663bdae-584f-42a8-a2b8-e0fe66f4004e\"]", - "ordering": 1 + "element": "60313262-3273-4c39-a8ee-cedc733f6990", + "path": "[\"7a007e29-b509-4c4e-8321-78464df6f03a\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "22eed241-6d46-45aa-970f-e360b7585ae7", + "pk": "3d71eb28-24c5-4028-a72b-a3c170c117eb", "fields": { - "element": "4e85e0c6-1ec2-4043-a68b-965de889fe07", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"adaba455-2666-4754-bfdc-507ad0148039\"]", - "ordering": 2 + "element": "17a65610-023b-46c7-93a6-453335626d17", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"6c6a774e-88c3-40c5-9913-d7ec2a3d5125\"]", + "ordering": 3 } }, { "model": "documents.elementpath", - "pk": "26e5bf2f-5a26-4c76-ac16-ce88d810c303", + "pk": "4cd70fa4-1e6e-452a-8212-4be6138a6b34", "fields": { - "element": "c2fab6ef-de18-431f-9093-af7cd0b70807", - "path": "[\"3f9fa439-631e-4abd-98bb-8054f97e15f2\"]", - "ordering": 2 + "element": "c16df32e-03b5-47e4-868f-98d57eac1f15", + "path": "[\"7a007e29-b509-4c4e-8321-78464df6f03a\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "3ed5c9d4-27c9-4b1d-9559-ddf7bf849f12", + "pk": "4e407215-0ed2-4ff2-98ff-a22d6b23349a", "fields": { - "element": "a690a807-284e-4d80-9d11-f79325f672ea", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\"]", - "ordering": 6 + "element": "a8c108a2-a6b7-4401-9d64-65cf263531a7", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"6c6a774e-88c3-40c5-9913-d7ec2a3d5125\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "486b89ac-e2f1-418a-bd9c-568b2d7e79d7", + "pk": "56655c48-69b4-4ea0-a724-b10d1a47e231", "fields": { - "element": "0781cf7e-dbdb-4d7f-88c2-66c3e393bbb0", - "path": "[\"3f9fa439-631e-4abd-98bb-8054f97e15f2\"]", - "ordering": 1 + "element": "b8c4d1e3-aa9d-425a-b70f-c8ff16ae147c", + "path": "[\"7a007e29-b509-4c4e-8321-78464df6f03a\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "581713c4-f920-4dd3-ae1c-d32ca09befe4", + "pk": "5c064e36-d3b5-4a8b-8f2d-97da74e84a70", "fields": { - "element": "8281b5ad-11b4-42c6-9862-42150df27778", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"a690a807-284e-4d80-9d11-f79325f672ea\"]", - "ordering": 0 + "element": "86f68e65-f23b-4d01-a9ca-c40eed9cda32", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\"]", + "ordering": 6 } }, { "model": "documents.elementpath", - "pk": "59f5b157-d13a-4977-9b82-12fdbbfde513", + "pk": "617f3ea6-17f8-4514-9f87-4c8bdd747e3f", "fields": { - "element": "7513bffc-5996-4299-9595-2062cdeb115a", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\"]", - "ordering": 3 + "element": "4d2f59fe-9808-44b1-b3b5-017490ae4064", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "63fc9259-a88c-4f48-b933-422b7014bdd1", + "pk": "6cc0a005-dbff-4b53-b452-b6d4d8ec8eb3", "fields": { - "element": "5663bdae-584f-42a8-a2b8-e0fe66f4004e", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\"]", - "ordering": 4 + "element": "09ee64d6-3d8d-4d74-a1cd-ec34c8c2cd38", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"664f19d6-472d-49cc-bd87-26c19db7d2d3\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "71b99ec3-3a9e-4444-8672-49651f417672", + "pk": "8adb5d49-8651-4239-b98d-425a70ff39cf", "fields": { - "element": "d66ac8fc-bdbe-46f5-8a77-eb43d08f2b92", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"adaba455-2666-4754-bfdc-507ad0148039\"]", - "ordering": 0 + "element": "6a41ddf7-41e4-40ad-8234-d773b74058bc", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "74487ae7-2c42-4a68-9dab-7c6dea52f90c", + "pk": "a2d6b2bd-677e-4f72-9a9d-64957b854a90", "fields": { - "element": "1b3127bc-894c-4393-bfd0-466e8d792edf", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"55513b17-d8de-4a75-91ba-8bc196d47614\"]", - "ordering": 3 + "element": "18ada82e-36c6-47e4-bcff-bee5aa63889b", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"4d2f59fe-9808-44b1-b3b5-017490ae4064\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "7b7c8a68-de01-45d4-b9b5-4b8323329a47", + "pk": "a3d290d2-c6a1-4c80-8baf-37d42497e61e", "fields": { - "element": "3f9fa439-631e-4abd-98bb-8054f97e15f2", - "path": "[]", - "ordering": 0 + "element": "d227268a-2c2e-40ff-b22c-ab6e52eb5bba", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\"]", + "ordering": 3 } }, { "model": "documents.elementpath", - "pk": "8ade2361-18c8-48ca-b4a8-8117bd3b1abb", + "pk": "a735c855-bd4b-4ece-8345-eac1dc791ff9", "fields": { - "element": "bd30ae78-55fc-4910-b238-d68f53bb49c7", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"55513b17-d8de-4a75-91ba-8bc196d47614\"]", - "ordering": 1 + "element": "ba888ed5-8c85-4f49-8f87-499219187ade", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\"]", + "ordering": 5 } }, { "model": "documents.elementpath", - "pk": "aa38c6f6-4918-402c-9409-1c5b1e68dbab", + "pk": "a8012a46-1e99-40a4-ad86-d2b2040eb026", "fields": { - "element": "12d411b9-0332-43ae-a666-3784080fca98", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"adaba455-2666-4754-bfdc-507ad0148039\"]", - "ordering": 1 + "element": "4c054d5e-f30c-4f70-a368-8e6f78f48ba1", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"d227268a-2c2e-40ff-b22c-ab6e52eb5bba\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "b05ae558-fecb-404b-91f1-73e08e4c5b46", + "pk": "a8b4a820-4de5-4164-88e9-66b3fd875938", "fields": { - "element": "df9bfd2a-10f5-490a-a884-90f07579f2d2", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\"]", - "ordering": 7 + "element": "34cdee1d-40e3-4499-b04b-93f6d2bfb802", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"6c6a774e-88c3-40c5-9913-d7ec2a3d5125\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "b5afd649-7093-4781-b2ac-2b7069fc724b", + "pk": "ab00de7e-015c-4f76-a3c0-645cb879a024", "fields": { - "element": "31e2e447-82c1-4fd8-83d0-9cfdabc95e7e", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\"]", + "element": "2c0f28b1-b8e9-4f08-9014-75ce7950ee6f", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"6a41ddf7-41e4-40ad-8234-d773b74058bc\"]", "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "c3545e9b-aa99-4ae0-821a-64518a49fdd0", + "pk": "b100fd6e-d7ed-4481-8604-f07e9d554637", "fields": { - "element": "6952f8ae-c780-498e-bb72-b708c62ebab2", - "path": "[\"3f9fa439-631e-4abd-98bb-8054f97e15f2\"]", - "ordering": 0 + "element": "3603393d-4831-4dbf-9672-3fbe1077e03a", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"4d2f59fe-9808-44b1-b3b5-017490ae4064\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "d3720460-f831-4d9a-971e-686003dbfd3b", + "pk": "b7098cdc-dcba-4efc-8213-e92af55fa6f9", "fields": { - "element": "9fd890b5-d1d2-4822-a8ec-be13d6f1dc6c", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"df9bfd2a-10f5-490a-a884-90f07579f2d2\"]", - "ordering": 0 + "element": "3f3bb3ee-ec7c-436c-9dde-f8aa0e1a69d7", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\"]", + "ordering": 7 } }, { "model": "documents.elementpath", - "pk": "d50ff7a9-7636-4cba-b87b-ea69129e4141", + "pk": "b992817b-343e-4a5b-bf6d-42cb334696d1", "fields": { - "element": "2bff1d97-9e6e-44f3-b1f7-46a690b8903d", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\"]", - "ordering": 5 + "element": "b0a0984b-dcf2-46da-8d6e-933020a46011", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"6a41ddf7-41e4-40ad-8234-d773b74058bc\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "d963d765-36e4-46e9-bd94-c9bbcd774802", + "pk": "c35f1e16-f92d-4589-afc4-6c3115fa36d7", "fields": { - "element": "adaba455-2666-4754-bfdc-507ad0148039", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\"]", - "ordering": 2 + "element": "9fd626f8-a5eb-4ae3-9f4f-f0ea4216712e", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"664f19d6-472d-49cc-bd87-26c19db7d2d3\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "d9fb240f-4467-423c-9e71-e417c3bd4146", + "pk": "d0586c21-e60a-41d8-9a17-b71eeb75bc68", "fields": { - "element": "c67d9aed-d407-4fc0-8ea0-51a2bd40fcd9", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"31e2e447-82c1-4fd8-83d0-9cfdabc95e7e\"]", - "ordering": 2 + "element": "e2f8eee0-cf55-404c-86e6-6950ab88faac", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"3f3bb3ee-ec7c-436c-9dde-f8aa0e1a69d7\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "df28af0f-39cd-445e-ae1e-3fea442e6309", + "pk": "da4fe1fb-7ad7-4b38-973f-c9a4ca8d402f", "fields": { - "element": "55513b17-d8de-4a75-91ba-8bc196d47614", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\"]", + "element": "3189dc31-fa75-4c60-b1d0-7a15720e35ca", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"86f68e65-f23b-4d01-a9ca-c40eed9cda32\"]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "e999c614-f43d-4730-a90d-6324d26a470c", + "pk": "e2c73d2f-8881-4b4e-909f-7244abd4c92c", "fields": { - "element": "a813eb0d-c1dd-4da4-a7aa-99c66ad23be1", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"55513b17-d8de-4a75-91ba-8bc196d47614\"]", - "ordering": 0 + "element": "664f19d6-472d-49cc-bd87-26c19db7d2d3", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\"]", + "ordering": 4 } }, { "model": "documents.elementpath", - "pk": "ecb56f3a-f189-4b87-b101-841e3e7511c3", + "pk": "e6c19e34-49a7-4dc2-aa37-8d96f2a7b43e", "fields": { - "element": "399a5140-c11b-44c6-b198-4db610c421e9", + "element": "7a007e29-b509-4c4e-8321-78464df6f03a", "path": "[]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "f1375bc3-2569-4c20-b666-0e6f0f8b03bb", + "pk": "e9d64de1-c0c6-44a1-bb33-38c87a144282", "fields": { - "element": "6eb6c71c-960d-4415-ad72-1ac6a0bbfe0e", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"5663bdae-584f-42a8-a2b8-e0fe66f4004e\"]", + "element": "d5daac1b-5f57-4d3c-b120-54adbcc82d7d", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"ba888ed5-8c85-4f49-8f87-499219187ade\"]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "f9662bce-c9e8-482e-a77e-96bfb1edeb9f", + "pk": "ed3283f8-0af1-467e-8a52-77f9d434af78", "fields": { - "element": "ac6f0834-e94d-477b-8cff-ab0ba2d6ff86", - "path": "[\"399a5140-c11b-44c6-b198-4db610c421e9\", \"2bff1d97-9e6e-44f3-b1f7-46a690b8903d\"]", + "element": "92101c2b-885f-42e2-a0cb-13a8a04c0ea8", + "path": "[\"3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64\", \"6a41ddf7-41e4-40ad-8234-d773b74058bc\"]", "ordering": 0 } }, { "model": "documents.element", - "pk": "0781cf7e-dbdb-4d7f-88c2-66c3e393bbb0", + "pk": "09ee64d6-3d8d-4d74-a1cd-ec34c8c2cd38", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "904d9648-3396-4caf-943f-88a07124e4c1", - "name": "Volume 2, page 1v", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "bc871e02-a23f-4799-a4d7-bb81813f41f5", + "name": "Surface B", "creator": null, "worker_version": null, "worker_run": null, - "image": "e54b8850-0854-4e28-a965-ab8fcd2fee38", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "d3547a48-79f6-4c1f-8f16-c0be1a1da9fc", + "polygon": "LINEARRING (600 600, 600 1000, 1000 1000, 1000 600, 600 600)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -844,17 +828,17 @@ }, { "model": "documents.element", - "pk": "12d411b9-0332-43ae-a666-3784080fca98", + "pk": "17a65610-023b-46c7-93a6-453335626d17", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", - "name": "ROY", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "634e6aee-87a1-4845-a63e-83e7226aa557", + "name": "Text line", "creator": null, "worker_version": null, "worker_run": null, - "image": "a5fc8045-7db0-4e8d-9267-641d221178a0", + "image": "d3547a48-79f6-4c1f-8f16-c0be1a1da9fc", "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", "rotation_angle": 0, "mirrored": false, @@ -863,18 +847,18 @@ }, { "model": "documents.element", - "pk": "1b3127bc-894c-4393-bfd0-466e8d792edf", + "pk": "18ada82e-36c6-47e4-bcff-bee5aa63889b", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "f0847218-ec03-4162-97f8-475af67f89a2", - "name": "Text line", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", + "name": "DATUM", "creator": null, "worker_version": null, "worker_run": null, - "image": "cc181e62-8a90-416f-865a-fcb09ede3043", - "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", + "image": "d4db6162-7d7b-4839-a84f-756e74fef150", + "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -882,18 +866,18 @@ }, { "model": "documents.element", - "pk": "20b23d6a-bbaa-4121-a177-e0732ada7f8f", + "pk": "2c0f28b1-b8e9-4f08-9014-75ce7950ee6f", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e4145fd4-f924-47e1-afda-672e77c67ebf", - "name": "Surface A", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", + "name": "ROY", "creator": null, "worker_version": null, "worker_run": null, - "image": "cc181e62-8a90-416f-865a-fcb09ede3043", - "polygon": "LINEARRING (0 0, 0 600, 600 600, 600 0, 0 0)", + "image": "47f164d3-d26f-41e8-9df1-b538645d60b5", + "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -901,18 +885,18 @@ }, { "model": "documents.element", - "pk": "28d5fd6a-420c-40c7-a9ea-d3a177f82558", + "pk": "3189dc31-fa75-4c60-b1d0-7a15720e35ca", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", - "name": "ROY", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "bc871e02-a23f-4799-a4d7-bb81813f41f5", + "name": "Surface E", "creator": null, "worker_version": null, "worker_run": null, - "image": "4de14db6-5ce8-41a5-a615-7a43ac8d3aad", - "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", + "image": "d4db6162-7d7b-4839-a84f-756e74fef150", + "polygon": "LINEARRING (300 300, 300 600, 600 600, 600 300, 300 300)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -920,18 +904,18 @@ }, { "model": "documents.element", - "pk": "2bff1d97-9e6e-44f3-b1f7-46a690b8903d", + "pk": "34cdee1d-40e3-4499-b04b-93f6d2bfb802", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e9e89260-d222-4c84-91de-137aea3d78e2", - "name": "Act 3", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", + "name": "DATUM", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "d3547a48-79f6-4c1f-8f16-c0be1a1da9fc", + "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -939,18 +923,18 @@ }, { "model": "documents.element", - "pk": "31e2e447-82c1-4fd8-83d0-9cfdabc95e7e", + "pk": "3603393d-4831-4dbf-9672-3fbe1077e03a", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "904d9648-3396-4caf-943f-88a07124e4c1", - "name": "Volume 1, page 1v", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", + "name": "ROY", "creator": null, "worker_version": null, "worker_run": null, - "image": "4de14db6-5ce8-41a5-a615-7a43ac8d3aad", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "d4db6162-7d7b-4839-a84f-756e74fef150", + "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -958,12 +942,12 @@ }, { "model": "documents.element", - "pk": "399a5140-c11b-44c6-b198-4db610c421e9", + "pk": "3bcfeab1-e4d4-4f63-8f60-8fc5fc551a64", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "c14e6460-6cdb-40cb-a173-16d7977c1a89", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "4200ad41-d032-476a-acb4-943e6481ee6d", "name": "Volume 1", "creator": null, "worker_version": null, @@ -977,13 +961,13 @@ }, { "model": "documents.element", - "pk": "3f9fa439-631e-4abd-98bb-8054f97e15f2", + "pk": "3f3bb3ee-ec7c-436c-9dde-f8aa0e1a69d7", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "c14e6460-6cdb-40cb-a173-16d7977c1a89", - "name": "Volume 2", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "eda3da9f-1a6b-4f7a-91d1-f28e4e74f76a", + "name": "Act 5", "creator": null, "worker_version": null, "worker_run": null, @@ -996,18 +980,18 @@ }, { "model": "documents.element", - "pk": "4e85e0c6-1ec2-4043-a68b-965de889fe07", + "pk": "469f4606-f5ea-406d-a0bd-6d48050c39ed", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", - "name": "DATUM", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", + "name": "PARIS", "creator": null, "worker_version": null, "worker_run": null, - "image": "a5fc8045-7db0-4e8d-9267-641d221178a0", - "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", + "image": "d4db6162-7d7b-4839-a84f-756e74fef150", + "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1015,18 +999,18 @@ }, { "model": "documents.element", - "pk": "55513b17-d8de-4a75-91ba-8bc196d47614", + "pk": "4c054d5e-f30c-4f70-a368-8e6f78f48ba1", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "904d9648-3396-4caf-943f-88a07124e4c1", - "name": "Volume 1, page 1r", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "bc871e02-a23f-4799-a4d7-bb81813f41f5", + "name": "Surface A", "creator": null, "worker_version": null, "worker_run": null, - "image": "cc181e62-8a90-416f-865a-fcb09ede3043", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "d3547a48-79f6-4c1f-8f16-c0be1a1da9fc", + "polygon": "LINEARRING (0 0, 0 600, 600 600, 600 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1034,18 +1018,18 @@ }, { "model": "documents.element", - "pk": "5663bdae-584f-42a8-a2b8-e0fe66f4004e", + "pk": "4d2f59fe-9808-44b1-b3b5-017490ae4064", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e9e89260-d222-4c84-91de-137aea3d78e2", - "name": "Act 2", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "7afe34f9-ad57-4ce7-872a-4d9aa31b6d0b", + "name": "Volume 1, page 2r", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "d4db6162-7d7b-4839-a84f-756e74fef150", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1053,17 +1037,17 @@ }, { "model": "documents.element", - "pk": "6952f8ae-c780-498e-bb72-b708c62ebab2", + "pk": "60313262-3273-4c39-a8ee-cedc733f6990", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "904d9648-3396-4caf-943f-88a07124e4c1", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "7afe34f9-ad57-4ce7-872a-4d9aa31b6d0b", "name": "Volume 2, page 1r", "creator": null, "worker_version": null, "worker_run": null, - "image": "e59eb075-36d1-4c03-83d1-0a8bf3c93c2b", + "image": "2552f45d-6880-4a4c-b9c2-1091598a52b4", "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, @@ -1072,18 +1056,18 @@ }, { "model": "documents.element", - "pk": "6eb6c71c-960d-4415-ad72-1ac6a0bbfe0e", + "pk": "664f19d6-472d-49cc-bd87-26c19db7d2d3", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e4145fd4-f924-47e1-afda-672e77c67ebf", - "name": "Surface B", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "eda3da9f-1a6b-4f7a-91d1-f28e4e74f76a", + "name": "Act 2", "creator": null, "worker_version": null, "worker_run": null, - "image": "cc181e62-8a90-416f-865a-fcb09ede3043", - "polygon": "LINEARRING (600 600, 600 1000, 1000 1000, 1000 600, 600 600)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1091,18 +1075,18 @@ }, { "model": "documents.element", - "pk": "7513bffc-5996-4299-9595-2062cdeb115a", + "pk": "6a41ddf7-41e4-40ad-8234-d773b74058bc", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e9e89260-d222-4c84-91de-137aea3d78e2", - "name": "Act 1", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "7afe34f9-ad57-4ce7-872a-4d9aa31b6d0b", + "name": "Volume 1, page 1v", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "47f164d3-d26f-41e8-9df1-b538645d60b5", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1110,18 +1094,18 @@ }, { "model": "documents.element", - "pk": "81c5be37-e857-456a-95f6-2b24f0047dc2", + "pk": "6c6a774e-88c3-40c5-9913-d7ec2a3d5125", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", - "name": "PARIS", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "7afe34f9-ad57-4ce7-872a-4d9aa31b6d0b", + "name": "Volume 1, page 1r", "creator": null, "worker_version": null, "worker_run": null, - "image": "4de14db6-5ce8-41a5-a615-7a43ac8d3aad", - "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", + "image": "d3547a48-79f6-4c1f-8f16-c0be1a1da9fc", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1129,18 +1113,18 @@ }, { "model": "documents.element", - "pk": "8281b5ad-11b4-42c6-9862-42150df27778", + "pk": "7a007e29-b509-4c4e-8321-78464df6f03a", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e4145fd4-f924-47e1-afda-672e77c67ebf", - "name": "Surface E", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "4200ad41-d032-476a-acb4-943e6481ee6d", + "name": "Volume 2", "creator": null, "worker_version": null, "worker_run": null, - "image": "a5fc8045-7db0-4e8d-9267-641d221178a0", - "polygon": "LINEARRING (300 300, 300 600, 600 600, 600 300, 300 300)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1148,18 +1132,18 @@ }, { "model": "documents.element", - "pk": "8c90ad46-af7e-4978-9033-96e222dc38ff", + "pk": "86f68e65-f23b-4d01-a9ca-c40eed9cda32", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e4145fd4-f924-47e1-afda-672e77c67ebf", - "name": "Surface C", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "eda3da9f-1a6b-4f7a-91d1-f28e4e74f76a", + "name": "Act 4", "creator": null, "worker_version": null, "worker_run": null, - "image": "4de14db6-5ce8-41a5-a615-7a43ac8d3aad", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1167,18 +1151,18 @@ }, { "model": "documents.element", - "pk": "9fd890b5-d1d2-4822-a8ec-be13d6f1dc6c", + "pk": "92101c2b-885f-42e2-a0cb-13a8a04c0ea8", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e4145fd4-f924-47e1-afda-672e77c67ebf", - "name": "Surface F", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", + "name": "PARIS", "creator": null, "worker_version": null, "worker_run": null, - "image": "a5fc8045-7db0-4e8d-9267-641d221178a0", - "polygon": "LINEARRING (600 600, 600 1000, 1000 1000, 1000 600, 600 600)", + "image": "47f164d3-d26f-41e8-9df1-b538645d60b5", + "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1186,18 +1170,18 @@ }, { "model": "documents.element", - "pk": "a690a807-284e-4d80-9d11-f79325f672ea", + "pk": "9fd626f8-a5eb-4ae3-9f4f-f0ea4216712e", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e9e89260-d222-4c84-91de-137aea3d78e2", - "name": "Act 4", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "bc871e02-a23f-4799-a4d7-bb81813f41f5", + "name": "Surface C", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "47f164d3-d26f-41e8-9df1-b538645d60b5", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1205,18 +1189,18 @@ }, { "model": "documents.element", - "pk": "a813eb0d-c1dd-4da4-a7aa-99c66ad23be1", + "pk": "a8c108a2-a6b7-4401-9d64-65cf263531a7", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", - "name": "PARIS", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", + "name": "ROY", "creator": null, "worker_version": null, "worker_run": null, - "image": "cc181e62-8a90-416f-865a-fcb09ede3043", - "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", + "image": "d3547a48-79f6-4c1f-8f16-c0be1a1da9fc", + "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1224,18 +1208,18 @@ }, { "model": "documents.element", - "pk": "ac6f0834-e94d-477b-8cff-ab0ba2d6ff86", + "pk": "b0a0984b-dcf2-46da-8d6e-933020a46011", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e4145fd4-f924-47e1-afda-672e77c67ebf", - "name": "Surface D", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", + "name": "DATUM", "creator": null, "worker_version": null, "worker_run": null, - "image": "a5fc8045-7db0-4e8d-9267-641d221178a0", - "polygon": "LINEARRING (0 0, 0 300, 300 300, 300 0, 0 0)", + "image": "47f164d3-d26f-41e8-9df1-b538645d60b5", + "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1243,17 +1227,17 @@ }, { "model": "documents.element", - "pk": "adaba455-2666-4754-bfdc-507ad0148039", + "pk": "b8c4d1e3-aa9d-425a-b70f-c8ff16ae147c", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "904d9648-3396-4caf-943f-88a07124e4c1", - "name": "Volume 1, page 2r", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "7afe34f9-ad57-4ce7-872a-4d9aa31b6d0b", + "name": "Volume 2, page 2r", "creator": null, "worker_version": null, "worker_run": null, - "image": "a5fc8045-7db0-4e8d-9267-641d221178a0", + "image": "4b93eabe-b42d-4b88-8f31-a63d0258000a", "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, @@ -1262,18 +1246,18 @@ }, { "model": "documents.element", - "pk": "bd30ae78-55fc-4910-b238-d68f53bb49c7", + "pk": "ba888ed5-8c85-4f49-8f87-499219187ade", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", - "name": "ROY", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "eda3da9f-1a6b-4f7a-91d1-f28e4e74f76a", + "name": "Act 3", "creator": null, "worker_version": null, "worker_run": null, - "image": "cc181e62-8a90-416f-865a-fcb09ede3043", - "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1281,17 +1265,17 @@ }, { "model": "documents.element", - "pk": "c2fab6ef-de18-431f-9093-af7cd0b70807", + "pk": "c16df32e-03b5-47e4-868f-98d57eac1f15", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "904d9648-3396-4caf-943f-88a07124e4c1", - "name": "Volume 2, page 2r", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "7afe34f9-ad57-4ce7-872a-4d9aa31b6d0b", + "name": "Volume 2, page 1v", "creator": null, "worker_version": null, "worker_run": null, - "image": "95daad78-e9ef-40bd-af2c-3d82478ffdd2", + "image": "5de01fda-de62-4d26-b8bf-5c3f4678de3b", "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, @@ -1300,18 +1284,18 @@ }, { "model": "documents.element", - "pk": "c67d9aed-d407-4fc0-8ea0-51a2bd40fcd9", + "pk": "d227268a-2c2e-40ff-b22c-ab6e52eb5bba", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", - "name": "DATUM", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "eda3da9f-1a6b-4f7a-91d1-f28e4e74f76a", + "name": "Act 1", "creator": null, "worker_version": null, "worker_run": null, - "image": "4de14db6-5ce8-41a5-a615-7a43ac8d3aad", - "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1319,17 +1303,17 @@ }, { "model": "documents.element", - "pk": "d66ac8fc-bdbe-46f5-8a77-eb43d08f2b92", + "pk": "d3dc3f63-9894-434b-9715-7bd906b63e63", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "3bbbd33a-b906-4526-9e0b-0643ade1b080", "name": "PARIS", "creator": null, "worker_version": null, "worker_run": null, - "image": "a5fc8045-7db0-4e8d-9267-641d221178a0", + "image": "d3547a48-79f6-4c1f-8f16-c0be1a1da9fc", "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", "rotation_angle": 0, "mirrored": false, @@ -1338,18 +1322,18 @@ }, { "model": "documents.element", - "pk": "df9bfd2a-10f5-490a-a884-90f07579f2d2", + "pk": "d5daac1b-5f57-4d3c-b120-54adbcc82d7d", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "e9e89260-d222-4c84-91de-137aea3d78e2", - "name": "Act 5", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "bc871e02-a23f-4799-a4d7-bb81813f41f5", + "name": "Surface D", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "d4db6162-7d7b-4839-a84f-756e74fef150", + "polygon": "LINEARRING (0 0, 0 300, 300 300, 300 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1357,18 +1341,18 @@ }, { "model": "documents.element", - "pk": "e951bfaa-d89f-44f4-9960-8f378e02058b", + "pk": "e2f8eee0-cf55-404c-86e6-6950ab88faac", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", - "type": "fc6d1b82-6805-4f99-b655-74e5c9347007", - "name": "DATUM", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "type": "bc871e02-a23f-4799-a4d7-bb81813f41f5", + "name": "Surface F", "creator": null, "worker_version": null, "worker_run": null, - "image": "cc181e62-8a90-416f-865a-fcb09ede3043", - "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", + "image": "d4db6162-7d7b-4839-a84f-756e74fef150", + "polygon": "LINEARRING (600 600, 600 1000, 1000 1000, 1000 600, 600 600)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1376,55 +1360,55 @@ }, { "model": "documents.entitytype", - "pk": "092db92b-bc22-4f3d-9eef-f3a5de19f0e4", + "pk": "4e1138f1-be4c-4205-834b-b2795e2bd1a3", "fields": { - "name": "number", + "name": "date", "color": "ff0000", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25" + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a" } }, { "model": "documents.entitytype", - "pk": "3c50e3f2-13b2-48c7-a0a6-0361b62f5422", + "pk": "564768cc-38be-45be-9e61-8dcade951c00", "fields": { - "name": "organization", + "name": "location", "color": "ff0000", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25" + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a" } }, { "model": "documents.entitytype", - "pk": "75dd387b-8b4f-4350-b851-0d33333de126", + "pk": "a773549d-4adf-4dde-a595-3b2318f5cc0d", "fields": { - "name": "location", + "name": "person", "color": "ff0000", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25" + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a" } }, { "model": "documents.entitytype", - "pk": "8255557e-015a-4516-beab-ec35b04944ad", + "pk": "e19eb34b-55eb-4a8f-8019-18eea8e62fba", "fields": { - "name": "person", + "name": "number", "color": "ff0000", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25" + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a" } }, { "model": "documents.entitytype", - "pk": "f261cd39-5979-4a20-9bfa-d9f69a6942e7", + "pk": "e96f8757-37d7-4457-9f2a-8e870cdadae5", "fields": { - "name": "date", + "name": "organization", "color": "ff0000", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25" + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a" } }, { "model": "documents.transcription", - "pk": "7552ceb2-6800-4138-b435-1cb808a6cd3b", + "pk": "28e2570a-4022-4718-8827-5be712a53d4b", "fields": { - "element": "12d411b9-0332-43ae-a666-3784080fca98", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "3603393d-4831-4dbf-9672-3fbe1077e03a", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, "text": "ROY", "orientation": "horizontal-lr", @@ -1433,34 +1417,34 @@ }, { "model": "documents.transcription", - "pk": "75b50de3-bd80-49ca-84e6-276ce2602542", + "pk": "626eaeaf-ae24-4bc0-b1f6-78ad744a3645", "fields": { - "element": "c67d9aed-d407-4fc0-8ea0-51a2bd40fcd9", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "6c6a774e-88c3-40c5-9913-d7ec2a3d5125", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, - "text": "DATUM", + "text": "Lorem ipsum dolor sit amet", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "77ed963f-581b-4dea-bb78-de71d70cc72d", + "pk": "62b7b9e6-0869-444c-aa8b-054fc124f6d9", "fields": { - "element": "81c5be37-e857-456a-95f6-2b24f0047dc2", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "a8c108a2-a6b7-4401-9d64-65cf263531a7", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, - "text": "PARIS", + "text": "ROY", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "7b3b1132-e2d4-44bc-8a8d-fd765ceec893", + "pk": "6f477447-1b65-44f6-a912-6ff6b24165a2", "fields": { - "element": "28d5fd6a-420c-40c7-a9ea-d3a177f82558", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "2c0f28b1-b8e9-4f08-9014-75ce7950ee6f", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, "text": "ROY", "orientation": "horizontal-lr", @@ -1469,70 +1453,70 @@ }, { "model": "documents.transcription", - "pk": "8d0ea627-cde3-4e5e-92ba-d505fd089d76", + "pk": "797bde96-8b76-4a9b-a4b9-b3378fcfdcdf", "fields": { - "element": "d66ac8fc-bdbe-46f5-8a77-eb43d08f2b92", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "18ada82e-36c6-47e4-bcff-bee5aa63889b", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, - "text": "PARIS", + "text": "DATUM", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "9cb9b78a-8e64-46b8-9d80-01e636c51425", + "pk": "7b0f48b5-0580-47ef-9927-5e5fbdb749ff", "fields": { - "element": "bd30ae78-55fc-4910-b238-d68f53bb49c7", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "469f4606-f5ea-406d-a0bd-6d48050c39ed", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, - "text": "ROY", + "text": "PARIS", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "a0ea7274-b9d2-40f1-9359-eada35eafd98", + "pk": "a94dabcd-9e37-4cbc-a45a-6e9a5a76b01a", "fields": { - "element": "55513b17-d8de-4a75-91ba-8bc196d47614", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "d3dc3f63-9894-434b-9715-7bd906b63e63", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, - "text": "Lorem ipsum dolor sit amet", + "text": "PARIS", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "b5200354-6523-481a-a523-8307fdde8fa6", + "pk": "e74d7029-86e6-41ad-beed-12f4b215fb57", "fields": { - "element": "a813eb0d-c1dd-4da4-a7aa-99c66ad23be1", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "34cdee1d-40e3-4499-b04b-93f6d2bfb802", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, - "text": "PARIS", + "text": "DATUM", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "ee306a4e-78e4-4d0e-b577-ac72609b187e", + "pk": "eae51f9a-eb40-4d27-946f-274231062d30", "fields": { - "element": "4e85e0c6-1ec2-4043-a68b-965de889fe07", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "92101c2b-885f-42e2-a0cb-13a8a04c0ea8", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, - "text": "DATUM", + "text": "PARIS", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "f42771e8-cc6a-4e70-8859-0a98fb054364", + "pk": "fb8d4786-a627-4049-9433-20755e7f3ca5", "fields": { - "element": "e951bfaa-d89f-44f4-9960-8f378e02058b", - "worker_version": "98e3114d-a9c7-4302-8046-b67745a45cd7", + "element": "b0a0984b-dcf2-46da-8d6e-933020a46011", + "worker_version": "70b6b804-b6f9-4efb-9d79-b8258c336eb7", "worker_run": null, "text": "DATUM", "orientation": "horizontal-lr", @@ -1541,39 +1525,39 @@ }, { "model": "documents.allowedmetadata", - "pk": "61bfa704-4fb7-4b8c-95b6-48395e4019f8", + "pk": "7c15d98e-10f2-4c0b-809f-b65242d5e74b", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", "type": "date", "name": "date" } }, { "model": "documents.allowedmetadata", - "pk": "77c73dbd-c84b-4b2f-b6ec-dbaed9750856", + "pk": "819968c2-2433-4597-ac8b-852ed3397a9a", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", "type": "location", "name": "location" } }, { "model": "documents.allowedmetadata", - "pk": "f9be7494-85a7-4dd5-a403-4ba490143f88", + "pk": "c079f5d7-f039-43a5-93c6-9019e8203e6b", "fields": { - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", "type": "text", "name": "folio" } }, { "model": "documents.metadata", - "pk": "1473cab4-ac8f-4153-a3e5-ce3d9be20496", + "pk": "03221610-3351-472d-9f7e-b23d7cbc7b92", "fields": { - "element": "df9bfd2a-10f5-490a-a884-90f07579f2d2", - "name": "number", + "element": "6a41ddf7-41e4-40ad-8234-d773b74058bc", + "name": "folio", "type": "text", - "value": "5", + "value": "1v", "entity": null, "worker_version": null, "worker_run": null @@ -1581,12 +1565,12 @@ }, { "model": "documents.metadata", - "pk": "37879204-e7b5-42a9-a861-ce415cc357c9", + "pk": "18459ddf-615f-47cc-8de6-11ab62446632", "fields": { - "element": "a690a807-284e-4d80-9d11-f79325f672ea", + "element": "664f19d6-472d-49cc-bd87-26c19db7d2d3", "name": "number", "type": "text", - "value": "4", + "value": "2", "entity": null, "worker_version": null, "worker_run": null @@ -1594,12 +1578,12 @@ }, { "model": "documents.metadata", - "pk": "395ae8f0-3f99-49e3-a6c6-6d3d4377efe5", + "pk": "34ec1306-1d88-4fc4-8049-d157252c5d51", "fields": { - "element": "5663bdae-584f-42a8-a2b8-e0fe66f4004e", - "name": "number", + "element": "6c6a774e-88c3-40c5-9913-d7ec2a3d5125", + "name": "folio", "type": "text", - "value": "2", + "value": "1r", "entity": null, "worker_version": null, "worker_run": null @@ -1607,12 +1591,12 @@ }, { "model": "documents.metadata", - "pk": "65bcc853-2aff-4fee-97c9-a947a7fa826c", + "pk": "5712f834-778d-450b-ba46-86262c4a13f8", "fields": { - "element": "c2fab6ef-de18-431f-9093-af7cd0b70807", - "name": "folio", + "element": "ba888ed5-8c85-4f49-8f87-499219187ade", + "name": "number", "type": "text", - "value": "2r", + "value": "3", "entity": null, "worker_version": null, "worker_run": null @@ -1620,12 +1604,12 @@ }, { "model": "documents.metadata", - "pk": "87d94a9b-688a-4d16-abcd-f228f15e330c", + "pk": "7d8d0dc1-fcf6-4e47-9b03-25d5baaac590", "fields": { - "element": "2bff1d97-9e6e-44f3-b1f7-46a690b8903d", + "element": "86f68e65-f23b-4d01-a9ca-c40eed9cda32", "name": "number", "type": "text", - "value": "3", + "value": "4", "entity": null, "worker_version": null, "worker_run": null @@ -1633,12 +1617,12 @@ }, { "model": "documents.metadata", - "pk": "895468ff-08da-4e2d-83b9-2bc70e46defb", + "pk": "820d9d2f-c6d0-40df-9bce-cb9062f17b0b", "fields": { - "element": "adaba455-2666-4754-bfdc-507ad0148039", + "element": "60313262-3273-4c39-a8ee-cedc733f6990", "name": "folio", "type": "text", - "value": "2r", + "value": "1r", "entity": null, "worker_version": null, "worker_run": null @@ -1646,12 +1630,12 @@ }, { "model": "documents.metadata", - "pk": "8e79d9a5-3a98-49a1-aff4-0fb5a04fa369", + "pk": "93e2a919-9320-47ce-9b0f-de178dab40bc", "fields": { - "element": "31e2e447-82c1-4fd8-83d0-9cfdabc95e7e", - "name": "folio", + "element": "3f3bb3ee-ec7c-436c-9dde-f8aa0e1a69d7", + "name": "number", "type": "text", - "value": "1v", + "value": "5", "entity": null, "worker_version": null, "worker_run": null @@ -1659,12 +1643,12 @@ }, { "model": "documents.metadata", - "pk": "96edad24-2f25-4816-876e-ef9396e8fbfe", + "pk": "9fc32596-bd62-4f8d-894d-abfeefc6157a", "fields": { - "element": "6952f8ae-c780-498e-bb72-b708c62ebab2", + "element": "4d2f59fe-9808-44b1-b3b5-017490ae4064", "name": "folio", "type": "text", - "value": "1r", + "value": "2r", "entity": null, "worker_version": null, "worker_run": null @@ -1672,12 +1656,12 @@ }, { "model": "documents.metadata", - "pk": "ac55836c-258b-43c8-980e-ea671d6e2057", + "pk": "ba9916fa-52e6-4203-8db4-662f9083c70c", "fields": { - "element": "7513bffc-5996-4299-9595-2062cdeb115a", - "name": "number", + "element": "c16df32e-03b5-47e4-868f-98d57eac1f15", + "name": "folio", "type": "text", - "value": "1", + "value": "1v", "entity": null, "worker_version": null, "worker_run": null @@ -1685,12 +1669,12 @@ }, { "model": "documents.metadata", - "pk": "ead43db9-0f54-415f-b72a-2ec857b388a2", + "pk": "bf7933a6-1646-40d0-be66-1306bc564481", "fields": { - "element": "55513b17-d8de-4a75-91ba-8bc196d47614", + "element": "b8c4d1e3-aa9d-425a-b70f-c8ff16ae147c", "name": "folio", "type": "text", - "value": "1r", + "value": "2r", "entity": null, "worker_version": null, "worker_run": null @@ -1698,12 +1682,12 @@ }, { "model": "documents.metadata", - "pk": "fc78b41d-9bb5-4c01-b5d0-233390600365", + "pk": "cffe6d09-810c-4365-8107-af240d60097e", "fields": { - "element": "0781cf7e-dbdb-4d7f-88c2-66c3e393bbb0", - "name": "folio", + "element": "d227268a-2c2e-40ff-b22c-ab6e52eb5bba", + "name": "number", "type": "text", - "value": "1v", + "value": "1", "entity": null, "worker_version": null, "worker_run": null @@ -1726,12 +1710,12 @@ }, { "model": "images.image", - "pk": "4de14db6-5ce8-41a5-a615-7a43ac8d3aad", + "pk": "2552f45d-6880-4a4c-b9c2-1091598a52b4", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img2", + "path": "img4", "width": 1000, "height": 1000, "hash": null, @@ -1740,12 +1724,12 @@ }, { "model": "images.image", - "pk": "95daad78-e9ef-40bd-af2c-3d82478ffdd2", + "pk": "47f164d3-d26f-41e8-9df1-b538645d60b5", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img6", + "path": "img2", "width": 1000, "height": 1000, "hash": null, @@ -1754,12 +1738,12 @@ }, { "model": "images.image", - "pk": "a5fc8045-7db0-4e8d-9267-641d221178a0", + "pk": "4b93eabe-b42d-4b88-8f31-a63d0258000a", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img3", + "path": "img6", "width": 1000, "height": 1000, "hash": null, @@ -1768,12 +1752,12 @@ }, { "model": "images.image", - "pk": "cc181e62-8a90-416f-865a-fcb09ede3043", + "pk": "5de01fda-de62-4d26-b8bf-5c3f4678de3b", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img1", + "path": "img5", "width": 1000, "height": 1000, "hash": null, @@ -1782,12 +1766,12 @@ }, { "model": "images.image", - "pk": "e54b8850-0854-4e28-a965-ab8fcd2fee38", + "pk": "d3547a48-79f6-4c1f-8f16-c0be1a1da9fc", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img5", + "path": "img1", "width": 1000, "height": 1000, "hash": null, @@ -1796,12 +1780,12 @@ }, { "model": "images.image", - "pk": "e59eb075-36d1-4c03-83d1-0a8bf3c93c2b", + "pk": "d4db6162-7d7b-4839-a84f-756e74fef150", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img4", + "path": "img3", "width": 1000, "height": 1000, "hash": null, @@ -1810,64 +1794,64 @@ }, { "model": "users.right", - "pk": "0db160cb-a31d-479c-8fb6-49456e1dcb71", + "pk": "066494da-9d28-44a8-ad04-0616cde80af0", "fields": { - "user": 3, + "user": 2, "group": null, - "content_type": 35, - "content_id": "151de264-5e02-46af-aae7-456eab4c4cf1", - "level": 50 + "content_type": 20, + "content_id": "fdbe4b5c-9475-4310-8877-eb07344e294a", + "level": 100 } }, { "model": "users.right", - "pk": "3fbd5770-f601-4647-9641-c65ef35bdd36", + "pk": "58ce1f20-32a1-4507-8edd-28fff7a1a77f", "fields": { "user": 2, "group": null, "content_type": 12, - "content_id": "296cbab6-7c00-4866-8890-4e40bf78a6a6", + "content_id": "c19116b6-866f-4bb7-b447-3544629a8151", "level": 10 } }, { "model": "users.right", - "pk": "5a05348d-b5eb-4c22-8d05-89a2631ecf51", + "pk": "9f94b10b-ffd6-4a87-885d-af494d41c850", "fields": { - "user": 2, + "user": 3, "group": null, - "content_type": 20, - "content_id": "72fa2511-2af5-4219-996a-45493ad64b25", - "level": 100 + "content_type": 35, + "content_id": "c104ee5f-be60-4cdd-a738-10bf24601682", + "level": 50 } }, { "model": "users.right", - "pk": "80944dc1-78e9-4afc-bad3-27fd781ec62b", + "pk": "b04e5fb5-dbca-4255-aae1-4c100c510c9d", "fields": { - "user": 4, + "user": 2, "group": null, "content_type": 35, - "content_id": "151de264-5e02-46af-aae7-456eab4c4cf1", - "level": 10 + "content_id": "c104ee5f-be60-4cdd-a738-10bf24601682", + "level": 100 } }, { "model": "users.right", - "pk": "f9d4e458-79dc-43a0-b967-18a7fb1a6c5d", + "pk": "da8297fb-5484-4511-8d29-0e8d6cbccc49", "fields": { - "user": 2, + "user": 4, "group": null, "content_type": 35, - "content_id": "151de264-5e02-46af-aae7-456eab4c4cf1", - "level": 100 + "content_id": "c104ee5f-be60-4cdd-a738-10bf24601682", + "level": 10 } }, { "model": "users.user", "pk": 1, "fields": { - "password": "pbkdf2_sha256$390000$59TVqlNHR4LvjF3guf4dr6$kmNBzQkVoelotq8HHwPIhDMrtFMRsknzhBoau/0wNuQ=", + "password": "pbkdf2_sha256$390000$IL4asfhs96nzQKK9md5Axl$uXyWwT/if+W9OsJ+OeHkPZWm4xlQ7D1ep2NyjxSNOLs=", "last_login": null, "email": "root@root.fr", "display_name": "Admin", @@ -1882,7 +1866,7 @@ "model": "users.user", "pk": 2, "fields": { - "password": "pbkdf2_sha256$390000$THGykeA8JmhYSY0xqpsOrf$gp2sZkct9+Y2PKtKuN4rRrfTo5Hl4S7M4Fp35kTsJv0=", + "password": "pbkdf2_sha256$390000$RvCTxXTmAXRgZ29LJrofXG$vnWF7puXQBP+G8wcclsOrd2ZpHbiq7jC/kX7F31tSQQ=", "last_login": null, "email": "user@user.fr", "display_name": "Test user", @@ -1925,7 +1909,7 @@ }, { "model": "users.group", - "pk": "151de264-5e02-46af-aae7-456eab4c4cf1", + "pk": "c104ee5f-be60-4cdd-a738-10bf24601682", "fields": { "name": "User group", "public": false, @@ -3959,15 +3943,15 @@ }, { "model": "ponos.farm", - "pk": "296cbab6-7c00-4866-8890-4e40bf78a6a6", + "pk": "c19116b6-866f-4bb7-b447-3544629a8151", "fields": { "name": "Wheat farm", - "seed": "3ca9ae4ffd981909b0bd5542d7f12bf8f3f5f21c75072b6ca0ff8f9e066db34c" + "seed": "03f762b3c505f0406a411b3fb3bbe4785c0e7763a05b515e7208b99ee93e955c" } }, { "model": "ponos.task", - "pk": "66e8e990-c90d-4ad6-97a5-8aeb54904f3e", + "pk": "4ca6c03f-9fee-4d44-8b6d-a3cfa5ae1ffb", "fields": { "run": 0, "depth": 0, @@ -3983,22 +3967,22 @@ "agent": null, "requires_gpu": false, "gpu": null, - "process": "058fd42a-ff15-4c95-95fc-e3743dbbbcdb", + "process": "245bc206-350c-43d5-8db3-d98645c4eaa9", "worker_run": null, "container": null, "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "expiry": "2100-12-31T23:59:59.999Z", "extra_files": "{}", - "token": "O6FxYWOOTAyijz2Bxwz7ao4I8qOJrU/Dju2rn8tTDZ4=", + "token": "xm8g6R1OTqmlJVsQwA9aYZfHNbR2Q0fWmB1BRSy4plw=", "parents": [] } }, { "model": "ponos.artifact", - "pk": "21a5c42e-27e7-4b56-a1f9-59c9a98c5a97", + "pk": "9a1b1d5d-ec3d-4a21-89da-0e930292467d", "fields": { - "task": "66e8e990-c90d-4ad6-97a5-8aeb54904f3e", + "task": "4ca6c03f-9fee-4d44-8b6d-a3cfa5ae1ffb", "path": "/path/to/docker_build", "size": 42000, "content_type": "application/octet-stream", @@ -4008,30 +3992,30 @@ }, { "model": "training.dataset", - "pk": "4255afcf-756d-41a7-a32a-f0c86856a6f6", + "pk": "3c74b8de-7c42-4f2a-921f-a5ef957b80da", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", "creator": 2, "task": null, - "name": "First Dataset", - "description": "dataset number one", + "name": "Second Dataset", + "description": "dataset number two", "state": "open", "sets": "[\"training\", \"test\", \"validation\"]" } }, { "model": "training.dataset", - "pk": "529b4774-2907-49b7-9985-7b69e39e5416", + "pk": "87c1ca55-bb92-4b6d-90af-a2f50ae49df9", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "72fa2511-2af5-4219-996a-45493ad64b25", + "corpus": "fdbe4b5c-9475-4310-8877-eb07344e294a", "creator": 2, "task": null, - "name": "Second Dataset", - "description": "dataset number two", + "name": "First Dataset", + "description": "dataset number one", "state": "open", "sets": "[\"training\", \"test\", \"validation\"]" } diff --git a/arkindex/documents/managers.py b/arkindex/documents/managers.py index 875f51d41a..d09737577c 100644 --- a/arkindex/documents/managers.py +++ b/arkindex/documents/managers.py @@ -81,11 +81,6 @@ class ElementQuerySet(models.QuerySet): # This may cause workers processes to target a different set of elements Process.objects.filter(element_id__in=ids).update(element_id=None) - # Set folder references on training processes to None - Process.objects.filter(train_folder_id__in=ids).update(train_folder_id=None) - Process.objects.filter(validation_folder_id__in=ids).update(validation_folder_id=None) - Process.objects.filter(test_folder_id__in=ids).update(test_folder_id=None) - # This is where it gets really ugly: in order to delete all the children # without losing their reference, we need to inject the generated SQL query # directly into an SQL DELETE statement for paths diff --git a/arkindex/process/migrations/0028_remove_process_model_remove_process_test_folder_and_more.py b/arkindex/process/migrations/0028_remove_process_model_remove_process_test_folder_and_more.py new file mode 100644 index 0000000000..f4be741213 --- /dev/null +++ b/arkindex/process/migrations/0028_remove_process_model_remove_process_test_folder_and_more.py @@ -0,0 +1,40 @@ +# Generated by Django 4.1.7 on 2024-01-23 09:59 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("process", "0027_workerrun_has_results"), + ] + + operations = [ + migrations.RemoveField( + model_name="process", + name="model", + ), + migrations.RemoveField( + model_name="process", + name="test_folder", + ), + migrations.RemoveField( + model_name="process", + name="train_folder", + ), + migrations.RemoveField( + model_name="process", + name="validation_folder", + ), + migrations.RunSQL( + [ + """ + UPDATE process_process + SET mode = 'workers', name = CONCAT('(Old Training) ', name) + WHERE mode = 'training' + """ + ], + reverse_sql=migrations.RunSQL.noop, + elidable=True, + ) + ] diff --git a/arkindex/process/models.py b/arkindex/process/models.py index f34e5ee32e..8f1db92144 100644 --- a/arkindex/process/models.py +++ b/arkindex/process/models.py @@ -58,7 +58,6 @@ class ProcessMode(Enum): Workers = "workers" Template = "template" S3 = "s3" - Training = "training" Local = "local" Dataset = "dataset" @@ -168,36 +167,6 @@ class Process(IndexableModel): # Object keys are up to 1024 characters long prefix = models.CharField(max_length=1024, blank=True, null=True) - # Training specific fields - model = models.ForeignKey( - "training.Model", - related_name="training_processes", - on_delete=models.CASCADE, - null=True, - blank=True, - ) - train_folder = models.ForeignKey( - "documents.Element", - related_name="train_folder_processes", - on_delete=models.SET_NULL, - null=True, - blank=True, - ) - validation_folder = models.ForeignKey( - "documents.Element", - related_name="validation_folder_processes", - on_delete=models.SET_NULL, - null=True, - blank=True, - ) - test_folder = models.ForeignKey( - "documents.Element", - related_name="test_folder_processes", - on_delete=models.SET_NULL, - null=True, - blank=True, - ) - class Meta: ordering = ["corpus", "-created"] verbose_name_plural = "processes" diff --git a/arkindex/process/serializers/imports.py b/arkindex/process/serializers/imports.py index c22aaae6fc..b5a793d49d 100644 --- a/arkindex/process/serializers/imports.py +++ b/arkindex/process/serializers/imports.py @@ -47,34 +47,12 @@ class ProcessLightSerializer(serializers.ModelSerializer): "corpus", "creator", "activity_state", - ) - read_only_fields = ("id", "state", "mode", "corpus", "creator", "activity_state") - - -class ProcessTrainingSerializer(ProcessLightSerializer): - model_id = serializers.PrimaryKeyRelatedField(read_only=True) - train_folder_id = serializers.PrimaryKeyRelatedField(read_only=True) - validation_folder_id = serializers.PrimaryKeyRelatedField(read_only=True) - test_folder_id = serializers.PrimaryKeyRelatedField(read_only=True) - - class Meta(ProcessLightSerializer.Meta): - fields = ProcessLightSerializer.Meta.fields + ( - "model_id", - "train_folder_id", - "validation_folder_id", - "test_folder_id", - "use_cache", - ) - read_only_fields = ProcessLightSerializer.Meta.read_only_fields + ( - "model_id", - "train_folder_id", - "validation_folder_id", - "test_folder_id", "use_cache", ) + read_only_fields = ("id", "state", "mode", "corpus", "creator", "activity_state", "use_cache") -class CorpusWorkerRunProcessSerializer(ProcessTrainingSerializer): +class CorpusWorkerRunProcessSerializer(ProcessLightSerializer): element_id = serializers.PrimaryKeyRelatedField(read_only=True, allow_null=True) element_count = serializers.IntegerField( read_only=True, @@ -85,14 +63,14 @@ class CorpusWorkerRunProcessSerializer(ProcessTrainingSerializer): """) ) - class Meta(ProcessTrainingSerializer.Meta): - fields = ProcessTrainingSerializer.Meta.fields + ( + class Meta(ProcessLightSerializer.Meta): + fields = ProcessLightSerializer.Meta.fields + ( "element_id", "element_count" ) -class ProcessSerializer(ProcessTrainingSerializer): +class ProcessSerializer(ProcessLightSerializer): """ Serialize a process with its settings """ @@ -135,8 +113,8 @@ class ProcessSerializer(ProcessTrainingSerializer): style={"base_template": "input.html"} ) - class Meta(ProcessTrainingSerializer.Meta): - fields = ProcessTrainingSerializer.Meta.fields + ( + class Meta(ProcessLightSerializer.Meta): + fields = ProcessLightSerializer.Meta.fields + ( "files", "revision", "element", @@ -149,7 +127,7 @@ class ProcessSerializer(ProcessTrainingSerializer): "use_gpu", "template_id", ) - read_only_fields = ProcessTrainingSerializer.Meta.read_only_fields + ( + read_only_fields = ProcessLightSerializer.Meta.read_only_fields + ( "files", "revision", "element", diff --git a/arkindex/process/serializers/worker_runs.py b/arkindex/process/serializers/worker_runs.py index 74e42057cc..7cf13fbefd 100644 --- a/arkindex/process/serializers/worker_runs.py +++ b/arkindex/process/serializers/worker_runs.py @@ -15,7 +15,7 @@ from arkindex.process.models import ( WorkerVersion, WorkerVersionState, ) -from arkindex.process.serializers.imports import CorpusWorkerRunProcessSerializer, ProcessTrainingSerializer +from arkindex.process.serializers.imports import CorpusWorkerRunProcessSerializer, ProcessLightSerializer from arkindex.process.serializers.workers import WorkerConfigurationSerializer, WorkerVersionSerializer from arkindex.project.mixins import WorkerACLMixin from arkindex.training.models import ModelVersion, ModelVersionState @@ -94,7 +94,7 @@ class WorkerRunSerializer(WorkerACLMixin, serializers.ModelSerializer): "Only a configuration of the WorkerVersion's worker may be set.", ) - process = ProcessTrainingSerializer(read_only=True) + process = ProcessLightSerializer(read_only=True) class Meta: model = WorkerRun diff --git a/arkindex/process/tests/test_corpus_worker_runs.py b/arkindex/process/tests/test_corpus_worker_runs.py index 4f0150d4a5..92aebf153a 100644 --- a/arkindex/process/tests/test_corpus_worker_runs.py +++ b/arkindex/process/tests/test_corpus_worker_runs.py @@ -105,13 +105,9 @@ class TestCorpusWorkerRuns(FixtureAPITestCase): "element_count": 0, "id": str(self.local_process.id), "mode": "local", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None }, "summary": "Worker Custom worker @ version 1", "worker_version": { @@ -175,13 +171,9 @@ class TestCorpusWorkerRuns(FixtureAPITestCase): "element_id": None, "element_count": 10, "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None }, "summary": f"Worker Document layout analyser @ {str(self.dla_worker_version.id)[:6]}", } diff --git a/arkindex/process/tests/test_create_process.py b/arkindex/process/tests/test_create_process.py index 497a27e33e..79b0e98ba4 100644 --- a/arkindex/process/tests/test_create_process.py +++ b/arkindex/process/tests/test_create_process.py @@ -97,10 +97,6 @@ class TestCreateProcess(FixtureAPITestCase): "use_gpu": False, "activity_state": ActivityState.Disabled.value, "element_name_contains": None, - "model_id": None, - "train_folder_id": None, - "validation_folder_id": None, - "test_folder_id": None, }) # The process needs to be started to produce a workflow @@ -153,10 +149,6 @@ class TestCreateProcess(FixtureAPITestCase): "use_gpu": False, "activity_state": ActivityState.Disabled.value, "element_name_contains": None, - "model_id": None, - "train_folder_id": None, - "validation_folder_id": None, - "test_folder_id": None, }) def test_single_page_process(self): @@ -374,10 +366,6 @@ class TestCreateProcess(FixtureAPITestCase): "activity_state": ActivityState.Disabled.value, "element_name_contains": None, "ml_class_id": str(self.ml_class.id), - "model_id": None, - "train_folder_id": None, - "validation_folder_id": None, - "test_folder_id": None, }) def test_create_process_non_folder_no_zone(self): @@ -430,10 +418,6 @@ class TestCreateProcess(FixtureAPITestCase): "activity_state": ActivityState.Disabled.value, "element_name_contains": None, "ml_class_id": None, - "model_id": None, - "train_folder_id": None, - "validation_folder_id": None, - "test_folder_id": None, }) def test_create_process_mixed_selection_filters(self): @@ -935,10 +919,6 @@ class TestCreateProcess(FixtureAPITestCase): "activity_state": ActivityState.Disabled.value, "element_name_contains": None, "ml_class_id": None, - "model_id": None, - "train_folder_id": None, - "validation_folder_id": None, - "test_folder_id": None, }) task = process.tasks.get(slug__startswith="custom_") @@ -982,10 +962,6 @@ class TestCreateProcess(FixtureAPITestCase): "activity_state": ActivityState.Disabled.value, "element_name_contains": None, "ml_class_id": None, - "model_id": None, - "train_folder_id": None, - "validation_folder_id": None, - "test_folder_id": None, }) def test_create_process_dataset_mode_no_selection(self): diff --git a/arkindex/process/tests/test_processes.py b/arkindex/process/tests/test_processes.py index 69bc86171b..c60ac38b62 100644 --- a/arkindex/process/tests/test_processes.py +++ b/arkindex/process/tests/test_processes.py @@ -159,6 +159,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.repository_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False, }, { "id": str(self.user_img_process.id), @@ -172,6 +173,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.user_img_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False, }, { "id": str(self.elts_process.id), @@ -185,6 +187,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.elts_process.updated.isoformat().replace("+00:00", "Z"), "started": self.elts_process.started.isoformat().replace("+00:00", "Z"), "finished": None, + "use_cache": False, }, { "id": str(self.workers_process.id), @@ -198,6 +201,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.workers_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False, }, ] }) @@ -236,6 +240,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.user_img_process.updated.isoformat().replace("+00:00", "Z"), "started": self.user_img_process.started.isoformat().replace("+00:00", "Z"), "finished": None, + "use_cache": False }, ], }) @@ -270,6 +275,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.user_img_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, { "id": str(self.workers_process.id), @@ -283,6 +289,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.workers_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, ] }) @@ -349,6 +356,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.local_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, ] }) @@ -390,6 +398,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.user_img_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, { "id": str(self.workers_process.id), @@ -403,6 +412,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.workers_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, ] }) @@ -582,6 +592,7 @@ class TestProcesses(FixtureAPITestCase): "updated": unscheduled_with_tasks.updated.isoformat().replace("+00:00", "Z"), "started": unscheduled_with_tasks.started.isoformat().replace("+00:00", "Z"), "finished": None, + "use_cache": False }, ] }) @@ -608,6 +619,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.elts_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, { "id": str(self.repository_process.id), @@ -621,6 +633,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.repository_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, { "id": str(self.user_img_process.id), @@ -634,6 +647,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.user_img_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, { "id": str(self.workers_process.id), @@ -647,6 +661,7 @@ class TestProcesses(FixtureAPITestCase): "updated": self.workers_process.updated.isoformat().replace("+00:00", "Z"), "started": None, "finished": None, + "use_cache": False }, ] }) @@ -686,7 +701,6 @@ class TestProcesses(FixtureAPITestCase): "load_children": False, "ml_class_id": None, "mode": "files", - "model_id": None, "name": None, "revision": None, "state": "unscheduled", @@ -702,11 +716,8 @@ class TestProcesses(FixtureAPITestCase): } ], "template_id": None, - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, "use_gpu": False, - "validation_folder_id": None, "created": self.user_img_process.created.isoformat().replace("+00:00", "Z"), "updated": self.user_img_process.updated.isoformat().replace("+00:00", "Z"), "started": self.user_img_process.started.isoformat().replace("+00:00", "Z"), @@ -1354,10 +1365,6 @@ class TestProcesses(FixtureAPITestCase): "revision": None, "state": "unscheduled", "template_id": None, - "model_id": None, - "train_folder_id": None, - "validation_folder_id": None, - "test_folder_id": None, "farm": None, "tasks": [], "created": process.created.isoformat().replace("+00:00", "Z"), @@ -1594,10 +1601,6 @@ class TestProcesses(FixtureAPITestCase): "revision": None, "state": "unscheduled", "template_id": None, - "model_id": None, - "train_folder_id": None, - "validation_folder_id": None, - "test_folder_id": None, "farm": None, "tasks": [], "created": process.created.isoformat().replace("+00:00", "Z"), diff --git a/arkindex/process/tests/test_user_workerruns.py b/arkindex/process/tests/test_user_workerruns.py index b307c89826..f42698d2de 100644 --- a/arkindex/process/tests/test_user_workerruns.py +++ b/arkindex/process/tests/test_user_workerruns.py @@ -85,13 +85,9 @@ class TestUserWorkerRuns(FixtureAPITestCase): "corpus": None, "id": str(self.local_process.id), "mode": "local", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None }, "summary": f"Worker Recognizer @ {str(self.version_1.id)[:6]}", "worker_version": { @@ -133,13 +129,9 @@ class TestUserWorkerRuns(FixtureAPITestCase): "corpus": None, "id": str(self.local_process.id), "mode": "local", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None }, "summary": "Worker Custom worker @ version 1", "worker_version": { @@ -251,13 +243,9 @@ class TestUserWorkerRuns(FixtureAPITestCase): "corpus": None, "id": str(self.local_process.id), "mode": "local", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None } }) @@ -449,13 +437,9 @@ class TestUserWorkerRuns(FixtureAPITestCase): "corpus": None, "id": str(self.local_process.id), "mode": "local", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None } }) diff --git a/arkindex/process/tests/test_workerruns.py b/arkindex/process/tests/test_workerruns.py index 1c615d2ab9..e66ecfc19f 100644 --- a/arkindex/process/tests/test_workerruns.py +++ b/arkindex/process/tests/test_workerruns.py @@ -161,13 +161,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None }, "summary": f"Worker Recognizer @ {str(self.version_1.id)[:6]}", }]) @@ -442,13 +438,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": mode.value, - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "summary": f"Worker Recognizer @ {str(self.version_1.id)[:6]}", }) @@ -544,13 +536,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "summary": f"Worker Recognizer @ {str(self.version_1.id)[:6]} using configuration 'My config'", }) @@ -648,13 +636,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "summary": "Worker Recognizer @ main, develop, trunk, master, patate, pouet", }) @@ -690,13 +674,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -754,13 +734,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -808,13 +784,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": None, "mode": "local", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_custom.id), @@ -965,13 +937,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": None, "mode": "local", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "summary": f"Worker Recognizer @ {str(self.version_1.id)[:6]}", }) @@ -1039,13 +1007,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None }, "summary": f"Worker Recognizer @ {str(self.version_1.id)[:6]}", }) @@ -1245,13 +1209,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -1311,13 +1271,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -1385,13 +1341,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -1771,13 +1723,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(version_with_model.id), @@ -1874,13 +1822,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(version_with_model.id), @@ -1953,13 +1897,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -2184,13 +2124,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -2250,13 +2186,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -2321,13 +2253,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), @@ -2694,13 +2622,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(version_with_model.id), @@ -2794,13 +2718,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(version_with_model.id), @@ -2872,13 +2792,9 @@ class TestWorkerRuns(FixtureAPITestCase): "activity_state": "disabled", "corpus": str(self.corpus.id), "mode": "workers", - "model_id": None, "name": None, "state": "unscheduled", - "test_folder_id": None, - "train_folder_id": None, "use_cache": False, - "validation_folder_id": None, }, "worker_version": { "id": str(self.version_1.id), diff --git a/arkindex/sql_validation/element_dot_delete.sql b/arkindex/sql_validation/element_dot_delete.sql index 9c6c904038..31722f6a59 100644 --- a/arkindex/sql_validation/element_dot_delete.sql +++ b/arkindex/sql_validation/element_dot_delete.sql @@ -35,30 +35,6 @@ OR element_id IN ( SELECT element_id FROM documents_elementpath WHERE path && ARRAY['{id}'::uuid] ) ; -UPDATE process_process -SET train_folder_id = NULL -WHERE train_folder_id = '{id}'::uuid - OR train_folder_id IN - (SELECT element_id - FROM documents_elementpath - WHERE path && ARRAY['{id}'::uuid] ) ; - -UPDATE process_process -SET validation_folder_id = NULL -WHERE validation_folder_id = '{id}'::uuid - OR validation_folder_id IN - (SELECT element_id - FROM documents_elementpath - WHERE path && ARRAY['{id}'::uuid] ) ; - -UPDATE process_process -SET test_folder_id = NULL -WHERE test_folder_id = '{id}'::uuid - OR test_folder_id IN - (SELECT element_id - FROM documents_elementpath - WHERE path && ARRAY['{id}'::uuid] ) ; - DELETE FROM documents_selection selection WHERE element_id = '{id}'::uuid OR element_id IN ( diff --git a/arkindex/sql_validation/element_trash_children.sql b/arkindex/sql_validation/element_trash_children.sql index e287cfddce..0ad34d8158 100644 --- a/arkindex/sql_validation/element_trash_children.sql +++ b/arkindex/sql_validation/element_trash_children.sql @@ -100,39 +100,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -248,39 +215,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[1] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[1] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[1] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -364,27 +298,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/element_trash_deep.sql b/arkindex/sql_validation/element_trash_deep.sql index fa4bc690ff..b63124f7c2 100644 --- a/arkindex/sql_validation/element_trash_deep.sql +++ b/arkindex/sql_validation/element_trash_deep.sql @@ -100,39 +100,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[4] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[4] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[4] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -248,39 +215,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[3] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[3] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[3] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -396,39 +330,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -544,39 +445,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[1] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[1] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[1] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -660,27 +528,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/element_trash_ml_class.sql b/arkindex/sql_validation/element_trash_ml_class.sql index 67a951b60b..f8d7261585 100644 --- a/arkindex/sql_validation/element_trash_ml_class.sql +++ b/arkindex/sql_validation/element_trash_ml_class.sql @@ -109,42 +109,6 @@ WHERE "process_process"."element_id" IN INNER JOIN "documents_classification" U1 ON (U0."id" = U1."element_id") WHERE U1."id" IS NOT NULL)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_classification" U1 ON (U0."id" = U1."element_id") - WHERE U1."id" IS NOT NULL)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_classification" U1 ON (U0."id" = U1."element_id") - WHERE U1."id" IS NOT NULL)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_classification" U1 ON (U0."id" = U1."element_id") - WHERE U1."id" IS NOT NULL)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -238,30 +202,6 @@ WHERE "process_process"."element_id" IN INNER JOIN "documents_classification" U1 ON (U0."id" = U1."element_id") WHERE U1."id" IS NOT NULL); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_classification" U1 ON (U0."id" = U1."element_id") - WHERE U1."id" IS NOT NULL); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_classification" U1 ON (U0."id" = U1."element_id") - WHERE U1."id" IS NOT NULL); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_classification" U1 ON (U0."id" = U1."element_id") - WHERE U1."id" IS NOT NULL); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/element_trash_no_children.sql b/arkindex/sql_validation/element_trash_no_children.sql index bbbb84246b..7bce1a2be5 100644 --- a/arkindex/sql_validation/element_trash_no_children.sql +++ b/arkindex/sql_validation/element_trash_no_children.sql @@ -58,27 +58,6 @@ WHERE "process_process"."element_id" IN FROM "documents_element" U0 WHERE U0."id" = '{id}'::uuid); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE U0."id" = '{id}'::uuid); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/process_elements_filter_ml_class.sql b/arkindex/sql_validation/process_elements_filter_ml_class.sql index 0dd85b16c9..01a2e567dc 100644 --- a/arkindex/sql_validation/process_elements_filter_ml_class.sql +++ b/arkindex/sql_validation/process_elements_filter_ml_class.sql @@ -36,11 +36,7 @@ SELECT "process_process"."id", "process_process"."use_gpu", "process_process"."template_id", "process_process"."bucket_name", - "process_process"."prefix", - "process_process"."model_id", - "process_process"."train_folder_id", - "process_process"."validation_folder_id", - "process_process"."test_folder_id" + "process_process"."prefix" FROM "process_process" WHERE ("process_process"."corpus_id" IS NOT NULL AND "process_process"."id" = '{process_id}'::uuid) diff --git a/arkindex/sql_validation/process_elements_filter_type.sql b/arkindex/sql_validation/process_elements_filter_type.sql index 4b2502d959..507cc004cb 100644 --- a/arkindex/sql_validation/process_elements_filter_type.sql +++ b/arkindex/sql_validation/process_elements_filter_type.sql @@ -36,11 +36,7 @@ SELECT "process_process"."id", "process_process"."use_gpu", "process_process"."template_id", "process_process"."bucket_name", - "process_process"."prefix", - "process_process"."model_id", - "process_process"."train_folder_id", - "process_process"."validation_folder_id", - "process_process"."test_folder_id" + "process_process"."prefix" FROM "process_process" WHERE ("process_process"."corpus_id" IS NOT NULL AND "process_process"."id" = '{process_id}'::uuid) diff --git a/arkindex/sql_validation/process_elements_top_level.sql b/arkindex/sql_validation/process_elements_top_level.sql index 7d2bfe7d00..ce1c0fbfcd 100644 --- a/arkindex/sql_validation/process_elements_top_level.sql +++ b/arkindex/sql_validation/process_elements_top_level.sql @@ -36,11 +36,7 @@ SELECT "process_process"."id", "process_process"."use_gpu", "process_process"."template_id", "process_process"."bucket_name", - "process_process"."prefix", - "process_process"."model_id", - "process_process"."train_folder_id", - "process_process"."validation_folder_id", - "process_process"."test_folder_id" + "process_process"."prefix" FROM "process_process" WHERE ("process_process"."corpus_id" IS NOT NULL AND "process_process"."id" = '{process_id}'::uuid) diff --git a/arkindex/sql_validation/process_elements_with_image.sql b/arkindex/sql_validation/process_elements_with_image.sql index d7a841886b..055baeee3e 100644 --- a/arkindex/sql_validation/process_elements_with_image.sql +++ b/arkindex/sql_validation/process_elements_with_image.sql @@ -36,11 +36,7 @@ SELECT "process_process"."id", "process_process"."use_gpu", "process_process"."template_id", "process_process"."bucket_name", - "process_process"."prefix", - "process_process"."model_id", - "process_process"."train_folder_id", - "process_process"."validation_folder_id", - "process_process"."test_folder_id" + "process_process"."prefix" FROM "process_process" WHERE ("process_process"."corpus_id" IS NOT NULL AND "process_process"."id" = '{process_id}'::uuid) diff --git a/arkindex/sql_validation/worker_results_delete_all_versions.sql b/arkindex/sql_validation/worker_results_delete_all_versions.sql index efecadf9ab..fdc4a049dd 100644 --- a/arkindex/sql_validation/worker_results_delete_all_versions.sql +++ b/arkindex/sql_validation/worker_results_delete_all_versions.sql @@ -109,42 +109,6 @@ WHERE "process_process"."element_id" IN WHERE (U0."corpus_id" = '{corpus_id}'::uuid AND NOT (U0."worker_version_id" IS NULL)))); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL)))); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL)))); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL)))); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -238,30 +202,6 @@ WHERE "process_process"."element_id" IN WHERE (U0."corpus_id" = '{corpus_id}'::uuid AND NOT (U0."worker_version_id" IS NULL))); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL))); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL))); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL))); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/worker_results_delete_configuration_filter.sql b/arkindex/sql_validation/worker_results_delete_configuration_filter.sql index 1cf0d1e0af..df6e8fd9da 100644 --- a/arkindex/sql_validation/worker_results_delete_configuration_filter.sql +++ b/arkindex/sql_validation/worker_results_delete_configuration_filter.sql @@ -95,36 +95,6 @@ WHERE "process_process"."element_id" IN AND NOT (U0."worker_version_id" IS NULL) AND U3."configuration_id" = '{configuration_id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."configuration_id" = '{configuration_id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."configuration_id" = '{configuration_id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."configuration_id" = '{configuration_id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/worker_results_delete_in_corpus.sql b/arkindex/sql_validation/worker_results_delete_in_corpus.sql index 8a34274fd6..1f7a8878f0 100644 --- a/arkindex/sql_validation/worker_results_delete_in_corpus.sql +++ b/arkindex/sql_validation/worker_results_delete_in_corpus.sql @@ -109,42 +109,6 @@ WHERE "process_process"."element_id" IN WHERE (U0."corpus_id" = '{corpus_id}'::uuid AND U0."worker_version_id" = '{version_id}'::uuid))); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid))); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid))); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid))); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -238,30 +202,6 @@ WHERE "process_process"."element_id" IN WHERE (U0."corpus_id" = '{corpus_id}'::uuid AND U0."worker_version_id" = '{version_id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/worker_results_delete_model_version_under_parent.sql b/arkindex/sql_validation/worker_results_delete_model_version_under_parent.sql index 5739d8c031..434cb3402d 100644 --- a/arkindex/sql_validation/worker_results_delete_model_version_under_parent.sql +++ b/arkindex/sql_validation/worker_results_delete_model_version_under_parent.sql @@ -113,42 +113,6 @@ WHERE "process_process"."element_id" IN AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[] AND U4."model_version_id" = '{model_version_id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - INNER JOIN "process_workerrun" U4 ON (U0."worker_run_id" = U4."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[] - AND U4."model_version_id" = '{model_version_id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - INNER JOIN "process_workerrun" U4 ON (U0."worker_run_id" = U4."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[] - AND U4."model_version_id" = '{model_version_id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - INNER JOIN "process_workerrun" U4 ON (U0."worker_run_id" = U4."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[] - AND U4."model_version_id" = '{model_version_id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -349,39 +313,6 @@ WHERE "process_process"."element_id" IN AND U0."id" = '{element_id}'::uuid AND U3."model_version_id" = '{model_version_id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U0."id" = '{element_id}'::uuid - AND U3."model_version_id" = '{model_version_id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U0."id" = '{element_id}'::uuid - AND U3."model_version_id" = '{model_version_id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U0."id" = '{element_id}'::uuid - AND U3."model_version_id" = '{model_version_id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/worker_results_delete_under_parent.sql b/arkindex/sql_validation/worker_results_delete_under_parent.sql index eb04b0085c..b807c4b915 100644 --- a/arkindex/sql_validation/worker_results_delete_under_parent.sql +++ b/arkindex/sql_validation/worker_results_delete_under_parent.sql @@ -95,36 +95,6 @@ WHERE "process_process"."element_id" IN AND U0."worker_version_id" = '{version_id}'::uuid AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[])); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[])); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[])); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[])); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -304,33 +274,6 @@ WHERE "process_process"."element_id" IN AND U0."worker_version_id" = '{version_id}'::uuid AND U0."id" = '{element_id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/worker_results_delete_under_parent_included.sql b/arkindex/sql_validation/worker_results_delete_under_parent_included.sql index fcd9794091..91623264d4 100644 --- a/arkindex/sql_validation/worker_results_delete_under_parent_included.sql +++ b/arkindex/sql_validation/worker_results_delete_under_parent_included.sql @@ -95,36 +95,6 @@ WHERE "process_process"."element_id" IN AND U0."worker_version_id" = '{version_id}'::uuid AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[])); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[])); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[])); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[])); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -336,45 +306,6 @@ WHERE "process_process"."element_id" IN AND U0."worker_version_id" = '{version_id}'::uuid AND U0."id" = '{element_id}'::uuid))); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid))); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid))); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT V0."id" - FROM "documents_element" V0 - INNER JOIN "documents_elementpath" V1 ON (V0."id" = V1."element_id") - WHERE V1."path"[2] IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid))); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -478,33 +409,6 @@ WHERE "process_process"."element_id" IN AND U0."worker_version_id" = '{version_id}'::uuid AND U0."id" = '{element_id}'::uuid)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND U0."worker_version_id" = '{version_id}'::uuid - AND U0."id" = '{element_id}'::uuid)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath diff --git a/arkindex/sql_validation/worker_results_delete_unset_configuration.sql b/arkindex/sql_validation/worker_results_delete_unset_configuration.sql index f7a7131be0..57b1e6c358 100644 --- a/arkindex/sql_validation/worker_results_delete_unset_configuration.sql +++ b/arkindex/sql_validation/worker_results_delete_unset_configuration.sql @@ -113,42 +113,6 @@ WHERE "process_process"."element_id" IN AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[] AND U4."configuration_id" IS NULL)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - LEFT OUTER JOIN "process_workerrun" U4 ON (U0."worker_run_id" = U4."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[] - AND U4."configuration_id" IS NULL)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - LEFT OUTER JOIN "process_workerrun" U4 ON (U0."worker_run_id" = U4."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[] - AND U4."configuration_id" IS NULL)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - INNER JOIN "documents_elementpath" U3 ON (U0."id" = U3."element_id") - LEFT OUTER JOIN "process_workerrun" U4 ON (U0."worker_run_id" = U4."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U3."path" && (ARRAY['{element_id}'::uuid])::uuid[] - AND U4."configuration_id" IS NULL)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath @@ -361,39 +325,6 @@ WHERE "process_process"."element_id" IN AND U0."id" = '{element_id}'::uuid AND U3."configuration_id" IS NULL)); -UPDATE "process_process" -SET "train_folder_id" = NULL -WHERE "process_process"."train_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - LEFT OUTER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U0."id" = '{element_id}'::uuid - AND U3."configuration_id" IS NULL)); - -UPDATE "process_process" -SET "validation_folder_id" = NULL -WHERE "process_process"."validation_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - LEFT OUTER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U0."id" = '{element_id}'::uuid - AND U3."configuration_id" IS NULL)); - -UPDATE "process_process" -SET "test_folder_id" = NULL -WHERE "process_process"."test_folder_id" IN - (SELECT U0."id" - FROM "documents_element" U0 - LEFT OUTER JOIN "process_workerrun" U3 ON (U0."worker_run_id" = U3."id") - WHERE (U0."corpus_id" = '{corpus_id}'::uuid - AND NOT (U0."worker_version_id" IS NULL) - AND U0."id" = '{element_id}'::uuid - AND U3."configuration_id" IS NULL)); - WITH element_ids (id) AS (DELETE FROM documents_elementpath -- GitLab