复核优先级
原能力
把变化按影响范围、紧迫性与可逆性排序,交给对应责任主体处理。(细化版 p.8–9)
首选项目
Open Policy Agent(Apache-2.0)。 Open Policy Agent
匹配范围
规则与任务优先级字段支持明确排序。
源码
Open Policy Agent · func (pq PreparedEvalQuery) Eval(
v1/rego/rego.go · 608–621 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
func (pq PreparedEvalQuery) Eval(ctx context.Context, options ...EvalOption) (ResultSet, error) {
ectx, finish, err := pq.newEvalContext(ctx, options)
if err != nil {
return nil, err
}
defer finish(ctx)
ectx.compiledQuery = pq.r.compiledQueries[evalQueryType]
return pq.r.eval(ctx, ectx)
}
// PreparedPartialQuery holds the prepared Rego state that has been pre-processed
// for partial evaluations.
- // Copyright 2017 The OPA Authors. All rights reserved.
OpenProject · class WorkPackage
app/models/work_package.rb · 30–43 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class WorkPackage < ApplicationRecord
include WorkPackage::SemanticIdentifier
include WorkPackage::Validations
include WorkPackage::SchedulingRules
include WorkPackage::StatusTransitions
include WorkPackage::AskBeforeDestruction
include WorkPackage::TimeEntriesCleaner
include WorkPackage::Ancestors
include WorkPackage::Automatable
include WorkPackage::Hooks
include WorkPackage::Origin
# Must stay above WorkPackage::Journalized: its after_save persists the
# version rows that the journal snapshot then reads.
include WorkPackage::Versions
- #-- copyright
- # Copyright (C) the OpenProject GmbH
- # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
- # Copyright (C) 2006-2013 Jean-Philippe Lang
- # Copyright (C) 2010-2013 the ChiliProject Team
- # See COPYRIGHT and LICENSE files for more details.
实现与验收要点
定义影响、紧迫性及可逆性比较并复核人工覆盖。