Manage quality control point name

Hi,
In quality’s module when you create a control and define a point filling the field string with “Point 1”, the name field is automatically generated as a slug “point_1”.

The issue arises when an inspection is generated from this control, and the user later changes the name of the control point. The problem is that the inspection keeps a reference to the original point name, which no longer matches the updated name. As a result, trying to pass or validate the inspection will raise an error due to the mismatch.

I’m curious to hear how others would handle this scenario:

  • Would you prevent renaming a control point after it’s used in inspections?
  • Would you allow it, but warn users that they will have to manually remove and re-add the point in existing inspections (losing any entered values)?
  • Or would you approach it differently?

Thanks in advance!

As we store data using non-relational structure, we can not guarantee data integrity.
So we rely on the administrator to be careful with what they do.
Now if an exception is raised because a Dict field has a key that has no more a definition, we should probably fix it.