Open jbpenrath opened 1 year ago
I'm not sure about CertificateDefinition
. The information is that you have complete a course with a certain grades. This information is held on the Certificate
model. If you change name, or we change the template, I would argue that the certificate should change as well. What do you think?
Actually, I thought about that because currently if we update CertificateDefinition
template, we could have to update the Certificate
document context (if new data are required by the template). From my point view, versioning CertificateDefinition
will prevent this drawback. But this is surely something acceptable to update existing Certificate context if we update the CertificateDefinition
template.
Feature Request
Is your feature request related to a problem or unsupported use case? Please describe.
Currently, Joanie does not manage model versioning. But, this appears to be relevant for
Product
,ContractDefinition
andCertificateDefinition
models.Indeed, about
Product
, currently, on order creation, we are copying target course relations from Product to Order that does not scale very well. About,ContractDefinition
andCertificateDefinition
models, if one definition change, the issued document related to this definition will reflect those changes, that is weird.Describe the solution you'd like
ForeignKey
field on those models to create inheritance relation between resources.Describe alternatives you've considered