From a7fe85937bf2efc9c2de26612f4a0123b8672492 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Wed, 13 Jul 2016 17:08:48 -0500 Subject: [PATCH 1/7] updated dependencies --- src/bower.json | 8 ++++---- src/package.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bower.json b/src/bower.json index 8e57c63a..2be3f5a4 100644 --- a/src/bower.json +++ b/src/bower.json @@ -26,14 +26,14 @@ "angular-resource": "1.5.7", "angular-stripe": "4.2.12", "angular-ui-router": "0.2.18", - "angular-xeditable": "0.1.12", + "angular-xeditable": "0.2.0", "angularjs-toaster": "2.0.0", "angulartics": "1.1.2", "animate.css": "3.5.2", "base64": "1.0.0", "bootstrap": "3.3.6", "bootstrap-daterangepicker": "2.1.23", - "checklist-model": "0.9.0", + "checklist-model": "0.10.0", "d3": "3.5.17", "es5-shim": "4.5.9", "es6-shim": "0.35.1", @@ -44,12 +44,12 @@ "less.js": "2.7.1", "li": "1.0.1", "lodash": "4.13.1", - "moment": "2.13.0", + "moment": "2.14.1", "mousetrap-js": "1.6.0", "ng-debounce": "0.1.7", "ng-filters": "1.3.0", "objectid.js": "1.0.1", - "query-string": "4.1.0", + "query-string": "4.2.2", "restangular": "1.5.2", "rickshaw": "1.5.1", "satellizer": "0.14.1", diff --git a/src/package.json b/src/package.json index 770abf18..a2bf881f 100644 --- a/src/package.json +++ b/src/package.json @@ -15,7 +15,7 @@ "grunt-contrib-connect": "1.0", "grunt-contrib-copy": "1.0", "grunt-contrib-cssmin": "1.0.1", - "grunt-contrib-htmlmin": "1.4", + "grunt-contrib-htmlmin": "1.5", "grunt-contrib-jshint": "1.0", "grunt-contrib-less": "1.3", "grunt-contrib-uglify": "1.0", @@ -29,14 +29,14 @@ "grunt-traceur": "0.5.5", "jasmine-core": "2.4.1", "jshint-stylish": "2.2.0", - "karma": "1.1.0", + "karma": "1.1.1", "karma-jasmine": "1.0.2", "karma-mocha-reporter": "2.0.4", "karma-ng-html2js-preprocessor": "1.0.0", "karma-phantomjs-launcher": "1.0.1", "load-grunt-config": "0.19.2", "phantomjs-prebuilt": "2.1.7", - "rimraf": "2.5.2", + "rimraf": "2.5.3", "streamqueue": "1.1.1", "traceur": "0.0.111" } From 73eb6ecfeae06808d22986bcd3600c4611930cf4 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Thu, 14 Jul 2016 18:04:00 -0500 Subject: [PATCH 2/7] WIP - Ability to specify a semver when fixing an error. --- src/app/stack/stack-controller.js | 8 +++-- src/app/stack/stack.js | 1 + src/app/stack/stack.tpl.html | 4 +-- .../mark-fixed-dialog-controller.js | 27 ++++++++++++++++ .../stack-dialog/mark-fixed-dialog.tpl.html | 31 +++++++++++++++++++ .../stack-dialog/stack-dialog-service.js | 17 ++++++++++ src/components/stack-dialog/stack-dialog.js | 13 ++++++++ src/components/stack/stack-service.js | 4 +-- .../stacks/stacks-actions-service.js | 22 +++++++------ src/components/stacks/stacks.js | 1 + .../validators/semantic-version-validator.js | 21 +++++++++++++ src/index.html | 4 +++ 12 files changed, 136 insertions(+), 17 deletions(-) create mode 100644 src/components/stack-dialog/mark-fixed-dialog-controller.js create mode 100644 src/components/stack-dialog/mark-fixed-dialog.tpl.html create mode 100644 src/components/stack-dialog/stack-dialog-service.js create mode 100644 src/components/stack-dialog/stack-dialog.js create mode 100644 src/components/validators/semantic-version-validator.js diff --git a/src/app/stack/stack-controller.js b/src/app/stack/stack-controller.js index ed32eb1a..9fb864de 100644 --- a/src/app/stack/stack-controller.js +++ b/src/app/stack/stack-controller.js @@ -3,7 +3,7 @@ 'use strict'; angular.module('app.stack') - .controller('Stack', ['$scope', '$ExceptionlessClient', '$filter', 'hotkeys', '$state', '$stateParams', 'billingService', 'dialogs', 'dialogService', 'eventService', 'filterService', 'notificationService', 'projectService', 'stackService', 'statService', function ($scope, $ExceptionlessClient, $filter, hotkeys, $state, $stateParams, billingService, dialogs, dialogService, eventService, filterService, notificationService, projectService, stackService, statService) { + .controller('Stack', ['$scope', '$ExceptionlessClient', '$filter', 'hotkeys', '$state', '$stateParams', 'billingService', 'dialogs', 'dialogService', 'eventService', 'filterService', 'notificationService', 'projectService', 'stackDialogService', 'stackService', 'statService', function ($scope, $ExceptionlessClient, $filter, hotkeys, $state, $stateParams, billingService, dialogs, dialogService, eventService, filterService, notificationService, projectService, stackDialogService, stackService, statService) { var source = 'app.stack.Stack'; var _stackId = $stateParams.id; var vm = this; @@ -249,7 +249,7 @@ } function isFixed() { - return !!vm.stack.date_fixed; + return !!vm.stack.date_fixed && !isRegressed(); } function isHidden() { @@ -378,7 +378,9 @@ return stackService.markNotFixed(_stackId).then(onSuccess, onFailure); } - return stackService.markFixed(_stackId).then(onSuccess, onFailure); + return stackDialogService.markFixed().then(function (version) { + return stackService.markFixed(_stackId, version).then(onSuccess, onFailure); + }); } function updateIsHidden() { diff --git a/src/app/stack/stack.js b/src/app/stack/stack.js index 9026c75b..4bb961b7 100644 --- a/src/app/stack/stack.js +++ b/src/app/stack/stack.js @@ -22,6 +22,7 @@ 'exceptionless.rate-limit', 'exceptionless.refresh', 'exceptionless.stack', + 'exceptionless.stack-dialog', 'exceptionless.stack-trace', 'exceptionless.stat' ]) diff --git a/src/app/stack/stack.tpl.html b/src/app/stack/stack.tpl.html index 577454ad..4e6efaf5 100644 --- a/src/app/stack/stack.tpl.html +++ b/src/app/stack/stack.tpl.html @@ -76,7 +76,7 @@ Stack - + F @@ -90,7 +90,7 @@