Filter the list of open changes by watched projects

Users are normally not interested in all projects
that are hosted in Gerrit, but only in some of
them. If a user is interested in a project he
normally adds this project to the watch list, so
that he can get e-mail notification if something
changes. This change provides a new screen in
Gerrit that shows all open changes for only
watched projects. For the user this means to have
one list that shows all open changes that are
relevant for him and that he potentially wants to
review. The new screen is available under
'My -> Watched Changes'.

Change-Id: I8814d9ce106fdf7ef4312ae7ec3ba670f6678dd2
Signed-off-by: Edwin Kempin <edwin.kempin@gmail.com>
This commit is contained in:
Edwin Kempin
2010-06-24 13:58:12 +02:00
committed by Shawn O. Pearce
parent ac8f93afe7
commit 33cc5a9053
25 changed files with 176 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ package com.google.gerrit.server;
import com.google.gerrit.reviewdb.AccountGroup;
import com.google.gerrit.reviewdb.Change;
import com.google.gerrit.reviewdb.Project.NameKey;
import com.google.gerrit.server.config.AuthConfig;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
@@ -57,6 +58,11 @@ public class PeerDaemonUser extends CurrentUser {
return Collections.emptySet();
}
@Override
public Set<NameKey> getWatchedProjects() {
return Collections.emptySet();
}
public SocketAddress getRemoteAddress() {
return peer;
}