Skip to content

Commit f9551c6

Browse files
authored
Merge pull request #45 from buildingSMART/IVS_605__Data_model_changes_for_ClamAV_Magic_Check
IVS-605 - Add new task type for ClamAV/File Magic
2 parents 3a4c020 + b2fa8cb commit f9551c6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 5.2.4 on 2025-11-08 10:20
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('ifc_validation_models', '0017_add_user_ci_index'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='model',
15+
name='status_magic_clamav',
16+
field=models.CharField(choices=[('v', 'Valid'), ('i', 'Invalid'), ('n', 'Not Validated'), ('w', 'Warning'), ('-', 'Not Applicable')], db_index=True, default='n', help_text='Status of the file magic and anti-virus checks.', max_length=1),
17+
),
18+
migrations.AlterField(
19+
model_name='validationtask',
20+
name='type',
21+
field=models.CharField(choices=[('MAGIC_AND_CLAMAV', 'File magic and anti-virus checks'), ('SYNTAX', 'STEP Physical File Syntax'), ('HEADER_SYNTAX', 'STEP Physical File Syntax (HEADER section)'), ('SCHEMA', 'Schema (EXPRESS language)'), ('MVD', 'Model View Definitions'), ('BSDD', 'bSDD Compliance'), ('INFO', 'Parse Info'), ('PREREQ', 'Prerequisites'), ('HEADER', 'Header Validation'), ('NORMATIVE_IA', 'Implementer Agreements (IA)'), ('NORMATIVE_IP', 'Informal Propositions (IP)'), ('INDUSTRY', 'Industry Practices'), ('INST_COMPLETION', 'Instance Completion'), ('DIGITAL_SIGNATURES', 'Digital Signatures')], db_index=True, help_text='Type of the Validation Task.', max_length=25),
22+
),
23+
]

models.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,16 @@ class License(models.TextChoices):
613613
help_text="Status of the Syntax Validation.",
614614
)
615615

616+
status_magic_clamav = models.CharField(
617+
max_length=1,
618+
choices=Status.choices,
619+
default=Status.NOT_VALIDATED,
620+
db_index=True,
621+
null=False,
622+
blank=False,
623+
help_text="Status of the file magic and anti-virus checks.",
624+
)
625+
616626
status_header_syntax = models.CharField(
617627
max_length=1,
618628
choices=Status.choices,
@@ -956,6 +966,7 @@ class Type(models.TextChoices):
956966
"""
957967
The type of an Validation Task.
958968
"""
969+
MAGIC_AND_CLAMAV = 'MAGIC_AND_CLAMAV', 'File magic and anti-virus checks',
959970
SYNTAX = 'SYNTAX', 'STEP Physical File Syntax'
960971
HEADER_SYNTAX = 'HEADER_SYNTAX', 'STEP Physical File Syntax (HEADER section)'
961972
SCHEMA = 'SCHEMA', 'Schema (EXPRESS language)'

0 commit comments

Comments
 (0)