-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requests from TK #2
Comments
Fixes
FIXED
UPDATED
UPDATED ~~ 4. UPDATED 5. My preference would be to remove the
|
class Meta: | |
db_table = "ifc_model" | |
verbose_name = "Model" | |
verbose_name_plural = "Models" |
6. IfcModel
has no attribute type
, suggest file_name
. I didn't review all repr functions, just came across this in my repl session.
UPDATED (for IfcModel; will update repr where you and I see fit; mainly used in Django Admin for now)
7. IfcModel.Status
: Needed? Or retrieve as related IfcValidationTask.Status? We have it currently in the datamodel, but in my mind it is a bit redundant.
Added it initially for performance/backwards compatibility reasons - can be removed
8. IfcValidationTask vs IfcValidationRequest. Why both?
one request
leads to multiple sub- tasks
9. IfcValidationTask/IfcValidationRequest. No foreign key to IfcModel
UPDATED: added request.model
; Tasks can navigate via task.request.model
That's ok. I think it's especially the combination of IfcPascalCase style with IfcPrefix that may lead to confusion as to whether we're talking about concepts from the IFC schema or from our own application. E.g IfcApplication is from the schema, we've called it an IfcAuthoringTool, but it could have easily collided.
Ok that's what I thought and I think that's good, so we can rerun requests on models. But I think the current fields on Request make it a bit confusing as it duplicates fields from both model and task.
May I suggest:
Later we can:
|
The following request/questions came from a quick interaction with the datamodel.
1.
IfcValidationOutcome.instance
points to model instead of instanceifc-validation-data-model/models.py
Lines 705 to 706 in d09fb3a
2.
IfcValidationOutcome.instance
should be optional. In not all cases we will have an instance to refer to3.
IfcValidationOutcome.feature
andcode
are redundant. Delete code.ifc-validation-data-model/models.py
Lines 725 to 730 in d09fb3a
ifc-validation-data-model/models.py
Lines 739 to 745 in d09fb3a
4.
IfcValidationOutcome.feature
andfeature_version
Should be optional as not everything is Gherkin-related.5. My preference would be to remove the
Ifc-
prefix from all classes6.
IfcModel
has no attributetype
, suggestfile_name
. I didn't review all repr functions, just came across this in my repl session.ifc-validation-data-model/models.py
Line 381 in d09fb3a
7.
IfcModel.Status
: Needed? Or retrieve as related IfcValidationTask.Status? We have it currently in the datamodel, but in my mind it is a bit redundant.ifc-validation-data-model/models.py
Lines 185 to 191 in d09fb3a
ifc-validation-data-model/models.py
Lines 280 to 288 in d09fb3a
etc.
vs.
ifc-validation-data-model/models.py
Lines 554 to 563 in d09fb3a
8. IfcValidationTask vs IfcValidationRequest. Why both?
ifc-validation-data-model/models.py
Line 434 in d09fb3a
ifc-validation-data-model/models.py
Line 535 in d09fb3a
9. IfcValidationTask/IfcValidationRequest. No foreign key to IfcModel
The text was updated successfully, but these errors were encountered: