To prevent the nil > empty string transition we would either have to: check the incoming changes and discard the unwanted ones - ignore these transitions when creating audits - just force hosts to always have a comment
The last option felt like the least wrong one. This has an added benefit that searching for hosts without comment becomes somewhat easier.
Related issues
Bug #37224: Creating a host without a comment and then editing it and submitting without any changes creates an update audit record for the nil->'' transition of comment
Fixes #37224 - Force Hosts to have a comment
To prevent the nil
> empty string transition we would either have to:
check the incoming changes and discard the unwanted ones- ignore these transitions when creating audits
- just force hosts to always have a comment
The last option felt like the least wrong one. This has an added benefit
that searching for hosts without comment becomes somewhat easier.