forked from membase/ns_server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: If8ab7eecf4dfcea3ded78b226b168ee4356cae44 Reviewed-on: http://review.couchbase.org/70461 Reviewed-by: Pavel Blagodov <[email protected]> Tested-by: Pavel Blagodov <[email protected]>
- Loading branch information
1 parent
16dfbdf
commit 110dd43
Showing
39 changed files
with
34,649 additions
and
1,158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
'mnPromiseHelper', | ||
'mnBuckets', | ||
'mnAnalytics', | ||
'mnStatisticsNew', | ||
'mnLogs', | ||
'mnOverview', | ||
'mnIndexes', | ||
|
@@ -81,6 +82,7 @@ | |
}) | ||
.state('app.admin.overview', { | ||
url: '/overview', | ||
abstract: true, | ||
views: { | ||
"[email protected]": { | ||
controller: 'mnOverviewController as overviewCtl', | ||
|
@@ -202,6 +204,34 @@ | |
.state('app.admin.logs.collectInfo.form', { | ||
url: '/form', | ||
templateUrl: 'app/mn_admin/mn_logs/collect_info/mn_logs_collect_info_form.html' | ||
}) | ||
.state('app.admin.overview.statistics', { | ||
url: '/stats?zoom&scenario&scenarioBucket', | ||
controller: 'mnStatisticsNewController as statisticsNewCtl', | ||
templateUrl: 'app/mn_admin/mn_statistics/mn_statistics.html', | ||
redirectTo: function (trans, permissions) { | ||
var mnPermissionsService = trans.injector().get("mnPermissions"); | ||
var params = _.clone(trans.params(), true); | ||
return mnPermissionsService.check().then(function (permissions) { | ||
var statsRead = permissions.bucketNames['.stats!read'] | ||
if (!params.scenarioBucket && statsRead && statsRead[0]) { | ||
params.scenarioBucket = statsRead[0]; | ||
return {state: "app.admin.overview.statistics", params: params}; | ||
} | ||
}); | ||
}, | ||
params: { | ||
scenarioBucket: { | ||
value: null | ||
}, | ||
scenario: { | ||
value: null, | ||
dynamic: true | ||
}, | ||
zoom: { | ||
value: null | ||
} | ||
} | ||
}); | ||
|
||
addAnalyticsStates("app.admin.servers.list"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.