)]}'
{"ironic_ui/static/dashboard/admin/ironic/base-port/base-port.controller.js":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"a3cc448300beb0eb051013673c45fc87a3802c90","unresolved":false,"context_lines":[{"line_number":135,"context_line":"        var attr \u003d null;"},{"line_number":136,"context_line":"        if (this.port_id.hasValue() \u0026\u0026"},{"line_number":137,"context_line":"            this.switch_id.hasValue()) {"},{"line_number":138,"context_line":"          attr \u003d {};"},{"line_number":139,"context_line":"          attr.port_id \u003d this.port_id.value;"},{"line_number":140,"context_line":"          attr.switch_id \u003d this.switch_id.value;"},{"line_number":141,"context_line":""}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_5d29c198","line":138,"range":{"start_line":138,"start_character":10,"end_line":138,"end_character":20},"updated":"2017-06-15 01:31:12.000000000","message":"Isn\u0027t this and the current one the same? i mean if we were calling some property of attr then i understand it would return [object Object] but we are not using attr between L135 and L138 so i do not see the reason of changing. Or is there angularjs norm that i am missing","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19380,"name":"Peter Piela","email":"ppiela@gmail.com","username":"ppiela"},"change_message_id":"4672b371370a3033c936dee894c90140570f1df3","unresolved":false,"context_lines":[{"line_number":135,"context_line":"        var attr \u003d null;"},{"line_number":136,"context_line":"        if (this.port_id.hasValue() \u0026\u0026"},{"line_number":137,"context_line":"            this.switch_id.hasValue()) {"},{"line_number":138,"context_line":"          attr \u003d {};"},{"line_number":139,"context_line":"          attr.port_id \u003d this.port_id.value;"},{"line_number":140,"context_line":"          attr.switch_id \u003d this.switch_id.value;"},{"line_number":141,"context_line":""}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_73901e4b","line":138,"range":{"start_line":138,"start_character":10,"end_line":138,"end_character":20},"in_reply_to":"7f231b9d_5d29c198","updated":"2017-06-15 13:14:05.000000000","message":"It is not the same. Null is a stronger way of expressing that the required information does not exist, and is consistent with the description of the return value in the function documentation. A test \"if (null)\" will generate a value of false, whereas \"if ({})\" gives a value of true.","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"413b72937040c6c5702e92e9fe793110105056ad","unresolved":false,"context_lines":[{"line_number":135,"context_line":"        var attr \u003d null;"},{"line_number":136,"context_line":"        if (this.port_id.hasValue() \u0026\u0026"},{"line_number":137,"context_line":"            this.switch_id.hasValue()) {"},{"line_number":138,"context_line":"          attr \u003d {};"},{"line_number":139,"context_line":"          attr.port_id \u003d this.port_id.value;"},{"line_number":140,"context_line":"          attr.switch_id \u003d this.switch_id.value;"},{"line_number":141,"context_line":""}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_f4af71e0","line":138,"range":{"start_line":138,"start_character":10,"end_line":138,"end_character":20},"in_reply_to":"7f231b9d_73901e4b","updated":"2017-06-15 15:44:09.000000000","message":"hmm, fair enough. +1","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"}],"ironic_ui/static/dashboard/admin/ironic/ironic.backend-mock.service.js":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"a3cc448300beb0eb051013673c45fc87a3802c90","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    };"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    // Default port object."},{"line_number":72,"context_line":"    var defaultPort \u003d {"},{"line_number":73,"context_line":"      address: undefined,"},{"line_number":74,"context_line":"      created_at: null,"},{"line_number":75,"context_line":"      extra: {},"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_88f715d4","line":72,"range":{"start_line":72,"start_character":4,"end_line":72,"end_character":19},"updated":"2017-06-15 01:31:12.000000000","message":"Just a concern, by this if some properties get added in Port object even just at API level in Ironic project, then we need to manually add that property here? is that case fine? Just wondering it out loud","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19380,"name":"Peter Piela","email":"ppiela@gmail.com","username":"ppiela"},"change_message_id":"4672b371370a3033c936dee894c90140570f1df3","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    };"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    // Default port object."},{"line_number":72,"context_line":"    var defaultPort \u003d {"},{"line_number":73,"context_line":"      address: undefined,"},{"line_number":74,"context_line":"      created_at: null,"},{"line_number":75,"context_line":"      extra: {},"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_b34236aa","line":72,"range":{"start_line":72,"start_character":4,"end_line":72,"end_character":19},"in_reply_to":"7f231b9d_88f715d4","updated":"2017-06-15 13:14:05.000000000","message":"True. Do you have an alternate approach? The mock is simulating Ironic, and needs to be kept up to date with changes to it.\n\nI have given some thought to a semi-automated calibration mechanism in which you run queries against an actual backend to update the base definitions in the mock.","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"413b72937040c6c5702e92e9fe793110105056ad","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    };"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    // Default port object."},{"line_number":72,"context_line":"    var defaultPort \u003d {"},{"line_number":73,"context_line":"      address: undefined,"},{"line_number":74,"context_line":"      created_at: null,"},{"line_number":75,"context_line":"      extra: {},"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_94fcbdb5","line":72,"range":{"start_line":72,"start_character":4,"end_line":72,"end_character":19},"in_reply_to":"7f231b9d_b34236aa","updated":"2017-06-15 15:44:09.000000000","message":"Hmm, i was thinking if there is some way the object class can directly be used, but I am not sure as there is no specific API to get the current fields for any object. Semi-automated mechanism sounds convincing (although not sure about the details of it of how you are going to achieve it)","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"a3cc448300beb0eb051013673c45fc87a3802c90","unresolved":false,"context_lines":[{"line_number":226,"context_line":"     * @return {object} Port object."},{"line_number":227,"context_line":"     */"},{"line_number":228,"context_line":"    function getPort(portUuid) {"},{"line_number":229,"context_line":"      return angular.isDefined(ports[portUuid]) ? ports[portUuid] : undefined;"},{"line_number":230,"context_line":"    }"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"    /**"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_48433db0","line":229,"range":{"start_line":229,"start_character":68,"end_line":229,"end_character":77},"updated":"2017-06-15 01:31:12.000000000","message":"Should this be null, as undefined has the type also as undefined. If we return null then the return type will still remain an object in both cases - when isDefined returns true or false, wdyt?","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"413b72937040c6c5702e92e9fe793110105056ad","unresolved":false,"context_lines":[{"line_number":226,"context_line":"     * @return {object} Port object."},{"line_number":227,"context_line":"     */"},{"line_number":228,"context_line":"    function getPort(portUuid) {"},{"line_number":229,"context_line":"      return angular.isDefined(ports[portUuid]) ? ports[portUuid] : undefined;"},{"line_number":230,"context_line":"    }"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"    /**"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_94715d47","line":229,"range":{"start_line":229,"start_character":68,"end_line":229,"end_character":77},"in_reply_to":"7f231b9d_1e757164","updated":"2017-06-15 15:44:09.000000000","message":"I see, yeah my main point was undefined returns undefined type. +1 on updating the description of return value.","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19380,"name":"Peter Piela","email":"ppiela@gmail.com","username":"ppiela"},"change_message_id":"4672b371370a3033c936dee894c90140570f1df3","unresolved":false,"context_lines":[{"line_number":226,"context_line":"     * @return {object} Port object."},{"line_number":227,"context_line":"     */"},{"line_number":228,"context_line":"    function getPort(portUuid) {"},{"line_number":229,"context_line":"      return angular.isDefined(ports[portUuid]) ? ports[portUuid] : undefined;"},{"line_number":230,"context_line":"    }"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"    /**"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_1e757164","line":229,"range":{"start_line":229,"start_character":68,"end_line":229,"end_character":77},"in_reply_to":"7f231b9d_48433db0","updated":"2017-06-15 13:14:05.000000000","message":"The description of the function return value should be updated. I think that I could argue for null based on consistency. The use of null versus undefined is a rich topic of discussion in the Javascript community. I tend to use null coming from languages that dont have an explicit value for \"undefined\".","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"a3cc448300beb0eb051013673c45fc87a3802c90","unresolved":false,"context_lines":[{"line_number":403,"context_line":"      $httpBackend.whenGET(/\\/api\\/glance\\/images/)"},{"line_number":404,"context_line":"        .respond(200, {items: images});"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"      // Create port"},{"line_number":407,"context_line":"      $httpBackend.whenPOST(/\\/api\\/ironic\\/ports\\/$/)"},{"line_number":408,"context_line":"        .respond(function(method, url, data) {"},{"line_number":409,"context_line":"          var port \u003d createPort(JSON.parse(data).port);"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_886b951c","line":406,"range":{"start_line":406,"start_character":9,"end_line":406,"end_character":20},"updated":"2017-06-15 01:31:12.000000000","message":"How is the cases that throw BAD_REQUEST or NOT_ACCEPTABLE handled? ditto for other DELETE, GET requests","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19380,"name":"Peter Piela","email":"ppiela@gmail.com","username":"ppiela"},"change_message_id":"4672b371370a3033c936dee894c90140570f1df3","unresolved":false,"context_lines":[{"line_number":403,"context_line":"      $httpBackend.whenGET(/\\/api\\/glance\\/images/)"},{"line_number":404,"context_line":"        .respond(200, {items: images});"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"      // Create port"},{"line_number":407,"context_line":"      $httpBackend.whenPOST(/\\/api\\/ironic\\/ports\\/$/)"},{"line_number":408,"context_line":"        .respond(function(method, url, data) {"},{"line_number":409,"context_line":"          var port \u003d createPort(JSON.parse(data).port);"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_b38c76d7","line":406,"range":{"start_line":406,"start_character":9,"end_line":406,"end_character":20},"in_reply_to":"7f231b9d_886b951c","updated":"2017-06-15 13:14:05.000000000","message":"The mock currently returns binary results good/bad because the ironic-ui code does not differentiate between alternate error conditions. If more granularity is needed then the mock must be refined accordingly.","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"413b72937040c6c5702e92e9fe793110105056ad","unresolved":false,"context_lines":[{"line_number":403,"context_line":"      $httpBackend.whenGET(/\\/api\\/glance\\/images/)"},{"line_number":404,"context_line":"        .respond(200, {items: images});"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"      // Create port"},{"line_number":407,"context_line":"      $httpBackend.whenPOST(/\\/api\\/ironic\\/ports\\/$/)"},{"line_number":408,"context_line":"        .respond(function(method, url, data) {"},{"line_number":409,"context_line":"          var port \u003d createPort(JSON.parse(data).port);"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_d4c91559","line":406,"range":{"start_line":406,"start_character":9,"end_line":406,"end_character":20},"in_reply_to":"7f231b9d_b38c76d7","updated":"2017-06-15 15:44:09.000000000","message":"Hmm, so do you have a plan to catch the alternate error conditions in near future?","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19380,"name":"Peter Piela","email":"ppiela@gmail.com","username":"ppiela"},"change_message_id":"3f1715f4ce78a9fcde19dcd4dd4ddd77970bb1d7","unresolved":false,"context_lines":[{"line_number":403,"context_line":"      $httpBackend.whenGET(/\\/api\\/glance\\/images/)"},{"line_number":404,"context_line":"        .respond(200, {items: images});"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"      // Create port"},{"line_number":407,"context_line":"      $httpBackend.whenPOST(/\\/api\\/ironic\\/ports\\/$/)"},{"line_number":408,"context_line":"        .respond(function(method, url, data) {"},{"line_number":409,"context_line":"          var port \u003d createPort(JSON.parse(data).port);"}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_c5b5dd33","line":406,"range":{"start_line":406,"start_character":9,"end_line":406,"end_character":20},"in_reply_to":"7f231b9d_d4c91559","updated":"2017-06-15 16:39:03.000000000","message":"My expectation is that the fidelity of the mock will increase over time to meet the need of developers writing unit tests.","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"}],"ironic_ui/static/dashboard/admin/ironic/ironic.service.spec.js":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"e45dfdcf0ef84a83fc940f63d44be67adf394b6f","unresolved":false,"context_lines":[{"line_number":324,"context_line":"          ironicBackendMockService.flush();"},{"line_number":325,"context_line":"        });"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        it(\u0027createPort - bad input data\u0027, function() {"},{"line_number":328,"context_line":"          ironicAPI.createPort({address: \"\", node_uuid: \"\"})"},{"line_number":329,"context_line":"            .then(failTest);"},{"line_number":330,"context_line":""}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_68e279a2","line":327,"range":{"start_line":327,"start_character":12,"end_line":327,"end_character":39},"updated":"2017-06-15 01:33:16.000000000","message":"is it possible to handle conflicting MAC Address case? Also when node uuid not exist?","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19380,"name":"Peter Piela","email":"ppiela@gmail.com","username":"ppiela"},"change_message_id":"4672b371370a3033c936dee894c90140570f1df3","unresolved":false,"context_lines":[{"line_number":324,"context_line":"          ironicBackendMockService.flush();"},{"line_number":325,"context_line":"        });"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        it(\u0027createPort - bad input data\u0027, function() {"},{"line_number":328,"context_line":"          ironicAPI.createPort({address: \"\", node_uuid: \"\"})"},{"line_number":329,"context_line":"            .then(failTest);"},{"line_number":330,"context_line":""}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_9ede210f","line":327,"range":{"start_line":327,"start_character":12,"end_line":327,"end_character":39},"in_reply_to":"7f231b9d_68e279a2","updated":"2017-06-15 13:14:05.000000000","message":"The current \"bad input\" test could be broken into separate tests for mac address and node uuid. I am not sure what you mean by conflicting mac address, maybe use of a mac address that is already in use by an existing port. In that case the mock would need to be refined to test for that condition.","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19380,"name":"Peter Piela","email":"ppiela@gmail.com","username":"ppiela"},"change_message_id":"3f1715f4ce78a9fcde19dcd4dd4ddd77970bb1d7","unresolved":false,"context_lines":[{"line_number":324,"context_line":"          ironicBackendMockService.flush();"},{"line_number":325,"context_line":"        });"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        it(\u0027createPort - bad input data\u0027, function() {"},{"line_number":328,"context_line":"          ironicAPI.createPort({address: \"\", node_uuid: \"\"})"},{"line_number":329,"context_line":"            .then(failTest);"},{"line_number":330,"context_line":""}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_2a11005e","line":327,"range":{"start_line":327,"start_character":12,"end_line":327,"end_character":39},"in_reply_to":"7f231b9d_9ede210f","updated":"2017-06-15 16:39:03.000000000","message":"I will enhance the mock and add a test in ironic.service.spec.","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"413b72937040c6c5702e92e9fe793110105056ad","unresolved":false,"context_lines":[{"line_number":324,"context_line":"          ironicBackendMockService.flush();"},{"line_number":325,"context_line":"        });"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        it(\u0027createPort - bad input data\u0027, function() {"},{"line_number":328,"context_line":"          ironicAPI.createPort({address: \"\", node_uuid: \"\"})"},{"line_number":329,"context_line":"            .then(failTest);"},{"line_number":330,"context_line":""}],"source_content_type":"text/javascript","patch_set":1,"id":"7f231b9d_c7104551","line":327,"range":{"start_line":327,"start_character":12,"end_line":327,"end_character":39},"in_reply_to":"7f231b9d_9ede210f","updated":"2017-06-15 15:44:09.000000000","message":"Yes, i mean when MAC address is already in use. I think that case should be covered, thoughts?","commit_id":"384aafa5b64f9f429810fca16bcff9f1c8f5b3f5"}]}
