From dd90429ae59ebbc620f2dfd76a8a45dbe05f8418 Mon Sep 17 00:00:00 2001 From: "Lam, Doris T (393A)" Date: Mon, 20 Aug 2018 13:40:30 -0700 Subject: [PATCH] ignore get last known element for now until fix in 3.4.0 --- Gruntfile.js | 2 +- app/js/mms/directives/veNav.js | 2 +- src/services/ElementService.js | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 6df30f1ff..3787f39f2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -355,7 +355,7 @@ module.exports = function(grunt) { options: { publish: [{ id: groupId + ':ve:zip', - version: '3.3.1', + version: '3.3.2', path: 'deploy/' }] } diff --git a/app/js/mms/directives/veNav.js b/app/js/mms/directives/veNav.js index 334a6d258..8a6d57488 100644 --- a/app/js/mms/directives/veNav.js +++ b/app/js/mms/directives/veNav.js @@ -87,7 +87,7 @@ function veNav($templateCache, $rootScope, $state, hotkeys, growl, $location, $u hotkeys.toggleCheatSheet(); }; scope.toggleAbout = function() { - scope.veV = '3.3.1'; + scope.veV = '3.3.2'; scope.mmsV = 'Loading...'; ApplicationService.getMmsVersion().then(function(data) { scope.mmsV = data; diff --git a/src/services/ElementService.js b/src/services/ElementService.js index f395b7ede..8468559bd 100644 --- a/src/services/ElementService.js +++ b/src/services/ElementService.js @@ -77,9 +77,9 @@ function ElementService($q, $http, URLService, UtilsService, CacheService, HttpS var requestCacheKey = getElementKey(reqOb); var url = URLService.getElementURL(reqOb); var key = url; - if (reqOb.includeRecentVersionElement) { - key = key + 'addRecentVersion'; - } + //if (reqOb.includeRecentVersionElement) { + // key = key + 'addRecentVersion'; + //} // if it's in the inProgress queue get it immediately if (inProgress.hasOwnProperty(key)) { //change to change proirity if it's already in the queue HttpService.ping(key, weight); @@ -106,16 +106,16 @@ function ElementService($q, $http, URLService, UtilsService, CacheService, HttpS delete inProgress[key]; }, function(data, status, headers, config) { - if (reqOb.includeRecentVersionElement) { + /*if (reqOb.includeRecentVersionElement) { _getLatestVersionOfElement(_.clone(reqOb)).then(function(element){ data.recentVersionOfElement = element; URLService.handleHttpStatus(data, status, headers, config, deferred); }, function() { URLService.handleHttpStatus(data, status, headers, config, deferred); }); - } else { + } else {*/ URLService.handleHttpStatus(data, status, headers, config, deferred); - } + //} delete inProgress[key]; },