This repository was archived by the owner on Jun 6, 2021. It is now read-only.
Replies: 1 comment 7 replies
-
|
我之前也考虑过这个问题,感觉维护两个状态有点复杂(可能会造成误解),我的想法是,在前端可以自由拖动,状态不会同步到其他同学,然后有一个commit的按钮,点击后会发送短信 & 与同步数据。 然后对于上面提到的两个场景,可以通过限制流程只允许正向进行来避免。 即:
存在的问题:
优点:
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在最初设计的时候,我用
step字段来表示选手所处的流程这一状态。但是实际上我忽略了通知短信这个影响因素,考虑以下场景:
step字段的情况下无法阻止 Alice 在 i 跟 ii 的时间窗口内提交选择组面时间的表单。所以需要有新的字段来标记短信发送的状态,暂时叫
smsStep吧。这个字段的行为如下:
step >= smsStep永远为真,也就是说发送某个流程对应的短信之后,Alice 就无法再被移动到smsStep之前的流程;step > smsStep时,step对应流程的短信才会被成功发送;smsStep。1 与 2 保证了场景二不会发生,而 3 保证了场景一不会发生,且比起目前的解决方案少了一个字段。
上面只是大概的想法,有什么缺陷或者建议欢迎指出。
Beta Was this translation helpful? Give feedback.
All reactions