Adds GetPagedDescendants to media/content services. Fixes PDF reader disposal. Updates the umb examine indexers to use the services layer, now reindexing is far more efficient. Fixes the examine mgmt dashboard with $timeout. Updates GetPagedResultsByQuery to be more readable. Fixes GetPagedResultsByQuery to use SQL parameters.

This commit is contained in:
Shannon
2014-09-30 15:13:10 +10:00
parent c49560f39d
commit 4c0f95a93a
18 changed files with 466 additions and 80 deletions

View File

@@ -1,4 +1,4 @@
function examineMgmtController($scope, umbRequestHelper, $log, $http, $q) {
function examineMgmtController($scope, umbRequestHelper, $log, $http, $q, $timeout) {
$scope.indexerDetails = [];
$scope.searcherDetails = [];
@@ -19,7 +19,7 @@ function examineMgmtController($scope, umbRequestHelper, $log, $http, $q) {
indexer.isProcessing = false;
}
else {
setTimeout(function() {
$timeout(function () {
//don't continue if we've tried 100 times
if (indexer.processingAttempts < 100) {
checkProcessing(indexer, checkActionName);
@@ -76,7 +76,7 @@ function examineMgmtController($scope, umbRequestHelper, $log, $http, $q) {
//rebuilding has started, nothing is returned accept a 200 status code.
//lets poll to see if it is done.
setTimeout(function () {
$timeout(function () {
checkProcessing(indexer, "PostCheckRebuildIndex");
}, 1000);
@@ -97,7 +97,7 @@ function examineMgmtController($scope, umbRequestHelper, $log, $http, $q) {
//optimizing has started, nothing is returned accept a 200 status code.
//lets poll to see if it is done.
setTimeout(function () {
$timeout(function () {
checkProcessing(indexer, "PostCheckOptimizeIndex");
}, 1000);