Skip to content

Commit 5110b40

Browse files
committed
Merge branch 'release/0.7.0'
2 parents 0c71df1 + 6474a5d commit 5110b40

3 files changed

+97
-1
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Generated by Django 5.1.3 on 2025-01-02 22:08
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("ifc_validation_models", "0005_update_modelinstance_constraint"),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name="model",
15+
name="header_validation",
16+
field=models.JSONField(
17+
blank=True,
18+
help_text="Validation of the Header of the Model.",
19+
null=True,
20+
),
21+
),
22+
migrations.AddField(
23+
model_name="model",
24+
name="status_header",
25+
field=models.CharField(
26+
choices=[
27+
("v", "Valid"),
28+
("i", "Invalid"),
29+
("n", "Not Validated"),
30+
("w", "Warning"),
31+
("-", "Not Applicable"),
32+
],
33+
db_index=True,
34+
default="n",
35+
help_text="Status of the Header Validation.",
36+
max_length=1,
37+
),
38+
),
39+
migrations.AlterField(
40+
model_name="validationtask",
41+
name="type",
42+
field=models.CharField(
43+
choices=[
44+
("SYNTAX", "STEP Physical File Syntax"),
45+
("SCHEMA", "Schema (EXPRESS language)"),
46+
("MVD", "Model View Definitions"),
47+
("BSDD", "bSDD Compliance"),
48+
("INFO", "Parse Info"),
49+
("PREREQ", "Prerequisites"),
50+
("HEADER", "Header Validation"),
51+
("NORMATIVE_IA", "Implementer Agreements (IA)"),
52+
("NORMATIVE_IP", "Informal Propositions (IP)"),
53+
("INDUSTRY", "Industry Practices"),
54+
("INST_COMPLETION", "Instance Completion"),
55+
],
56+
db_index=True,
57+
help_text="Type of the Validation Task.",
58+
max_length=25,
59+
),
60+
),
61+
]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated by Django 5.1.6 on 2025-02-18 19:05
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('ifc_validation_models', '0006_model_header_validation_model_status_header_and_more'),
10+
]
11+
12+
operations = [
13+
migrations.AlterModelTable(
14+
name='useradditionalinfo',
15+
table='ifc_user_additional_info',
16+
),
17+
]

models.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class UserAdditionalInfo(AuditedBaseModel):
257257

258258
class Meta:
259259

260-
db_table = "ifc_user_aditional_info"
260+
db_table = "ifc_user_additional_info"
261261
verbose_name = "User Additional Info"
262262
verbose_name_plural = "User Additional Info"
263263

@@ -546,6 +546,16 @@ class License(models.TextChoices):
546546
blank=False,
547547
help_text="Status of the Prerequisites Validation."
548548
)
549+
550+
status_header = models.CharField(
551+
max_length=1,
552+
choices=Status.choices,
553+
default=Status.NOT_VALIDATED,
554+
db_index=True,
555+
null=False,
556+
blank=False,
557+
help_text="Status of the Header Validation."
558+
)
549559

550560
uploaded_by = models.ForeignKey(
551561
to=settings.AUTH_USER_MODEL,
@@ -561,6 +571,12 @@ class License(models.TextChoices):
561571
blank=True,
562572
help_text="Properties of the Model."
563573
)
574+
575+
header_validation = models.JSONField(
576+
null=True,
577+
blank=True,
578+
help_text="Validation of the Header of the Model."
579+
)
564580

565581
class Meta:
566582
db_table = "ifc_model"
@@ -582,6 +598,7 @@ def reset_status(self):
582598
self.status_syntax = Model.Status.NOT_VALIDATED
583599
self.status_industry_practices = Model.Status.NOT_VALIDATED
584600
self.status_prereq = Model.Status.NOT_VALIDATED
601+
self.status_header = Model.Status.NOT_VALIDATED
585602
self.save()
586603

587604

@@ -817,6 +834,7 @@ class Type(models.TextChoices):
817834
BSDD = 'BSDD', 'bSDD Compliance'
818835
PARSE_INFO = 'INFO', 'Parse Info'
819836
PREREQUISITES = 'PREREQ', 'Prerequisites'
837+
HEADER = 'HEADER', 'Header Validation'
820838
NORMATIVE_IA = 'NORMATIVE_IA', 'Implementer Agreements (IA)'
821839
NORMATIVE_IP = 'NORMATIVE_IP', 'Informal Propositions (IP)'
822840
INDUSTRY_PRACTICES = 'INDUSTRY', 'Industry Practices'

0 commit comments

Comments
 (0)