)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     David Cusatis \u003cdcusati@us.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-12-15 11:42:00 -0600"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added test for testing inline cell editing of project name \u0026 confirmation of entity deletion."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I70c07a269daca87cd7a7319b39a8d6a8d4a0df57"},{"line_number":10,"context_line":"Closes-Bug: #1525226"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a7e1126_ce1fb56a","line":7,"updated":"2015-12-18 17:09:10.000000000","message":"Could you please use lines shorter than 80 symbols? With a single first line as a commit title.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"}],"openstack_dashboard/test/integration_tests/pages/identity/projectspage.py":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            *self._delete_project_submit_button_locator)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @property"},{"line_number":89,"context_line":"    def delete_project_modal_body(self):"},{"line_number":90,"context_line":"        return self._get_element("},{"line_number":91,"context_line":"            *self._delete_project_modal_body_locator)"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_b17648a2","line":89,"updated":"2015-12-18 17:09:10.000000000","message":"It\u0027d be very nice if we could integrate delete_from_dropdown_menu, bring_up_delete_project_modal and close_delete_project_modal into a more compact representation, so future users of this Page Object won\u0027t be confused with multiple methods/properties that do almost the same thing but slightly differently.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    def edit_project_name(self, project_name, new_project_name):"},{"line_number":135,"context_line":"        row \u003d self._get_row_with_project_name(project_name)"},{"line_number":136,"context_line":"        ActionChains(self.driver).move_to_element("},{"line_number":137,"context_line":"            row.cells[0]).click(row.inline_edit_button).perform()"},{"line_number":138,"context_line":"        text_box \u003d row.inline_edit_text_box"},{"line_number":139,"context_line":"        text_box.clear()"},{"line_number":140,"context_line":"        text_box.send_keys(new_project_name)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_f1ab7073","line":137,"updated":"2015-12-18 17:09:10.000000000","message":"See my comment in the next file. Couple of ideas here:\n\n* use named constants for column indices instead of magic numbers\n* this might eliminate the need in using ActionChains since you may find it more self-explanatory to first place the particular cell into a named variable and then clicking a specific button inside it (more verbose, but clearer at the same time)","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":19450,"name":"David Cusatis","email":"dcusati@us.ibm.com","username":"davidcusatis1"},"change_message_id":"34982d39b5c6f667c37a088e5e92789f68203302","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    def edit_project_name(self, project_name, new_project_name):"},{"line_number":135,"context_line":"        row \u003d self._get_row_with_project_name(project_name)"},{"line_number":136,"context_line":"        ActionChains(self.driver).move_to_element("},{"line_number":137,"context_line":"            row.cells[0]).click(row.inline_edit_button).perform()"},{"line_number":138,"context_line":"        text_box \u003d row.inline_edit_text_box"},{"line_number":139,"context_line":"        text_box.clear()"},{"line_number":140,"context_line":"        text_box.send_keys(new_project_name)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_80066a1b","line":137,"in_reply_to":"3a7e1126_f1ab7073","updated":"2016-01-04 22:46:18.000000000","message":"I definitely agree on non magic numbers, but the reason I think ActionChains are still needed is because the element to edit the cell doesn\u0027t show up until we mouseover the cell.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"98711319c7b85d9d7de0ddf7af51d841cf0c27f1","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    def edit_project_name(self, project_name, new_project_name):"},{"line_number":135,"context_line":"        row \u003d self._get_row_with_project_name(project_name)"},{"line_number":136,"context_line":"        ActionChains(self.driver).move_to_element("},{"line_number":137,"context_line":"            row.cells[0]).click(row.inline_edit_button).perform()"},{"line_number":138,"context_line":"        text_box \u003d row.inline_edit_text_box"},{"line_number":139,"context_line":"        text_box.clear()"},{"line_number":140,"context_line":"        text_box.send_keys(new_project_name)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_5d7838c4","line":137,"in_reply_to":"fa69d971_80066a1b","updated":"2016-01-11 13:16:04.000000000","message":"Ok, that makes sense. What\u0027s about abstracting this pattern into a function like `hover_and_click`?","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":136,"context_line":"        ActionChains(self.driver).move_to_element("},{"line_number":137,"context_line":"            row.cells[0]).click(row.inline_edit_button).perform()"},{"line_number":138,"context_line":"        text_box \u003d row.inline_edit_text_box"},{"line_number":139,"context_line":"        text_box.clear()"},{"line_number":140,"context_line":"        text_box.send_keys(new_project_name)"},{"line_number":141,"context_line":"        ActionChains(self.driver).click("},{"line_number":142,"context_line":"            row.inline_edit_submit_button).perform()"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_71fc6072","line":139,"updated":"2015-12-18 17:09:10.000000000","message":"Could we reuse TextImportFormFieldRegion here (https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/integration_tests/regions/forms.py#L128)? It already has text getter and setter out-of-box. I understand that may be difficult, if you decide not do it, I\u0027ll try to implement this in a follow-up patch.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        text_box.clear()"},{"line_number":140,"context_line":"        text_box.send_keys(new_project_name)"},{"line_number":141,"context_line":"        ActionChains(self.driver).click("},{"line_number":142,"context_line":"            row.inline_edit_submit_button).perform()"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def bring_up_delete_project_modal(self, project_name):"},{"line_number":145,"context_line":"        row \u003d self._get_row_with_project_name(project_name)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_d132f45e","line":142,"updated":"2015-12-18 17:09:10.000000000","message":"Here we should wait until the input value is submitted, otherwise the next call checking if name was changed could fail (due to varied network latency).","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":19450,"name":"David Cusatis","email":"dcusati@us.ibm.com","username":"davidcusatis1"},"change_message_id":"34982d39b5c6f667c37a088e5e92789f68203302","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        text_box.clear()"},{"line_number":140,"context_line":"        text_box.send_keys(new_project_name)"},{"line_number":141,"context_line":"        ActionChains(self.driver).click("},{"line_number":142,"context_line":"            row.inline_edit_submit_button).perform()"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def bring_up_delete_project_modal(self, project_name):"},{"line_number":145,"context_line":"        row \u003d self._get_row_with_project_name(project_name)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_003a7acc","line":142,"in_reply_to":"3a7e1126_d132f45e","updated":"2016-01-04 22:46:18.000000000","message":"currently I have an explicit WebDriverWait (http://selenium-python.readthedocs.org/waits.html) here - wondering your thoughts on that, or if you knew of a better way to do this.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"98711319c7b85d9d7de0ddf7af51d841cf0c27f1","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        text_box.clear()"},{"line_number":140,"context_line":"        text_box.send_keys(new_project_name)"},{"line_number":141,"context_line":"        ActionChains(self.driver).click("},{"line_number":142,"context_line":"            row.inline_edit_submit_button).perform()"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def bring_up_delete_project_modal(self, project_name):"},{"line_number":145,"context_line":"        row \u003d self._get_row_with_project_name(project_name)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_7d241c0c","line":142,"in_reply_to":"fa69d971_003a7acc","updated":"2016-01-11 13:16:04.000000000","message":"In such cases it\u0027s better to wait for disappearance of some characteristic element that is shown while update is pending. For example, forms submission in progress is detected using spinner modal, see https://review.openstack.org/#/c/261864/2/openstack_dashboard/test/integration_tests/regions/forms.py","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"}],"openstack_dashboard/test/integration_tests/regions/tables.py":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    _secondary_actions_dropdown_locator \u003d (by.By.CSS_SELECTOR,"},{"line_number":70,"context_line":"                                           \u0027div.btn-group\u0027)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    _inline_project_name_edit_button_locator \u003d (by.By.CSS_SELECTOR,"},{"line_number":73,"context_line":"                                                \u0027button.ajax-inline-edit\u0027)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    _inline_project_name_input_text_locator \u003d (by.By.CSS_SELECTOR,"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_ce19f5d8","line":72,"updated":"2015-12-18 17:09:10.000000000","message":"This might be very opinionated, but what do you think about moving inline-edit helpers to some of the Row* ancestors? According to docstring, this class is for row + select checkbox + action button. Theoretically, there could be a table with inline-edit facilities but without checkbox and action column.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":19450,"name":"David Cusatis","email":"dcusati@us.ibm.com","username":"davidcusatis1"},"change_message_id":"34982d39b5c6f667c37a088e5e92789f68203302","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    _secondary_actions_dropdown_locator \u003d (by.By.CSS_SELECTOR,"},{"line_number":70,"context_line":"                                           \u0027div.btn-group\u0027)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    _inline_project_name_edit_button_locator \u003d (by.By.CSS_SELECTOR,"},{"line_number":73,"context_line":"                                                \u0027button.ajax-inline-edit\u0027)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    _inline_project_name_input_text_locator \u003d (by.By.CSS_SELECTOR,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_00411a38","line":72,"in_reply_to":"3a7e1126_ce19f5d8","updated":"2016-01-04 22:46:18.000000000","message":"Agree, I think this is a really good idea. I\u0027ll work on this change for the next patch set as well.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        return dropdown.menu_items"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _get_inline_edit_action(self):"},{"line_number":116,"context_line":"        return self._get_element("},{"line_number":117,"context_line":"            *self._inline_project_name_edit_button_locator)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def _get_inline_edit_text_box(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_4e7745d3","line":116,"updated":"2015-12-18 17:09:10.000000000","message":"I think it would be more reusable if one could specify column index here, since several cells/columns in a row could be inline editable. Integration test pages already use column indexing to some extent, see https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/integration_tests/pages/project/compute/imagespage.py#L27\n\nOR, a Cell wrapper could be abstracted away into its own class (so, the `cells` property would return a list of Cell classes) - then it would be the natural candidate for having all these methods. Actually, I\u0027d prefer the second option (if it\u0027s possible).","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":19450,"name":"David Cusatis","email":"dcusati@us.ibm.com","username":"davidcusatis1"},"change_message_id":"34982d39b5c6f667c37a088e5e92789f68203302","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        return dropdown.menu_items"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _get_inline_edit_action(self):"},{"line_number":116,"context_line":"        return self._get_element("},{"line_number":117,"context_line":"            *self._inline_project_name_edit_button_locator)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def _get_inline_edit_text_box(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_40a872db","line":116,"in_reply_to":"3a7e1126_4e7745d3","updated":"2016-01-04 22:46:18.000000000","message":"I agree the Cell wrapper is probably a good idea. Do you think it might be worth creating a different change set for that though, as opposed to doing it in this one?","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"}],"openstack_dashboard/test/integration_tests/tests/test_projects.py":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        self.assertTrue("},{"line_number":44,"context_line":"            self.projects_page.is_project_present(new_project_name))"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        self.projects_page.bring_up_delete_project_modal(new_project_name)"},{"line_number":47,"context_line":"        self.assertIn(new_project_name,"},{"line_number":48,"context_line":"                      self.projects_page.delete_project_modal_body.text)"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_71cf8029","line":46,"updated":"2015-12-18 17:09:10.000000000","message":"It seems to me a bit more consistent to return a reference to delete modal from the delete_project call (or something like that, the integration of several similar methods I spoke in one of previous comments) and store it within a named var.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        self.projects_page.bring_up_delete_project_modal(new_project_name)"},{"line_number":47,"context_line":"        self.assertIn(new_project_name,"},{"line_number":48,"context_line":"                      self.projects_page.delete_project_modal_body.text)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        self.projects_page.close_delete_project_modal()"},{"line_number":51,"context_line":"        self.assertFalse("}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_11e15c9a","line":48,"updated":"2015-12-18 17:09:10.000000000","message":"Then scan this named var for a presence of a text.","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"56f7a3e3862be63fc1d3fa5250cc554208be2c19","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        self.assertIn(new_project_name,"},{"line_number":48,"context_line":"                      self.projects_page.delete_project_modal_body.text)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        self.projects_page.close_delete_project_modal()"},{"line_number":51,"context_line":"        self.assertFalse("},{"line_number":52,"context_line":"            self.projects_page.is_project_present(new_project_name))"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a7e1126_f1fa9042","line":50,"updated":"2015-12-18 17:09:10.000000000","message":"And click a button at this named var (\u003dconfirm delete modal region).","commit_id":"2e341562b7ed5d0d3311644a569e77f5d5d136bb"}]}
