cubicweb #2509729 entity vs int cmp crash on validation (yams schema integrity check) [validation pending]

Traceback (most recent call last):
 File "/home/auc/confs/elea/cubicweb/web/application.py", line 444, in core_handle
   result = controller.publish(rset=rset)
 File "/home/auc/confs/elea/cubicweb/web/views/basecontrollers.py", line 256, in publish
   status, args, entity = _validate_form(self._cw, self._cw.vreg)
 File "/home/auc/confs/elea/cubicweb/web/views/basecontrollers.py", line 219, in _validate_form
   return (False, _validation_error(req, ex), ctrl._edited_entity)
 File "/home/auc/confs/elea/cubicweb/web/views/basecontrollers.py", line 199, in _validation_error
   if foreid == eid:
 File "/home/auc/confs/elea/cubicweb/entity.py", line 536, in __cmp__
   raise NotImplementedError('comparison not implemented for %s' % self.__class__)
NotImplementedError: comparison not implemented for <class 'cubes.wireit.entities.WiringLanguage'>

Note that in the offending code, foreid is indeed actually an entity.

prioritynormal
typebug
done in3.17.4
load1.000
load left0.000
closed by#b982e88e4836 [repo] normalize ValidationError on edited entity (closes #2509729)
patch[repo] normalize ValidationError on commit (closes #2509729) [applied]