Dynamically load the default dashboard
Instead of trying to include the default id in the /projects/ output, always redirect to /projects/{project},dashboards/default. This will RPC to the server for the definition of the inherited dashboard, if any exists. If none is found the server will return 404 and the query project:{project} will be used instead. Change-Id: Ibaa9f1fd02b716c9201dd353e757a668ef2b01fb
This commit is contained in:

committed by
Edwin Kempin

parent
5367b8bab5
commit
11b312ae70
@@ -29,7 +29,7 @@ public class DashboardList extends NativeList<DashboardInfo> {
|
||||
.get(callback);
|
||||
}
|
||||
|
||||
public static void defaultDashboard(Project.NameKey project,
|
||||
public static void getDefault(Project.NameKey project,
|
||||
AsyncCallback<DashboardInfo> callback) {
|
||||
new RestApi(base(project) + "default")
|
||||
.addParameterTrue("inherited")
|
||||
|
Reference in New Issue
Block a user