You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
我正在测试端点恢复功能,首先调用 Team 对象的 serialize 方法将 Team 对象序列化为json格式并保存到 team.json 文件,然后调用Tam类的deserialize方法从json文件恢复Team对象。这时候问题出现了,我观察到 Role 的 validate_role_extra 方法将会被调用两次,正常情况下它应该只调用一次。
Bug description
我正在测试端点恢复功能,首先调用 Team 对象的 serialize 方法将 Team 对象序列化为json格式并保存到 team.json 文件,然后调用Tam类的deserialize方法从json文件恢复Team对象。这时候问题出现了,我观察到 Role 的 validate_role_extra 方法将会被调用两次,正常情况下它应该只调用一次。
调用顺序如下(Researcher继承Role):
由于多调用了一次 validate_role_extra 方法,Role 的 rc.watch 属性会被重置为 UserRequirement,导致无法从中断前的 Message 开始重新执行。相关代码如下:
这个错误似乎跟 Role 继承 SerializationMixin 有关。
The text was updated successfully, but these errors were encountered: