cubicweb #3595309 [migration] crash when doing a sync_schema [validation pending]

Some constraints are removed twice...

C:\Data\workspace\Pylos\pegase_conf\cubes\container\utils.py:38: UserWarning: <class 'cubes.container.hooks.CloneContainer'> has no selector set
warn('%s has no selector set' % cls)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Data\workspace\Pylos\pegase_conf\cubicweb\server\migractions.py", line 1195, in cmd_sync_schema_props_perms
self.commit()
File "C:\Data\workspace\Pylos\pegase_conf\cubicweb\server\migractions.py", line 312, in commit
self._cnx.commit()
File "C:\Data\workspace\Pylos\pegase_conf\cubicweb\dbapi.py", line 548, in decorator
return func(self, *args, **kwargs)
File "C:\Data\workspace\Pylos\pegase_conf\cubicweb\dbapi.py", line 774, in commit
return self._repo.commit(self.sessionid, **self._txid())
File "C:\Data\workspace\Pylos\pegase_conf\cubicweb\server\repository.py", line 849, in commit
return session.commit()
File "C:\Data\workspace\Pylos\pegase_conf\cubicweb\server\session.py", line 1255, in commit
operation.handle_event('precommit_event')
File "C:\Data\workspace\Pylos\pegase_conf\cubicweb\server\hook.py", line 775, in handle_event
getattr(self, event)()
File "C:\Data\workspace\Pylos\pegase_conf\cubicweb\hooks\syncschema.py", line 679, in precommit_event
rdef.constraints.remove(self.oldcstr)
ValueError: list.remove(x): x not in list
>>>

priorityimportant
typebug
done in3.17.14
load0.200
load left0.000
closed by#072429be2d95 [hooks/syncschema] do not crash on double removal of a constraint
patch[hooks/syncschema] do not crash on double removal of a constraint [applied]