f64ef68bcd
All callers of ChangeControl.GenericFactory#validateFor(Change.Id, CurrentUser) cannot provide the project name, which we would need to load the change through ChangeNotes.Factory. Hence we need to lookup the change from the index. Since we request no fields when looking up the change from the index, rereading it is enforced, hence the change we get back is not stale. Move the methods to find changes from ChangeUtil into a separate class. This is needed because ChangeUtil with all its dependencies cannot be injected into ChangeControl.GenericFactory, but all those dependencies are not needed for looking up changes from the index. Change-Id: I9c2ee58486046f3a2ae80b588613b708a66d8306 Signed-off-by: Edwin Kempin <ekempin@google.com> |
||
---|---|---|
.. | ||
src/test/java/com/google/gerrit/acceptance | ||
BUCK | ||
tests.defs |