Improvement SF validation "Domain is not in use"

Related products: Software Factory

The SF came up with the validation message "Domain is not used". After deleting the domain I found out that some functionalities were giving an error message because the domain was using in a declare.  

To have the validation perform a code search on the domain name is probably very difficult (because a domain name in a code template can be anything) but feel free to make it so if possible. 

I would at least suggest that the validation Description, Consequence or Solution text be expanded to alert a developer that performing a code search on this domain name is a required action before deleting the domain. 

The developer can then determine to keep the domain or to replace the declared domain with another domain or data type. 

 

Hi @Dennis van Leeuwen,

For performance reasons, we opt to not inspect the code during the validation of the model. However, we do agree that expanding the solution text is beneficial. Therefore, we adjusted all the “not used” validations. In this example, the new solution in the 2023.1 text will be:

Assess if the domain is still relevant. Optionally, perform a code search to check if it is being used in custom code. If this is the case, decide if this message should be approved. Delete the domain when it is no longer relevant.


NewNext release

Next releaseCompleted