Merge branch 'stable-2.8' into stable-2.9
* stable-2.8: Emit ref-updated event when editing project access via web UI Fix ChangeListener auto-registered implementations Fix: The email notification of review comments gets stuck. Use consistent grammatical tense in command descriptions Make skip bar more user friendly Bump version to 2.8.4 in plugin API and archetypes Helper script to update API version in plugin archetype pom files Serialize GWT dbg and opt compiles Bump GERRIT_VERSION to 2.8.4 Update the mysql documentation concerning charsets By default don't allow admins to create new branches by push Disable commitWithin when running Reindex Emit ref-updated event when editing project access via web UI SideBySide2: Fix syntax highlighting for shell files ChangeScreen2: Respect comment visibility strategy Don't add "Patch File" download link for merge commits The change 'ChangeScreen2: Respect comment visibility strategy' [1] is dropped intentionally, see [2]. [1] https://gerrit-review.googlesource.com/55081 [2] https://gerrit-review.googlesource.com/#/c/55536/3/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/History.java Conflicts: Documentation/config-gerrit.txt VERSION gerrit-gwtui/BUCK gerrit-gwtui/src/main/java/com/google/gerrit/client/change/ChangeScreen2.java gerrit-gwtui/src/main/java/com/google/gerrit/client/change/DownloadBox.java gerrit-gwtui/src/main/java/com/google/gerrit/client/change/History.java gerrit-gwtui/src/main/java/com/google/gerrit/client/diff/SkipBar.java gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/project/ChangeProjectAccess.java gerrit-plugin-archetype/pom.xml gerrit-plugin-gwt-archetype/pom.xml gerrit-plugin-gwtui/pom.xml gerrit-plugin-js-archetype/pom.xml gerrit-server/src/main/java/com/google/gerrit/server/change/EmailReviewComments.java gerrit-server/src/main/java/com/google/gerrit/server/project/PutConfig.java gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ListMembersCommand.java Change-Id: I16c848cb385080fd25555c983a3030e0f1cc560b
This commit is contained in:
@@ -23,7 +23,8 @@ import com.google.gerrit.reviewdb.client.PatchLineComment;
|
||||
import com.google.gerrit.reviewdb.client.PatchSet;
|
||||
import com.google.gerrit.reviewdb.server.ReviewDb;
|
||||
import com.google.gerrit.server.CurrentUser;
|
||||
import com.google.gerrit.server.git.WorkQueue;
|
||||
import com.google.gerrit.server.git.EmailReviewCommentsExecutor;
|
||||
import com.google.gerrit.server.git.WorkQueue.Executor;
|
||||
import com.google.gerrit.server.mail.CommentSender;
|
||||
import com.google.gerrit.server.patch.PatchSetInfoFactory;
|
||||
import com.google.gerrit.server.util.RequestContext;
|
||||
@@ -55,7 +56,7 @@ class EmailReviewComments implements Runnable, RequestContext {
|
||||
List<PatchLineComment> comments);
|
||||
}
|
||||
|
||||
private final WorkQueue workQueue;
|
||||
private final Executor sendEmailsExecutor;
|
||||
private final PatchSetInfoFactory patchSetInfoFactory;
|
||||
private final CommentSender.Factory commentSenderFactory;
|
||||
private final SchemaFactory<ReviewDb> schemaFactory;
|
||||
@@ -71,7 +72,7 @@ class EmailReviewComments implements Runnable, RequestContext {
|
||||
|
||||
@Inject
|
||||
EmailReviewComments (
|
||||
WorkQueue workQueue,
|
||||
@EmailReviewCommentsExecutor final Executor executor,
|
||||
PatchSetInfoFactory patchSetInfoFactory,
|
||||
CommentSender.Factory commentSenderFactory,
|
||||
SchemaFactory<ReviewDb> schemaFactory,
|
||||
@@ -82,7 +83,7 @@ class EmailReviewComments implements Runnable, RequestContext {
|
||||
@Assisted Account.Id authorId,
|
||||
@Assisted ChangeMessage message,
|
||||
@Assisted List<PatchLineComment> comments) {
|
||||
this.workQueue = workQueue;
|
||||
this.sendEmailsExecutor = executor;
|
||||
this.patchSetInfoFactory = patchSetInfoFactory;
|
||||
this.commentSenderFactory = commentSenderFactory;
|
||||
this.schemaFactory = schemaFactory;
|
||||
@@ -96,7 +97,7 @@ class EmailReviewComments implements Runnable, RequestContext {
|
||||
}
|
||||
|
||||
void sendAsync() {
|
||||
workQueue.getDefaultQueue().submit(this);
|
||||
sendEmailsExecutor.submit(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user