-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在自动审核模式中,上线工单存在检测错误或警告时,并匹配auto_rwview_wrong参数时,工单状态应为自动审核不通过;在客户端JS脚本中增加脚本错误数的判断 #2692
Closed
Closed
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a2e6e76
存在检测错误或警告时,拒绝提交
peixubin dd44705
出现检测错误时,不允许提交
peixubin a506780
Merge branch 'master' into autoreview_wrong
peixubin 06ff9c3
修正AuditV2自动审核模式下自动通过了存在错误的工单
peixubin 3f2b7cd
lint
peixubin b2e192b
lint
peixubin 15da01e
lint
peixubin 24a78f6
Merge branch 'master' into autoreview_wrong
peixubin 687ff43
lint
peixubin 74d0c1c
reject改为should_reject,增加可读性
peixubin 255f94b
通过判断workflow状态来决定是否自动通过
peixubin af10c72
lint
peixubin 2ce7772
Merge branch 'master' into autoreview_wrong
peixubin b24e99a
所有工单都按照同样的逻辑处理
peixubin 0a7a5c3
lint
peixubin 3b3b17f
在create_audit中统一处理工单通过和驳回
peixubin c1d88fb
lint
peixubin aab64a3
少了括号
peixubin 4a56fb4
lint
peixubin a983ebb
增加系统参数:auto_review_wrong_disubmit;调整generate_audit_settings,在存在审核错误时,…
peixubin 059f172
lint
peixubin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
无需判断是否 auto_pass, 逻辑更清晰
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我的想法是手工确认的模式下,不执行自动驳回
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不行, 你的这个需求是 breaking change 了, 需要做系统配置控制行为
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果你需要, 可以独立成一个函数,
should_reject
, 然后你定制开发时覆盖这个函数即可. 这样也可以控制审批流的行为.参考:
Archery/sql/utils/workflow_audit.py
Line 746 in 52ce759
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
意思是对于错误工单,提交后可以修改?
这样当然是好的,但是这个状态怎么设置,没搞清楚
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
前面我也问了,这个“breaking change”是什么意思,没搞明白。
在自动审核模式下,存在错误的工单,不应该驳回吗? 还需要参数进行开关?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking change 就是和之前版本不一致的行为,对于你的两个问题我就不重复回答了,请参照上方粗体部分的说明。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得需要分析的是,是否存在其它场景,不符合我实现的逻辑。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可能还是有一些矛盾在的哈,我觉得我观点都表达到位了。如果没有代码改变,新的观点或论据,我就不反复沟通了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前的实现与原来的逻辑基本没有差别了,只是在判断是否自动通过时,增加了对存在审核错误的检查,其实和最早的实现类似。
另外增加了一个系统参数,是否要允许错误脚本提交(仅自动审核模式下),目前是在客户端脚本里进行判断。