diff --git a/Documentation/rest-api-accounts.txt b/Documentation/rest-api-accounts.txt index 7d78de8dbf..ae564b1945 100644 --- a/Documentation/rest-api-accounts.txt +++ b/Documentation/rest-api-accounts.txt @@ -909,7 +909,7 @@ link:#preferences-info[PreferencesInfo] entity. "name": "Changes" }, { - "url": "#/q/is:draft", + "url": "#/q/owner:self+is:draft", "name": "Drafts" }, { @@ -963,7 +963,7 @@ link:#preferences-input[PreferencesInput] entity. "name": "Changes" }, { - "url": "#/q/is:draft", + "url": "#/q/owner:self+is:draft", "name": "Drafts" }, { @@ -1011,7 +1011,7 @@ link:#preferences-info[PreferencesInfo] entity. "name": "Changes" }, { - "url": "#/q/is:draft", + "url": "#/q/owner:self+is:draft", "name": "Drafts" }, { diff --git a/Documentation/user-search.txt b/Documentation/user-search.txt index eaf0f6ec87..83accb815e 100644 --- a/Documentation/user-search.txt +++ b/Documentation/user-search.txt @@ -14,7 +14,7 @@ matches the search, the change will be presented instead of a list. |All > Open | status:open '(or is:open)' |All > Merged | status:merged |All > Abandoned | status:abandoned -|My > Drafts | is:draft +|My > Drafts | owner:self is:draft |My > Watched Changes | status:open is:watched |My > Starred Changes | is:starred |My > Draft Comments | has:draft diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/Dispatcher.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/Dispatcher.java index 4822343f8f..656b77a45d 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/Dispatcher.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/Dispatcher.java @@ -284,7 +284,7 @@ public class Dispatcher { } if (matchExact("mine,drafts", token)) { - return toChangeQuery("is:draft"); + return toChangeQuery("owner:self is:draft"); } if (matchExact("mine,comments", token)) { diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/JumpKeys.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/JumpKeys.java index 45d9a9194a..e38cf7d6e7 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/JumpKeys.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/JumpKeys.java @@ -69,7 +69,7 @@ public class JumpKeys { jumps.add(new KeyCommand(0, 'd', Gerrit.C.jumpMineDrafts()) { @Override public void onKeyPress(final KeyPressEvent event) { - Gerrit.display(PageLinks.toChangeQuery("is:draft")); + Gerrit.display(PageLinks.toChangeQuery("owner:self is:draft")); } }); jumps.add(new KeyCommand(0, 'c', Gerrit.C.jumpMineDraftComments()) { diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/account/GetPreferences.java b/gerrit-server/src/main/java/com/google/gerrit/server/account/GetPreferences.java index adb2085891..8983013eba 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/account/GetPreferences.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/account/GetPreferences.java @@ -147,7 +147,7 @@ public class GetPreferences implements RestReadView { } if (my.isEmpty()) { my.add(new TopMenu.MenuItem("Changes", "#/dashboard/self", null)); - my.add(new TopMenu.MenuItem("Drafts", "#/q/is:draft", null)); + my.add(new TopMenu.MenuItem("Drafts", "#/q/owner:self+is:draft", null)); my.add(new TopMenu.MenuItem("Draft Comments", "#/q/has:draft", null)); my.add(new TopMenu.MenuItem("Watched Changes", "#/q/is:watched+is:open", null)); my.add(new TopMenu.MenuItem("Starred Changes", "#/q/is:starred", null));