AI OnAI Off
Since I did not get an answer to this question yet, meanwhile I have tested in my local and verified that adding a GUID to PropertyDefinitionTypes prevent the runtime issues which happen after updating the namespaces.
And because of that, I think that is the best practice of declaring a PropertyDefinitionType. (Someone from Optimizely could verify this)
Based on our experience its better to assign GUID. We had issues when upgrading from CMS 11 to CMS 12 where we observed that we had to get a guid from existing DB and assign it to new project to avoid issues. This is just our experience and not from any specific document.
Hi. I have seen that the PropertyDefinitionTypes are defined without the GUID in the Optimizely documentation (See here, here and here)
Example: Before adding a GUID
However, we have had an architectural change in our project. And we have had runtime issues after changing the namespace of the PropertyDefinitionType we have created. Because we have moved the PropertyDefinitionType we have created to a new project inside the same solution.
We have been able to dig into the database and find a fix for that. However, I am wondering how to prevent the issues arise from changing the namespaces in the future related to PropertyDefinitionTypes.
Is it the best practice to use GUIDs in PropertyDefinitionTypes?
Does it prevent the runtime issues which happen after updating the namespaces of the PropertyDefinitionTypes?
I asked this question because I am not sure whether this is the best practice as all the examples [You can find the links above] related to the PropertyDefinitionTypePlugIn I found in Optimizely documentation are not having a GUID defined.
Thanks :)