在飞互斥迁入编排模块 (fix #326) - #355
Merged
Merged
Conversation
整页翻译的在飞互斥此前只有端到端用例能验证。迁入开关入口: 在飞期间页面尚无译文时忽略新触发并返回忙碌状态,已有译文则 放行还原并中止在飞批次;忙碌不是错误。 Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
整页翻译的在飞互斥(连点防抖、在飞还原)此前只有端到端用例能验证,模块层没有语义。
根因
互斥规则散落在内容脚本,未随开关入口(#325)迁入编排模块。
修复
在飞互斥迁入
togglePage开关入口:在飞期间页面尚无译文时忽略新触发并返回忙碌状态(忙碌不是错误,不携带错误信息);已有译文时放行还原且递增纪元中止在飞批次。验证
pnpm typecheck通过;新增 3 个互斥单测(在飞二次触发仅一轮请求并返回忙碌、在飞已有译文放行还原且首轮中止、忙碌不当作错误),pnpm test629 个用例全部通过;既有连点端到端回归用例(TC-E2E-53 等)通过;pnpm build正常。Closes #326