Merge changes I16b303e6,Id3517822

* changes:
  Add dashboard section for assigned reviews
  Sync dashboard query tests with current UI
This commit is contained in:
Kasper Nilsson
2018-09-20 18:46:09 +00:00
committed by Gerrit Code Review
2 changed files with 95 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
// NOTE: These queries are tested in Java. Any changes made to definitions
// here require corresponding changes to:
// gerrit-server/src/test/java/com/google/gerrit/server/query/change/AbstractQueryChangesTest.java
// javatests/com/google/gerrit/server/query/change/AbstractQueryChangesTest.java
const DEFAULT_SECTIONS = [
{
// Changes with unpublished draft comments. This section is omitted when
@@ -33,6 +33,12 @@
hideIfEmpty: true,
suffixForDashboard: 'limit:10',
},
{
// Changes that are assigned to the viewed user.
name: 'Assigned reviews',
query: 'assignee:${user} (-is:wip OR owner:self OR assignee:self)',
hideIfEmpty: true,
},
{
// WIP open changes owned by viewing user. This section is omitted when
// viewing other users, so we don't need to filter anything out.