From fb1046c52552461a2d8dd9db5f73747eb3da51e6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 16 Jun 2025 15:04:19 +0200 Subject: ⚰️ Remove old fixtures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/fixtures/importer_model.json | 35 -- ishtar_common/fixtures/initial_importtypes-fr.json | 602 --------------------- .../fixtures/initial_importtypes-tests-fr.json | 432 --------------- 3 files changed, 1069 deletions(-) diff --git a/ishtar_common/fixtures/importer_model.json b/ishtar_common/fixtures/importer_model.json index b2bf831c6..04db58f8a 100644 --- a/ishtar_common/fixtures/importer_model.json +++ b/ishtar_common/fixtures/importer_model.json @@ -48,13 +48,6 @@ "klass": "archaeological_context_records.models.ContextRecord" } }, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation d'op\u00e9ration", - "klass": "archaeological_operations.models.OperationSource" - } -}, { "model": "ishtar_common.importermodel", "fields": { @@ -83,34 +76,6 @@ "klass": "archaeological_finds.models_finds.Find" } }, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation d'UE", - "klass": "archaeological_context_records.models.ContextRecordSource" - } -}, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation mobilier", - "klass": "archaeological_finds.models_finds.FindSource" - } -}, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation de traitement", - "klass": "archaeological_finds.models_treatments.TreatmentSource" - } -}, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation de demande de traitement", - "klass": "archaeological_finds.models_treatments.TreatmentFileSource" - } -}, { "model": "ishtar_common.importermodel", "fields": { diff --git a/ishtar_common/fixtures/initial_importtypes-fr.json b/ishtar_common/fixtures/initial_importtypes-fr.json index b1c048fd5..670f1cf94 100644 --- a/ishtar_common/fixtures/initial_importtypes-fr.json +++ b/ishtar_common/fixtures/initial_importtypes-fr.json @@ -55,13 +55,6 @@ "klass": "archaeological_context_records.models.ContextRecord" } }, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation d'op\u00e9ration", - "klass": "archaeological_operations.models.OperationSource" - } -}, { "model": "ishtar_common.importermodel", "fields": { @@ -90,34 +83,6 @@ "klass": "archaeological_finds.models_finds.Find" } }, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation d'UE", - "klass": "archaeological_context_records.models.ContextRecordSource" - } -}, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation mobilier", - "klass": "archaeological_finds.models_finds.FindSource" - } -}, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation de traitement", - "klass": "archaeological_finds.models_treatments.TreatmentSource" - } -}, -{ - "model": "ishtar_common.importermodel", - "fields": { - "name": "Documentation de demande de traitement", - "klass": "archaeological_finds.models_treatments.TreatmentFileSource" - } -}, { "model": "ishtar_common.importermodel", "fields": { @@ -270,32 +235,6 @@ ] } }, -{ - "model": "ishtar_common.importertype", - "fields": { - "name": "Ishtar - Op\u00e9rations - Documentation", - "slug": "ishtar-operations-sources", - "description": "Documentation d'op\u00e9ration", - "associated_models": [ - "archaeological_operations.models.OperationSource" - ], - "is_template": true, - "unicity_keys": "external_id", - "available": true, - "users": [], - "created_models": [ - [ - "ishtar_common.models.Author" - ], - [ - "archaeological_operations.models.OperationSource" - ], - [ - "ishtar_common.models.Person" - ] - ] - } -}, { "model": "ishtar_common.importertype", "fields": { @@ -407,15 +346,6 @@ "target": "scientist__person_types" } }, -{ - "model": "ishtar_common.importerdefault", - "fields": { - "importer_type": [ - "ishtar-operations-sources" - ], - "target": "authors" - } -}, { "model": "ishtar_common.importerdefault", "fields": { @@ -447,17 +377,6 @@ "value": "head_scientist" } }, -{ - "model": "ishtar_common.importerdefaultvalues", - "fields": { - "default_target": [ - "ishtar-operations-sources", - "authors" - ], - "target": "author_type", - "value": "main_author" - } -}, { "model": "ishtar_common.importerdefaultvalues", "fields": { @@ -2025,216 +1944,6 @@ "export_field_name": "" } }, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Code op\u00e9ration", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 1, - "description": "Code UNIQUE pour une op\u00e9ration (par exemple : code PATRIARCHE)", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Titre", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 4, - "description": "Titre du document (max. 300 caract\u00e8res)", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type de document", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 3, - "description": "", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Index (num\u00e9ro par op\u00e9ration)", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 2, - "description": "Num\u00e9ro unique par op\u00e9ration", - "regexp_pre_filter": null, - "required": true, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "R\u00e9f\u00e9rence", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 5, - "description": "R\u00e9f\u00e9rence libre (max. 100 caract\u00e8res)", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "R\u00e9f\u00e9rence interne", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 6, - "description": "R\u00e9f\u00e9rence interne libre (max. 100 caract\u00e8res)", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Adresse web associ\u00e9e", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 7, - "description": "Adresse web compl\u00e8te (avec la partie http:// ou https://)", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date de r\u00e9ception", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 8, - "description": "Date de r\u00e9ception (format JJ/MM/AAAA ou AAAA-MM-JJ)", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date de cr\u00e9ation", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 9, - "description": "Date de cr\u00e9ation (format JJ/MM/AAAA ou AAAA-MM-JJ)", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date de r\u00e9ception en documentation", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 10, - "description": "Date de r\u00e9ception en documentation (format JJ/MM/AAAA ou AAAA-MM-JJ)", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Commentaire", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 11, - "description": "Texte libre", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Description", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 12, - "description": "Texte libre", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Information suppl\u00e9mentaire", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 13, - "description": "Texte libre", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Auteur principal", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 15, - "description": "Nom (en casse haute) suivi du pr\u00e9nom de l'auteur (maximum 300 caract\u00e8res). Exemple : DUPONT Jean.", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Existe en doublon", - "importer_type": [ - "ishtar-operations-sources" - ], - "col_number": 14, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": "" - } -}, { "model": "ishtar_common.importercolumn", "fields": { @@ -3834,32 +3543,6 @@ "concat_str": "-" } }, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "ishtar-operations-sources", - 1 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, -{ - "model": "ishtar_common.importerduplicatefield", - "fields": { - "column": [ - "ishtar-operations-sources", - 2 - ], - "field_name": "external_id", - "force_new": false, - "concat": false, - "concat_str": "-" - } -}, { "model": "ishtar_common.importerduplicatefield", "fields": { @@ -6502,291 +6185,6 @@ "comment": "" } }, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 1 - ], - "target": "operation__code_patriarche", - "formater_type": [ - "UnicodeFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "-", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 4 - ], - "target": "title", - "formater_type": [ - "UnicodeFormater", - "300", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 3 - ], - "target": "source_type", - "formater_type": [ - "TypeFormater", - "SourceType", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 2 - ], - "target": "index", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 5 - ], - "target": "reference", - "formater_type": [ - "UnicodeFormater", - "100", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 6 - ], - "target": "internal_reference", - "formater_type": [ - "UnicodeFormater", - "100", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 7 - ], - "target": "associated_url", - "formater_type": [ - "UnicodeFormater", - "300", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 8 - ], - "target": "receipt_date", - "formater_type": [ - "DateFormater", - "%d/%m/%Y | %Y-%m-%d", - " | " - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 9 - ], - "target": "creation_date", - "formater_type": [ - "DateFormater", - "%d/%m/%Y | %Y-%m-%d", - " | " - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 10 - ], - "target": "receipt_date_in_documentation", - "formater_type": [ - "DateFormater", - "%d/%m/%Y | %Y-%m-%d", - " | " - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 11 - ], - "target": "comment", - "formater_type": [ - "UnicodeFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 12 - ], - "target": "description", - "formater_type": [ - "UnicodeFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 13 - ], - "target": "additional_information", - "formater_type": [ - "UnicodeFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 15 - ], - "target": "authors__person__raw_name", - "formater_type": [ - "UnicodeFormater", - "300", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "ishtar-operations-sources", - 14 - ], - "target": "duplicate", - "formater_type": [ - "StrToBoolean", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": "", - "comment": "" - } -}, { "model": "ishtar_common.importtarget", "fields": { diff --git a/ishtar_common/fixtures/initial_importtypes-tests-fr.json b/ishtar_common/fixtures/initial_importtypes-tests-fr.json index eadf26ff5..dfd31ee5b 100644 --- a/ishtar_common/fixtures/initial_importtypes-tests-fr.json +++ b/ishtar_common/fixtures/initial_importtypes-tests-fr.json @@ -31,22 +31,6 @@ "created_models": [] } }, -{ - "model": "ishtar_common.importertype", - "fields": { - "name": "MCC - Documentation", - "slug": "mcc-documentation", - "description": "", - "associated_models": [ - "archaeological_operations.models.OperationSource" - ], - "is_template": true, - "unicity_keys": "", - "available": true, - "users": [], - "created_models": [] - } -}, { "model": "ishtar_common.importertype", "fields": { @@ -88,15 +72,6 @@ "target": "operator" } }, -{ - "model": "ishtar_common.importerdefault", - "fields": { - "importer_type": [ - "mcc-documentation" - ], - "target": "authors" - } -}, { "model": "ishtar_common.importerdefaultvalues", "fields": { @@ -108,17 +83,6 @@ "value": "operator" } }, -{ - "model": "ishtar_common.importerdefaultvalues", - "fields": { - "default_target": [ - "mcc-documentation", - "authors" - ], - "target": "author_type", - "value": "main_author" - } -}, { "model": "ishtar_common.importercolumn", "fields": { @@ -289,174 +253,6 @@ "export_field_name": null } }, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Code Patriarche", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 1, - "description": "Code Patriarche de l'op\u00e9ration associ\u00e9e", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Identifiant externe", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 2, - "description": "", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type de document", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 3, - "description": "", - "regexp_pre_filter": null, - "required": true, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type de support", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 4, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Num\u00e9ro", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 5, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Nom de l'auteur", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 6, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Date de cr\u00e9ation", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 7, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Type de format", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 8, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Description", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 9, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Commentaire", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 12, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "\u00c9chelle", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 13, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, -{ - "model": "ishtar_common.importercolumn", - "fields": { - "label": "Information suppl\u00e9mentaire", - "importer_type": [ - "mcc-documentation" - ], - "col_number": 16, - "description": "", - "regexp_pre_filter": null, - "required": false, - "export_field_name": null - } -}, { "model": "ishtar_common.importercolumn", "fields": { @@ -1375,234 +1171,6 @@ "comment": "" } }, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 1 - ], - "target": "operation__code_patriarche", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 2 - ], - "target": "external_id", - "formater_type": [ - "UnicodeFormater", - "12", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 3 - ], - "target": "source_type", - "formater_type": [ - "TypeFormater", - "SourceType", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 4 - ], - "target": "support_type", - "formater_type": [ - "TypeFormater", - "SupportType", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 5 - ], - "target": "item_number", - "formater_type": [ - "IntegerFormater", - "", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 6 - ], - "target": "authors__person__raw_name", - "formater_type": [ - "UnicodeFormater", - "300", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 7 - ], - "target": "creation_date", - "formater_type": [ - "YearFormater", - "%Y", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 8 - ], - "target": "format_type", - "formater_type": [ - "TypeFormater", - "Format", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 9 - ], - "target": "description", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 12 - ], - "target": "comment", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 13 - ], - "target": "scale", - "formater_type": [ - "UnicodeFormater", - "30", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, -{ - "model": "ishtar_common.importtarget", - "fields": { - "column": [ - "mcc-documentation", - 16 - ], - "target": "additional_information", - "formater_type": [ - "UnicodeFormater", - "1000", - "" - ], - "force_new": false, - "concat": false, - "concat_str": null, - "comment": "" - } -}, { "model": "ishtar_common.importtarget", "fields": { -- cgit v1.2.3