Add new notify type that allows watching abandoning of changes

Users can now watch the abandoning of changes.

Watching 'all_comments' already includes notification on abandoning of
changes, but some users that watch 'new_changes' want to get
notified on abandon without getting notifications for all other
comments.

Bug: issue 1686
Change-Id: I910a3adf41e6e979400523eb923ff9780ca77853
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-01-11 08:10:52 +01:00
committed by Edwin Kempin
parent 89136bc832
commit 3a82961084
8 changed files with 48 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ public class AbandonedSender extends ReplyToChangeSender {
ccAllApprovals();
bccStarredBy();
includeWatchers(NotifyType.ABANDONED_CHANGES);
includeWatchers(NotifyType.ALL_COMMENTS);
}

View File

@@ -32,7 +32,7 @@ import java.util.List;
/** A version of the database schema. */
public abstract class SchemaVersion {
/** The current schema version. */
public static final Class<Schema_75> C = Schema_75.class;
public static final Class<Schema_76> C = Schema_76.class;
public static class Module extends AbstractModule {
@Override

View File

@@ -0,0 +1,25 @@
// Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.server.schema;
import com.google.inject.Inject;
import com.google.inject.Provider;
public class Schema_76 extends SchemaVersion {
@Inject
Schema_76(Provider<Schema_75> prior) {
super(prior);
}
}