)]}'
{"openstack_dashboard/static/dashboard/launch-instance/flavor/flavor.spec.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"ea667868004e2fdf643062392df615151be4bf22","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        var props \u003d ["},{"line_number":40,"context_line":"          \u0027title\u0027, \u0027subtitle\u0027, \u0027chartTotalInstancesLabel\u0027,"},{"line_number":41,"context_line":"          \u0027chartTotalVcpusLabel\u0027, \u0027chartTotalRamLabel\u0027, \u0027chartUsageLabel\u0027,"},{"line_number":42,"context_line":"          \u0027chartAddedLabel\u0027, \u0027chartRemainingLabel\u0027"},{"line_number":43,"context_line":"        ];"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        props.forEach(function(prop) { "}],"source_content_type":"text/javascript","patch_set":8,"id":"fa963961_5ae2e4d6","line":42,"updated":"2015-03-26 23:41:30.000000000","message":"-1: labels have changed. This test is probably a bit overkill?","commit_id":"1b0d56da4a499781e62179d23a481f295fd83072"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"ea667868004e2fdf643062392df615151be4bf22","unresolved":false,"context_lines":[{"line_number":51,"context_line":"      it(\u0027defines expected colors\u0027, function() {"},{"line_number":52,"context_line":"        var props \u003d ["},{"line_number":53,"context_line":"          \u0027chartUsageColor\u0027, \u0027chartAddedColor\u0027, \u0027chartRemainingColor\u0027"},{"line_number":54,"context_line":"        ];"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        props.forEach(function(prop) { "},{"line_number":57,"context_line":"          expect(ctrl[prop]).toBeDefined();"}],"source_content_type":"text/javascript","patch_set":8,"id":"fa963961_5a09c494","line":54,"updated":"2015-03-26 23:41:30.000000000","message":"-1: no longer seperate labels. Not your fault, but need for them eliminated. Perhaps this kind of test is overkill?","commit_id":"1b0d56da4a499781e62179d23a481f295fd83072"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"ea667868004e2fdf643062392df615151be4bf22","unresolved":false,"context_lines":[{"line_number":89,"context_line":"      });"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"      it(\u0027initializes chart data\u0027, function() {"},{"line_number":92,"context_line":"        expect(ctrl.instancesChartData).toEqual({});"},{"line_number":93,"context_line":"      });"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"      it(\u0027allows only one allocation\u0027, function() {"}],"source_content_type":"text/javascript","patch_set":8,"id":"fa963961_baf21099","line":92,"updated":"2015-03-26 23:41:30.000000000","message":"-1: has now gone away","commit_id":"1b0d56da4a499781e62179d23a481f295fd83072"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b935d34bb1d057aa76bd49152813b2a99368ac17","unresolved":false,"context_lines":[{"line_number":1,"context_line":"/* jshint globalstrict: true */"},{"line_number":2,"context_line":"/*"},{"line_number":3,"context_line":" *    (c) Copyright 2015 Hewlett-Packard Development Company, L.P."},{"line_number":4,"context_line":" *"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_8a238c05","line":1,"updated":"2015-04-01 17:26:54.000000000","message":"Move below copyright.","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"faa5ad3481f37122935936d03186ee9386d9c656","unresolved":false,"context_lines":[{"line_number":1,"context_line":"/* jshint globalstrict: true */"},{"line_number":2,"context_line":"/*"},{"line_number":3,"context_line":" *    (c) Copyright 2015 Hewlett-Packard Development Company, L.P."},{"line_number":4,"context_line":" *"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_d6801949","line":1,"in_reply_to":"baa041b7_8a238c05","updated":"2015-04-01 18:29:00.000000000","message":"OK, I thought it didn\u0027t work except on the first line.","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b935d34bb1d057aa76bd49152813b2a99368ac17","unresolved":false,"context_lines":[{"line_number":1,"context_line":"/* jshint globalstrict: true */"},{"line_number":2,"context_line":"/*"},{"line_number":3,"context_line":" *    (c) Copyright 2015 Hewlett-Packard Development Company, L.P."},{"line_number":4,"context_line":" *"},{"line_number":5,"context_line":" * Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":6,"context_line":" * you may not use this file except in compliance with the License."}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_4a1d84bc","line":3,"updated":"2015-04-01 17:26:54.000000000","message":"extra white space?","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"faa5ad3481f37122935936d03186ee9386d9c656","unresolved":false,"context_lines":[{"line_number":1,"context_line":"/* jshint globalstrict: true */"},{"line_number":2,"context_line":"/*"},{"line_number":3,"context_line":" *    (c) Copyright 2015 Hewlett-Packard Development Company, L.P."},{"line_number":4,"context_line":" *"},{"line_number":5,"context_line":" * Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":6,"context_line":" * you may not use this file except in compliance with the License."}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_568d297a","line":3,"in_reply_to":"baa041b7_4a1d84bc","updated":"2015-04-01 18:29:00.000000000","message":"I don\u0027t think so.","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b935d34bb1d057aa76bd49152813b2a99368ac17","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"      beforeEach(inject(function($controller) {"},{"line_number":27,"context_line":"        scope \u003d {$watch: function() {},"},{"line_number":28,"context_line":"                 $watchCollection: function() {}};"},{"line_number":29,"context_line":"        model \u003d {newInstanceSpec: {instance_count: 1, flavor: {}},"},{"line_number":30,"context_line":"                novaLimits: {totalInstancesUsed: 10, maxTotalInstances: 3,"},{"line_number":31,"context_line":"                             totalCoresUsed: 4, maxTotalCores: 10,"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_5d342cdd","line":28,"updated":"2015-04-01 17:26:54.000000000","message":"NOTE TO SELF: is this ok?","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"faa5ad3481f37122935936d03186ee9386d9c656","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"      beforeEach(inject(function($controller) {"},{"line_number":27,"context_line":"        scope \u003d {$watch: function() {},"},{"line_number":28,"context_line":"                 $watchCollection: function() {}};"},{"line_number":29,"context_line":"        model \u003d {newInstanceSpec: {instance_count: 1, flavor: {}},"},{"line_number":30,"context_line":"                novaLimits: {totalInstancesUsed: 10, maxTotalInstances: 3,"},{"line_number":31,"context_line":"                             totalCoresUsed: 4, maxTotalCores: 10,"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_56e4093a","line":28,"in_reply_to":"baa041b7_5d342cdd","updated":"2015-04-01 18:29:00.000000000","message":"Eventually we may want to do tests of the watch/watchCollection.","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b935d34bb1d057aa76bd49152813b2a99368ac17","unresolved":false,"context_lines":[{"line_number":41,"context_line":"          \u0027chartTotalVcpusLabel\u0027, \u0027chartTotalRamLabel\u0027"},{"line_number":42,"context_line":"        ];"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        props.forEach(function(prop) { "},{"line_number":45,"context_line":"          expect(ctrl[prop]).toBeDefined();"},{"line_number":46,"context_line":"          expect(angular.isString(ctrl[prop]));"},{"line_number":47,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_ea8218c8","line":44,"updated":"2015-04-01 17:26:54.000000000","message":"red!","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"faa5ad3481f37122935936d03186ee9386d9c656","unresolved":false,"context_lines":[{"line_number":41,"context_line":"          \u0027chartTotalVcpusLabel\u0027, \u0027chartTotalRamLabel\u0027"},{"line_number":42,"context_line":"        ];"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        props.forEach(function(prop) { "},{"line_number":45,"context_line":"          expect(ctrl[prop]).toBeDefined();"},{"line_number":46,"context_line":"          expect(angular.isString(ctrl[prop]));"},{"line_number":47,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_96acd1ee","line":44,"in_reply_to":"baa041b7_ea8218c8","updated":"2015-04-01 18:29:00.000000000","message":"Thai...would you be interested in having a JSCS (JS Code Style) config being set up and/or possibly added to the build process?  jshint doesn\u0027t do code style anymore, it focuses on correctness.  But a simple .jscsrc with disallowTrailingWhitespace\u003dtrue would catch these. :)","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b935d34bb1d057aa76bd49152813b2a99368ac17","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"      it(\u0027has a chart data function that returns expected values\u0027, function() {"},{"line_number":51,"context_line":"        var data \u003d ctrl.getChartData(\u0027fakeTitle\u0027, 1, 2, 3);"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        expect(data.title).toBe(\u0027fakeTitle\u0027);"},{"line_number":54,"context_line":"        expect(data.label).toBe(\u0027100%\u0027);"},{"line_number":55,"context_line":"        data.data.forEach(function(cData) {"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_9d02b43d","line":52,"updated":"2015-04-01 17:26:54.000000000","message":"what happens when added and totalUsed exceeds maxAllowed? Is it permissible for this to happen?\n\nWhat happens if you pass in a 0 for maxAllowed?\n\nWhat happens if values you passed in were null?\n\nWhat happens if you passed in a negative value?","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"faa5ad3481f37122935936d03186ee9386d9c656","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"      it(\u0027has a chart data function that returns expected values\u0027, function() {"},{"line_number":51,"context_line":"        var data \u003d ctrl.getChartData(\u0027fakeTitle\u0027, 1, 2, 3);"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        expect(data.title).toBe(\u0027fakeTitle\u0027);"},{"line_number":54,"context_line":"        expect(data.label).toBe(\u0027100%\u0027);"},{"line_number":55,"context_line":"        data.data.forEach(function(cData) {"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_b64b552b","line":52,"in_reply_to":"baa041b7_9d02b43d","updated":"2015-04-01 18:29:00.000000000","message":"We\u0027re not concerned with the behavior of the chart here.  This is just testing that we are setting the configuration as expected (that the scoped values are getting set).","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b935d34bb1d057aa76bd49152813b2a99368ac17","unresolved":false,"context_lines":[{"line_number":111,"context_line":"          });"},{"line_number":112,"context_line":"        });"},{"line_number":113,"context_line":"      });"},{"line_number":114,"context_line":"      "},{"line_number":115,"context_line":"      // TODO: buildFlavorFacades"},{"line_number":116,"context_line":"      // TODO: updateFlavorFacades"},{"line_number":117,"context_line":"      // TODO: getChartData"}],"source_content_type":"text/javascript","patch_set":10,"id":"baa041b7_ca8754d6","line":114,"updated":"2015-04-01 17:26:54.000000000","message":"red!","commit_id":"4e8f0b16dfae34273f77d860385db164c4557f2b"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"6073008bc684bf61a132f429ebcdc9c376d20450","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        scope \u003d { $watch: function() {},"},{"line_number":27,"context_line":"                  $watchCollection: function() {},"},{"line_number":28,"context_line":"                  launchInstanceFlavorForm: {}"},{"line_number":29,"context_line":"                };"},{"line_number":30,"context_line":"        model \u003d { newInstanceSpec: { instance_count: 1,"},{"line_number":31,"context_line":"                                     flavor: {},"},{"line_number":32,"context_line":"                                     source_type: { type: \"image\" },"}],"source_content_type":"text/javascript","patch_set":18,"id":"3acd31a7_722f9ff6","line":29,"updated":"2015-05-04 17:58:08.000000000","message":"Should this scope be a proper scope?","commit_id":"f6bd73eb6628ac6666c3831d38ed14c4a6029283"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"6073008bc684bf61a132f429ebcdc9c376d20450","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        describe(\"novaLimits watch\", function() {"},{"line_number":75,"context_line":"          var watched, action;"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"          beforeEach(function() {"},{"line_number":78,"context_line":"            watched \u003d scope.$watch.calls.argsFor(0)[0]();"},{"line_number":79,"context_line":"            action \u003d scope.$watch.calls.argsFor(0)[1];"},{"line_number":80,"context_line":"          });"}],"source_content_type":"text/javascript","patch_set":18,"id":"3acd31a7_12b2ab94","line":77,"updated":"2015-05-04 17:58:08.000000000","message":"perhaps provide a comment about the brittleness of the ordering of watches here.","commit_id":"f6bd73eb6628ac6666c3831d38ed14c4a6029283"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"6073008bc684bf61a132f429ebcdc9c376d20450","unresolved":false,"context_lines":[{"line_number":94,"context_line":"          });"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"          it(\"calls updateFlavorFacades()\", function() {"},{"line_number":97,"context_line":"            var myScope \u003d {selectFlavorCtrl: ctrl};"},{"line_number":98,"context_line":"            spyOn(ctrl, \u0027updateFlavorFacades\u0027);"},{"line_number":99,"context_line":"            action(\u0027na\u0027, \u0027na\u0027, myScope);"},{"line_number":100,"context_line":"            expect(ctrl.updateFlavorFacades).toHaveBeenCalledWith();"}],"source_content_type":"text/javascript","patch_set":18,"id":"3acd31a7_f2084f2f","line":97,"updated":"2015-05-04 17:58:08.000000000","message":"Should this be a proper scope?","commit_id":"f6bd73eb6628ac6666c3831d38ed14c4a6029283"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"6073008bc684bf61a132f429ebcdc9c376d20450","unresolved":false,"context_lines":[{"line_number":270,"context_line":""},{"line_number":271,"context_line":"      });"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"      describe(\"when having allocated flavors\", function(){"},{"line_number":274,"context_line":"        beforeEach(function(){"},{"line_number":275,"context_line":"          ctrl.allocatedFlavorFacades \u003d [{enabled: true}];"},{"line_number":276,"context_line":"          scope.launchInstanceFlavorForm[\u0027allocated-flavor\u0027] \u003d { $setValidity: function(){} };"}],"source_content_type":"text/javascript","patch_set":18,"id":"3acd31a7_edf514cb","line":273,"updated":"2015-05-04 17:58:08.000000000","message":"the nesting here is confusing to me.  It doesn\u0027t appear wrong, but it\u0027s confusing (to my small brain).","commit_id":"f6bd73eb6628ac6666c3831d38ed14c4a6029283"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"6073008bc684bf61a132f429ebcdc9c376d20450","unresolved":false,"context_lines":[{"line_number":377,"context_line":""},{"line_number":378,"context_line":"        });"},{"line_number":379,"context_line":"      });"},{"line_number":380,"context_line":"      "},{"line_number":381,"context_line":"      it(\u0027initializes empty facades\u0027, function() {"},{"line_number":382,"context_line":"        expect(ctrl.availableFlavorFacades).toEqual([]);"},{"line_number":383,"context_line":"        expect(ctrl.displayedAvailableFlavorFacades).toEqual([]);"}],"source_content_type":"text/javascript","patch_set":18,"id":"3acd31a7_2d80ac45","line":380,"updated":"2015-05-04 17:58:08.000000000","message":"\u003ccough\u003e","commit_id":"f6bd73eb6628ac6666c3831d38ed14c4a6029283"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"6073008bc684bf61a132f429ebcdc9c376d20450","unresolved":false,"context_lines":[{"line_number":413,"context_line":""},{"line_number":414,"context_line":"      it(\u0027allows only one allocation\u0027, function() {"},{"line_number":415,"context_line":"        expect(ctrl.allocationLimits).toBeDefined();"},{"line_number":416,"context_line":"        expect(ctrl.allocationLimits.maxAllocation).toBe(1);"},{"line_number":417,"context_line":"      });"},{"line_number":418,"context_line":""},{"line_number":419,"context_line":"      describe(\u0027Functions\u0027, function() {"}],"source_content_type":"text/javascript","patch_set":18,"id":"3acd31a7_cdf258d2","line":416,"updated":"2015-05-04 17:58:08.000000000","message":"are there any other properties here?  If not, should we test to make sure there\u0027s not?","commit_id":"f6bd73eb6628ac6666c3831d38ed14c4a6029283"},{"author":{"_account_id":9048,"name":"Ryan Peters","email":"rjpeter2@gmail.com","username":"rjpeter2"},"change_message_id":"b7cbaccbdc48ea0bedf1d346b1af5eb2eb675c91","unresolved":false,"context_lines":[{"line_number":46,"context_line":"                         remainingColorClass: \"class3\""},{"line_number":47,"context_line":"                       };"},{"line_number":48,"context_line":"        ctrl \u003d $controller(\u0027LaunchInstanceFlavorCtrl\u0027,"},{"line_number":49,"context_line":"                           { $scope:scope, "},{"line_number":50,"context_line":"                             \u0027horizon.framework.widgets.charts.quotaChartDefaults\u0027: defaults,"},{"line_number":51,"context_line":"                             launchInstanceModel: model });"},{"line_number":52,"context_line":"      }));"}],"source_content_type":"text/javascript","patch_set":23,"id":"5afe65bd_d55b4353","line":49,"updated":"2015-06-02 14:52:39.000000000","message":"red","commit_id":"071283a77db447e98bd3c02d3487d832483915d0"},{"author":{"_account_id":9048,"name":"Ryan Peters","email":"rjpeter2@gmail.com","username":"rjpeter2"},"change_message_id":"b7cbaccbdc48ea0bedf1d346b1af5eb2eb675c91","unresolved":false,"context_lines":[{"line_number":182,"context_line":""},{"line_number":183,"context_line":"          it(\"sets the control flavors\", function() {"},{"line_number":184,"context_line":"            var myScope \u003d {selectFlavorCtrl: ctrl};"},{"line_number":185,"context_line":"            spyOn(ctrl, \u0027validateFlavor\u0027);"},{"line_number":186,"context_line":"            action(\u0027new\u0027, \u0027na\u0027, myScope);"},{"line_number":187,"context_line":"            expect(ctrl.flavors).toBe(\"new\");"},{"line_number":188,"context_line":"          });"}],"source_content_type":"text/javascript","patch_set":23,"id":"5afe65bd_cbf5e083","line":185,"updated":"2015-06-02 14:52:39.000000000","message":"This spy doesn\u0027t seem to be necessary.","commit_id":"071283a77db447e98bd3c02d3487d832483915d0"},{"author":{"_account_id":9048,"name":"Ryan Peters","email":"rjpeter2@gmail.com","username":"rjpeter2"},"change_message_id":"b7cbaccbdc48ea0bedf1d346b1af5eb2eb675c91","unresolved":false,"context_lines":[{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        });"},{"line_number":389,"context_line":"      });"},{"line_number":390,"context_line":"      "},{"line_number":391,"context_line":"      it(\u0027initializes empty facades\u0027, function() {"},{"line_number":392,"context_line":"        expect(ctrl.availableFlavorFacades).toEqual([]);"},{"line_number":393,"context_line":"        expect(ctrl.displayedAvailableFlavorFacades).toEqual([]);"}],"source_content_type":"text/javascript","patch_set":23,"id":"5afe65bd_c62037fa","line":390,"updated":"2015-06-02 14:52:39.000000000","message":"red","commit_id":"071283a77db447e98bd3c02d3487d832483915d0"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"13aa3b412d862a48f9adaa28508c6050f3ba6bcd","unresolved":false,"context_lines":[{"line_number":33,"context_line":"                                     source: \"source_value\"},"},{"line_number":34,"context_line":"                  novaLimits: { totalInstancesUsed: 10, maxTotalInstances: 3,"},{"line_number":35,"context_line":"                                totalCoresUsed: 4, maxTotalCores: 10,"},{"line_number":36,"context_line":"                                totalRAMUsed: 100, maxTotalRAMSize: 200 }"},{"line_number":37,"context_line":"                  };"},{"line_number":38,"context_line":"        spyOn(scope, \u0027$watch\u0027);"},{"line_number":39,"context_line":"        spyOn(scope, \u0027$watchCollection\u0027);"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_5decda8e","line":36,"updated":"2015-06-03 18:44:12.000000000","message":"can probably pull scope, model, defaults outside of beforeEach.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"092d625c673fa686f8272929b51646934268e6d0","unresolved":false,"context_lines":[{"line_number":33,"context_line":"                                     source: \"source_value\"},"},{"line_number":34,"context_line":"                  novaLimits: { totalInstancesUsed: 10, maxTotalInstances: 3,"},{"line_number":35,"context_line":"                                totalCoresUsed: 4, maxTotalCores: 10,"},{"line_number":36,"context_line":"                                totalRAMUsed: 100, maxTotalRAMSize: 200 }"},{"line_number":37,"context_line":"                  };"},{"line_number":38,"context_line":"        spyOn(scope, \u0027$watch\u0027);"},{"line_number":39,"context_line":"        spyOn(scope, \u0027$watchCollection\u0027);"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_243c632e","line":36,"in_reply_to":"5afe65bd_5decda8e","updated":"2015-06-03 19:20:08.000000000","message":"Done!  Will post.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"2d49d1a9481e17f786753d6c069f6c40ff728b75","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            var novaLimits \u003d { totalInstancesUsed: 10, maxTotalInstances: 3,"},{"line_number":95,"context_line":"                                totalCoresUsed: 4, maxTotalCores: 10,"},{"line_number":96,"context_line":"                                totalRAMUsed: 100, maxTotalRAMSize: 200 };"},{"line_number":97,"context_line":"            expect(watched).toEqual(novaLimits);"},{"line_number":98,"context_line":"          });"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"          it(\"sets the control novaLimits\", function () {"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_0e1f4660","line":97,"updated":"2015-06-03 20:10:32.000000000","message":"-1: DRY use model.novaLimits instead.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5350941eb34fa8ca2ce23385130799dfbf9a0273","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            var novaLimits \u003d { totalInstancesUsed: 10, maxTotalInstances: 3,"},{"line_number":95,"context_line":"                                totalCoresUsed: 4, maxTotalCores: 10,"},{"line_number":96,"context_line":"                                totalRAMUsed: 100, maxTotalRAMSize: 200 };"},{"line_number":97,"context_line":"            expect(watched).toEqual(novaLimits);"},{"line_number":98,"context_line":"          });"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"          it(\"sets the control novaLimits\", function () {"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_5fa04943","line":97,"in_reply_to":"5afe65bd_0e1f4660","updated":"2015-06-03 20:25:13.000000000","message":"No...I don\u0027t want to test thing against itself.  It may seem less pleasant here where the value is large, but not testing something against itself is an important test concept in my mind.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"04462af3f66267363a6688f9c7ac1766df2c38c5","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            var novaLimits \u003d { totalInstancesUsed: 10, maxTotalInstances: 3,"},{"line_number":95,"context_line":"                                totalCoresUsed: 4, maxTotalCores: 10,"},{"line_number":96,"context_line":"                                totalRAMUsed: 100, maxTotalRAMSize: 200 };"},{"line_number":97,"context_line":"            expect(watched).toEqual(novaLimits);"},{"line_number":98,"context_line":"          });"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"          it(\"sets the control novaLimits\", function () {"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_2c20a547","line":97,"in_reply_to":"5afe65bd_5fa04943","updated":"2015-06-04 15:39:48.000000000","message":"Matt explained to me (off-line) that in case the test *changes* the data passed through, and the test is expecting the data to remain static, my suggestion would miss errors. Thanks Matt!","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"2d49d1a9481e17f786753d6c069f6c40ff728b75","unresolved":false,"context_lines":[{"line_number":115,"context_line":"          var watched, action;"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"          beforeEach(function () {"},{"line_number":118,"context_line":"            watched \u003d scope.$watch.calls.argsFor(1)[0]();"},{"line_number":119,"context_line":"            action \u003d scope.$watch.calls.argsFor(1)[1];"},{"line_number":120,"context_line":"          });"},{"line_number":121,"context_line":""}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_ce000e04","line":118,"updated":"2015-06-03 20:10:32.000000000","message":"-1: This is too fragile. Simply changing the order of the source code causes this test to break.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"04462af3f66267363a6688f9c7ac1766df2c38c5","unresolved":false,"context_lines":[{"line_number":115,"context_line":"          var watched, action;"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"          beforeEach(function () {"},{"line_number":118,"context_line":"            watched \u003d scope.$watch.calls.argsFor(1)[0]();"},{"line_number":119,"context_line":"            action \u003d scope.$watch.calls.argsFor(1)[1];"},{"line_number":120,"context_line":"          });"},{"line_number":121,"context_line":""}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_6cb33dea","line":118,"in_reply_to":"5afe65bd_9fbda16a","updated":"2015-06-04 15:39:48.000000000","message":"ok. I\u0027ll dig into it. I think we will need a better pattern when testing watchers.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5350941eb34fa8ca2ce23385130799dfbf9a0273","unresolved":false,"context_lines":[{"line_number":115,"context_line":"          var watched, action;"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"          beforeEach(function () {"},{"line_number":118,"context_line":"            watched \u003d scope.$watch.calls.argsFor(1)[0]();"},{"line_number":119,"context_line":"            action \u003d scope.$watch.calls.argsFor(1)[1];"},{"line_number":120,"context_line":"          });"},{"line_number":121,"context_line":""}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_9fbda16a","line":118,"in_reply_to":"5afe65bd_ce000e04","updated":"2015-06-03 20:25:13.000000000","message":"Yes.  Please offer a solution, it\u0027s not one you can fix easily!  It is fragile because the code is arguably fragile, perhaps there\u0027s another structure that would work.  I could put in a comment for now.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"2d49d1a9481e17f786753d6c069f6c40ff728b75","unresolved":false,"context_lines":[{"line_number":328,"context_line":"        });"},{"line_number":329,"context_line":"      });"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"      describe(\"when flavor definitions change\", function () {"},{"line_number":332,"context_line":"        beforeEach(function () {"},{"line_number":333,"context_line":"          ctrl.flavors \u003d [{name: \"flava\"}];"},{"line_number":334,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_0e318605","line":331,"updated":"2015-06-03 20:10:32.000000000","message":"-1: This test is a duplicate of the one at line 310","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5350941eb34fa8ca2ce23385130799dfbf9a0273","unresolved":false,"context_lines":[{"line_number":328,"context_line":"        });"},{"line_number":329,"context_line":"      });"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"      describe(\"when flavor definitions change\", function () {"},{"line_number":332,"context_line":"        beforeEach(function () {"},{"line_number":333,"context_line":"          ctrl.flavors \u003d [{name: \"flava\"}];"},{"line_number":334,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_9f648122","line":331,"in_reply_to":"5afe65bd_0e318605","updated":"2015-06-03 20:25:13.000000000","message":"No it\u0027s not...buildFlavor vs. updateFlavor.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"04462af3f66267363a6688f9c7ac1766df2c38c5","unresolved":false,"context_lines":[{"line_number":328,"context_line":"        });"},{"line_number":329,"context_line":"      });"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"      describe(\"when flavor definitions change\", function () {"},{"line_number":332,"context_line":"        beforeEach(function () {"},{"line_number":333,"context_line":"          ctrl.flavors \u003d [{name: \"flava\"}];"},{"line_number":334,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_8ce559dd","line":331,"in_reply_to":"5afe65bd_9f648122","updated":"2015-06-04 15:39:48.000000000","message":"Ha! sure enough. Sorry. Was going cross-eyed aparently.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"2d49d1a9481e17f786753d6c069f6c40ff728b75","unresolved":false,"context_lines":[{"line_number":360,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).ram).toBeDefined();"},{"line_number":361,"context_line":"          });"},{"line_number":362,"context_line":"        });"},{"line_number":363,"context_line":"        describe(\"and the image source requires more ram available\", function () {"},{"line_number":364,"context_line":"          it(\"presents a ram error message\", function () {"},{"line_number":365,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).ram).toBeDefined();"},{"line_number":366,"context_line":"          });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_5f7de96c","line":363,"updated":"2015-06-03 20:10:32.000000000","message":"-1: This is a duplicate of the test above","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5350941eb34fa8ca2ce23385130799dfbf9a0273","unresolved":false,"context_lines":[{"line_number":360,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).ram).toBeDefined();"},{"line_number":361,"context_line":"          });"},{"line_number":362,"context_line":"        });"},{"line_number":363,"context_line":"        describe(\"and the image source requires more ram available\", function () {"},{"line_number":364,"context_line":"          it(\"presents a ram error message\", function () {"},{"line_number":365,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).ram).toBeDefined();"},{"line_number":366,"context_line":"          });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_df82f993","line":363,"in_reply_to":"5afe65bd_5f7de96c","updated":"2015-06-03 20:25:13.000000000","message":"Yup!","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"2d49d1a9481e17f786753d6c069f6c40ff728b75","unresolved":false,"context_lines":[{"line_number":366,"context_line":"          });"},{"line_number":367,"context_line":"        });"},{"line_number":368,"context_line":"        describe(\"and the image source requires more disk available\", function () {"},{"line_number":369,"context_line":"          it(\"presents a ram error message\", function () {"},{"line_number":370,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).disk).toBeDefined();"},{"line_number":371,"context_line":"          });"},{"line_number":372,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_5fde0940","line":369,"updated":"2015-06-03 20:10:32.000000000","message":"-1: typo should be \"disk error message\". The problem with a typo here is that it makes it confusing which test failed.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5350941eb34fa8ca2ce23385130799dfbf9a0273","unresolved":false,"context_lines":[{"line_number":366,"context_line":"          });"},{"line_number":367,"context_line":"        });"},{"line_number":368,"context_line":"        describe(\"and the image source requires more disk available\", function () {"},{"line_number":369,"context_line":"          it(\"presents a ram error message\", function () {"},{"line_number":370,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).disk).toBeDefined();"},{"line_number":371,"context_line":"          });"},{"line_number":372,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_3f48ed86","line":369,"in_reply_to":"5afe65bd_5fde0940","updated":"2015-06-03 20:25:13.000000000","message":"Yup!","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"2d49d1a9481e17f786753d6c069f6c40ff728b75","unresolved":false,"context_lines":[{"line_number":383,"context_line":""},{"line_number":384,"context_line":"          it(\"doesn\u0027t create errors\", function () {"},{"line_number":385,"context_line":"            // only get one error; not related to the selected image."},{"line_number":386,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).ram.slice(0, 18)).not.toBe(\"The selected image\");"},{"line_number":387,"context_line":"          });"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_9f900145","line":386,"updated":"2015-06-03 20:10:32.000000000","message":"-1: brittle. Instead, novaLimits should have mock values set to exclude the unwanted error message.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"5350941eb34fa8ca2ce23385130799dfbf9a0273","unresolved":false,"context_lines":[{"line_number":383,"context_line":""},{"line_number":384,"context_line":"          it(\"doesn\u0027t create errors\", function () {"},{"line_number":385,"context_line":"            // only get one error; not related to the selected image."},{"line_number":386,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).ram.slice(0, 18)).not.toBe(\"The selected image\");"},{"line_number":387,"context_line":"          });"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_42a98ede","line":386,"in_reply_to":"5afe65bd_9f900145","updated":"2015-06-03 20:25:13.000000000","message":"Let\u0027s follow up on this...I am not quite sure what you mean.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"04462af3f66267363a6688f9c7ac1766df2c38c5","unresolved":false,"context_lines":[{"line_number":383,"context_line":""},{"line_number":384,"context_line":"          it(\"doesn\u0027t create errors\", function () {"},{"line_number":385,"context_line":"            // only get one error; not related to the selected image."},{"line_number":386,"context_line":"            expect(ctrl.getErrors(ctrl.flavors[0]).ram.slice(0, 18)).not.toBe(\"The selected image\");"},{"line_number":387,"context_line":"          });"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"        });"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_973326ab","line":386,"in_reply_to":"5afe65bd_9f900145","updated":"2015-06-04 15:39:48.000000000","message":"the test appears to expect that there will be at least 1 error message about ram...but then does string slicing to make sure it is the \"other\" one. Maybe the test description is off, but at first glance, it seems like we can set up the test to target the desired message (or not message) more precisely.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"13aa3b412d862a48f9adaa28508c6050f3ba6bcd","unresolved":false,"context_lines":[{"line_number":447,"context_line":""},{"line_number":448,"context_line":"      beforeEach(module(\u0027hz.dashboard.launch-instance\u0027));"},{"line_number":449,"context_line":""},{"line_number":450,"context_line":"      beforeEach(inject(function ($controller) {"},{"line_number":451,"context_line":"        scope \u003d {};"},{"line_number":452,"context_line":"        ctrl \u003d $controller(\u0027LaunchInstanceFlavorHelpCtrl\u0027, {$scope:scope});"},{"line_number":453,"context_line":"      }));"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_da68d089","line":450,"updated":"2015-06-03 18:44:12.000000000","message":"scope not required since controller isnt using it.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"092d625c673fa686f8272929b51646934268e6d0","unresolved":false,"context_lines":[{"line_number":447,"context_line":""},{"line_number":448,"context_line":"      beforeEach(module(\u0027hz.dashboard.launch-instance\u0027));"},{"line_number":449,"context_line":""},{"line_number":450,"context_line":"      beforeEach(inject(function ($controller) {"},{"line_number":451,"context_line":"        scope \u003d {};"},{"line_number":452,"context_line":"        ctrl \u003d $controller(\u0027LaunchInstanceFlavorHelpCtrl\u0027, {$scope:scope});"},{"line_number":453,"context_line":"      }));"}],"source_content_type":"text/javascript","patch_set":25,"id":"5afe65bd_e473eb13","line":450,"in_reply_to":"5afe65bd_da68d089","updated":"2015-06-03 19:20:08.000000000","message":"Good catch!  Will post.","commit_id":"8df583d6337513ec9e27429b63fc7623e1684292"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"2b221938a62c18346b958fd55e9a82a61137def5","unresolved":false,"context_lines":[{"line_number":17,"context_line":"  \u0027use strict\u0027;"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"  describe(\u0027Launch Instance Flavor Step\u0027, function () {"},{"line_number":20,"context_line":"    describe(\u0027LaunchInstanceFlavorCtrl\u0027, function () {"},{"line_number":21,"context_line":"      var ctrl;"},{"line_number":22,"context_line":"      var scope \u003d { $watch: function () {},"},{"line_number":23,"context_line":"                  $watchCollection: function () {},"}],"source_content_type":"text/javascript","patch_set":29,"id":"5afe65bd_ac65b5b5","line":20,"updated":"2015-06-04 15:35:26.000000000","message":"-1: I think it is better that this kind of initialization live within a beforeEach block. That way each test starts with a known good state, and doesn\u0027t accidentally pick up modifications from a prior test.  In case the test run order is not deterministic, changes in the test data might cause random failures.","commit_id":"41683f91e73cc7a70657297b1d52ad2679709a35"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"2bd9a122f7e154618ed5939ac6bf993c5aa120d3","unresolved":false,"context_lines":[{"line_number":23,"context_line":"      beforeEach(module(\u0027hz.dashboard.launch-instance\u0027));"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"      beforeEach(inject(function ($controller) {"},{"line_number":26,"context_line":"        scope \u003d { $watch: function () {},"},{"line_number":27,"context_line":"                  $watchCollection: function () {},"},{"line_number":28,"context_line":"                  launchInstanceFlavorForm: {}"},{"line_number":29,"context_line":"                };"}],"source_content_type":"text/javascript","patch_set":30,"id":"5afe65bd_65fb4b7a","line":26,"updated":"2015-06-04 18:15:49.000000000","message":"are you using pycharm? not sure why we\u0027re using python coding styles here, its not as readable.","commit_id":"d3eb7cdfed5b3de3c73861c06bb5271dc1fdfd06"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"21a088efdc52126924a7d227564a224d88efa4a9","unresolved":false,"context_lines":[{"line_number":23,"context_line":"      beforeEach(module(\u0027hz.dashboard.launch-instance\u0027));"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"      beforeEach(inject(function ($controller) {"},{"line_number":26,"context_line":"        scope \u003d { $watch: function () {},"},{"line_number":27,"context_line":"                  $watchCollection: function () {},"},{"line_number":28,"context_line":"                  launchInstanceFlavorForm: {}"},{"line_number":29,"context_line":"                };"}],"source_content_type":"text/javascript","patch_set":30,"id":"3afb71cf_c48cde37","line":26,"in_reply_to":"5afe65bd_65fb4b7a","updated":"2015-06-04 18:56:18.000000000","message":"I think it looks nice. I like how the variable of the same object all line up.","commit_id":"d3eb7cdfed5b3de3c73861c06bb5271dc1fdfd06"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"2bd9a122f7e154618ed5939ac6bf993c5aa120d3","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        });"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        describe(\"novaLimits watch\", function () {"},{"line_number":84,"context_line":"          var watched, action;"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"          beforeEach(function () {"},{"line_number":87,"context_line":"            // NOTE: This ordering of watches is fragile."}],"source_content_type":"text/javascript","patch_set":30,"id":"5afe65bd_25fb1349","line":84,"updated":"2015-06-04 18:15:49.000000000","message":"so here is my question: instead of creating an object and calling it scope, why not just use the $rootscope to generate a scope object? This way, when you make changes to the model, you can just call scope.$digest to trigger the $watch automatically. \n\nIf done as mentioned above, then you wouldn\u0027t need to do the fragile ordering of watches in beforeEach. Ping me in IRC if this isn\u0027t clear, words can get lost in transit sometimes.","commit_id":"d3eb7cdfed5b3de3c73861c06bb5271dc1fdfd06"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"21a088efdc52126924a7d227564a224d88efa4a9","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        });"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        describe(\"novaLimits watch\", function () {"},{"line_number":84,"context_line":"          var watched, action;"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"          beforeEach(function () {"},{"line_number":87,"context_line":"            // NOTE: This ordering of watches is fragile."}],"source_content_type":"text/javascript","patch_set":30,"id":"3afb71cf_44922e59","line":84,"in_reply_to":"5afe65bd_25fb1349","updated":"2015-06-04 18:56:18.000000000","message":"Great suggestion Thai. I\u0027m testing this now.","commit_id":"d3eb7cdfed5b3de3c73861c06bb5271dc1fdfd06"}]}
