Package com.google.gerrit.server.project
Interface OnStoreSubmitRequirementResultModifier
- All Known Implementing Classes:
OnStoreSubmitRequirementResultModifierImpl
public interface OnStoreSubmitRequirementResultModifier
Extension point that allows to modify the
SubmitRequirementResult
when it is stored
NoteDB.
The submit requirements are only stored for the closed (merged and abandoned) changes and the
modifier only affects what SubmitRequirementResult
will be stored in NoteDB.
It has no impact on open changes or evaluations on merge, i.e. does not affect the submittability of the change (never blocks the ready change from submission or allows bypassing unsatisfied submit requirement).
The extension point only applies to non-legacy submit requirements (including non-applicable, since they are stored too) and does not affect submit rule results.
-
Method Summary
Modifier and TypeMethodDescriptionmodifyResultOnStore
(SubmitRequirement submitRequirement, SubmitRequirementResult submitRequirementResult, ChangeData changeData, ChangeContext ctx) Evaluate a singleSubmitRequirement
using the change data, modifying the originalSubmitRequirementResult
, if needed.
-
Method Details
-
modifyResultOnStore
SubmitRequirementResult modifyResultOnStore(SubmitRequirement submitRequirement, SubmitRequirementResult submitRequirementResult, ChangeData changeData, ChangeContext ctx) Evaluate a singleSubmitRequirement
using the change data, modifying the originalSubmitRequirementResult
, if needed.Only affects how the submit requirement is stored in NoteDb for closed changes.
-