)]}'
{"openstack_dashboard/test/integration_tests/pages/project/compute/volumes/volumesnapshotspage.py":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"690b1e25c12cffbe7ec1dc6fff3ce05d51f484ca","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"class VolumesnapshotsTable(tables.TableRegion):"},{"line_number":24,"context_line":"    name \u003d \u0027volume_snapshots\u0027"},{"line_number":25,"context_line":"    marker_name \u003d \u0027?snapshot_marker\u0027"},{"line_number":26,"context_line":"    prev_marker_name \u003d \u0027?prev_snapshot_marker\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    EDIT_SNAPSHOT_FORM_FIELDS \u003d (\"name\", \"description\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_ceac6b8e","line":25,"updated":"2016-02-18 14:04:19.000000000","message":"I don\u0027t think we should include \u0027?\u0027 symbol into marker name, as it\u0027s a delimiter symbol.","commit_id":"62e547e49689369014e448b51b75544c04487cdd"},{"author":{"_account_id":19333,"name":"Alexandra Allakhverdieva","email":"aallakhverdieva@mirantis.com","username":"AlexandraAllakhverdieva"},"change_message_id":"09f62c39a1abc64df6c231f6c8844ced9ee6404c","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"class VolumesnapshotsTable(tables.TableRegion):"},{"line_number":24,"context_line":"    name \u003d \u0027volume_snapshots\u0027"},{"line_number":25,"context_line":"    marker_name \u003d \u0027?snapshot_marker\u0027"},{"line_number":26,"context_line":"    prev_marker_name \u003d \u0027?prev_snapshot_marker\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    EDIT_SNAPSHOT_FORM_FIELDS \u003d (\"name\", \"description\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_4424b70b","line":25,"in_reply_to":"dae33548_ceac6b8e","updated":"2016-02-18 15:33:40.000000000","message":"Done","commit_id":"62e547e49689369014e448b51b75544c04487cdd"}],"openstack_dashboard/test/integration_tests/pages/project/compute/volumes/volumespage.py":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"690b1e25c12cffbe7ec1dc6fff3ce05d51f484ca","unresolved":false,"context_lines":[{"line_number":146,"context_line":"            return volume_form.volume_id, volume_source"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def create_volume_snapshot(self, volume, snapshot, description\u003d\u0027test\u0027):"},{"line_number":149,"context_line":"        from openstack_dashboard.test.integration_tests.pages.project.compute.volumes.\\"},{"line_number":150,"context_line":"            volumesnapshotspage import VolumesnapshotsPage"},{"line_number":151,"context_line":"        row \u003d self._get_row_with_volume_name(volume)"},{"line_number":152,"context_line":"        snapshot_form \u003d self.volumes_table.create_snapshot(row)"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_ee304f58","line":149,"updated":"2016-02-18 14:04:19.000000000","message":"Imports inside functions usually are not welcome.","commit_id":"62e547e49689369014e448b51b75544c04487cdd"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"9f3ddc3f89d81323b0b2f5b807fd86bc84a8ae07","unresolved":false,"context_lines":[{"line_number":146,"context_line":"            return volume_form.volume_id, volume_source"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def create_volume_snapshot(self, volume, snapshot, description\u003d\u0027test\u0027):"},{"line_number":149,"context_line":"        from openstack_dashboard.test.integration_tests.pages.project.compute.volumes.\\"},{"line_number":150,"context_line":"            volumesnapshotspage import VolumesnapshotsPage"},{"line_number":151,"context_line":"        row \u003d self._get_row_with_volume_name(volume)"},{"line_number":152,"context_line":"        snapshot_form \u003d self.volumes_table.create_snapshot(row)"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_7d3d0ec3","line":149,"in_reply_to":"dae33548_8466bfb8","updated":"2016-02-18 16:06:22.000000000","message":"Ah, that\u0027s true - otherwise you get a circular import between volumespage.py and volumesnapshotspage.py :(.\n\nWell, it seems we have no other solution here, given the rigid structure of page object modules. Please just keep this line short enough so it would pass pep8 check.","commit_id":"62e547e49689369014e448b51b75544c04487cdd"},{"author":{"_account_id":19333,"name":"Alexandra Allakhverdieva","email":"aallakhverdieva@mirantis.com","username":"AlexandraAllakhverdieva"},"change_message_id":"09f62c39a1abc64df6c231f6c8844ced9ee6404c","unresolved":false,"context_lines":[{"line_number":146,"context_line":"            return volume_form.volume_id, volume_source"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def create_volume_snapshot(self, volume, snapshot, description\u003d\u0027test\u0027):"},{"line_number":149,"context_line":"        from openstack_dashboard.test.integration_tests.pages.project.compute.volumes.\\"},{"line_number":150,"context_line":"            volumesnapshotspage import VolumesnapshotsPage"},{"line_number":151,"context_line":"        row \u003d self._get_row_with_volume_name(volume)"},{"line_number":152,"context_line":"        snapshot_form \u003d self.volumes_table.create_snapshot(row)"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_8466bfb8","line":149,"in_reply_to":"dae33548_ee304f58","updated":"2016-02-18 15:33:40.000000000","message":"Otherwise error occurs:\nImportError: Failed to import module: openstack_dashboard.test.integration_tests.pages.project.compute.volumes.volumespage","commit_id":"62e547e49689369014e448b51b75544c04487cdd"}],"openstack_dashboard/test/integration_tests/regions/tables.py":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"690b1e25c12cffbe7ec1dc6fff3ce05d51f484ca","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @property"},{"line_number":63,"context_line":"    def _next_locator(self):"},{"line_number":64,"context_line":"        return by.By.CSS_SELECTOR, \u0027a[href^\u003d\"%s\"]\u0027 % self.marker_name"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @property"},{"line_number":67,"context_line":"    def _prev_locator(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_2e8517ce","line":64,"updated":"2016-02-18 14:04:19.000000000","message":"So, here in the fixed string we\u0027d better already have a delimiter symbol.","commit_id":"62e547e49689369014e448b51b75544c04487cdd"},{"author":{"_account_id":19333,"name":"Alexandra Allakhverdieva","email":"aallakhverdieva@mirantis.com","username":"AlexandraAllakhverdieva"},"change_message_id":"09f62c39a1abc64df6c231f6c8844ced9ee6404c","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @property"},{"line_number":63,"context_line":"    def _next_locator(self):"},{"line_number":64,"context_line":"        return by.By.CSS_SELECTOR, \u0027a[href^\u003d\"%s\"]\u0027 % self.marker_name"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @property"},{"line_number":67,"context_line":"    def _prev_locator(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_a41f83b5","line":64,"in_reply_to":"dae33548_2e8517ce","updated":"2016-02-18 15:33:40.000000000","message":"Done","commit_id":"62e547e49689369014e448b51b75544c04487cdd"},{"author":{"_account_id":7227,"name":"Timur Nurlygayanov","email":"tnurlygayanov@mirantis.com","username":"tnurlygayanov"},"change_message_id":"6e1cd8dff7db98e4de39324f36f945377f28a967","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @property"},{"line_number":63,"context_line":"    def _next_locator(self):"},{"line_number":64,"context_line":"        return by.By.CSS_SELECTOR, \u0027a[href^\u003d\"?%s\"]\u0027 % self.marker_name"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @property"},{"line_number":67,"context_line":"    def _prev_locator(self):"}],"source_content_type":"text/x-python","patch_set":11,"id":"7af24918_4e1d7fbc","line":64,"updated":"2016-03-02 15:45:34.000000000","message":"it is better to use \"\".format() function to pass values to the strings, but it is ok to save it as is because looks like it is a common patter for Horizon code base.","commit_id":"192670282e92debf6021f7541fa84d885279057f"},{"author":{"_account_id":20772,"name":"Sergei Chipiga","email":"schipiga@mirantis.com","username":"schipiga"},"change_message_id":"0412fa0484a1c5daba7ab42bbc93064d8431d4be","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def _table_locator(self, table_name):"},{"line_number":60,"context_line":"        return by.By.CSS_SELECTOR, \u0027table#%s\u0027 % table_name"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @property"},{"line_number":63,"context_line":"    def _next_locator(self):"},{"line_number":64,"context_line":"        return by.By.CSS_SELECTOR, \u0027a[href^\u003d\"?%s\"]\u0027 % self.marker_name"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @property"},{"line_number":67,"context_line":"    def _prev_locator(self):"},{"line_number":68,"context_line":"        return by.By.CSS_SELECTOR, \u0027a[href^\u003d\"?%s\"]\u0027 % self.prev_marker_name"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def __init__(self, driver, conf):"},{"line_number":71,"context_line":"        self._default_src_locator \u003d self._table_locator(self.__class__.name)"}],"source_content_type":"text/x-python","patch_set":12,"id":"7af24918_2871c076","line":68,"range":{"start_line":62,"start_character":0,"end_line":68,"end_character":75},"updated":"2016-03-03 13:29:51.000000000","message":"It looks redundant. Why need to create dynamic properties, which calculate always the same result. Seems it\u0027s better:\n\n\n  marker_name \u003d \u0027marker\u0027\n  prev_marker_name \u003d \u0027prev_marker\u0027\n\n  _next_locator \u003d (by.By.CSS_SELECTOR, \u0027a[href^\u003d\"?%s\"]\u0027 % marker_name)\n  _prev_locator \u003d (by.By.CSS_SELECTOR, \u0027a[href^\u003d\"?%s\"]\u0027 % prev_marker_name)","commit_id":"e982937cf41b44d39534635c4772bb1224934ace"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"7e2b5c28b4b4fdc46db17f1ee20918a5a2571a37","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def _table_locator(self, table_name):"},{"line_number":60,"context_line":"        return by.By.CSS_SELECTOR, \u0027table#%s\u0027 % table_name"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @property"},{"line_number":63,"context_line":"    def _next_locator(self):"},{"line_number":64,"context_line":"        return by.By.CSS_SELECTOR, \u0027a[href^\u003d\"?%s\"]\u0027 % self.marker_name"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @property"},{"line_number":67,"context_line":"    def _prev_locator(self):"},{"line_number":68,"context_line":"        return by.By.CSS_SELECTOR, \u0027a[href^\u003d\"?%s\"]\u0027 % self.prev_marker_name"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def __init__(self, driver, conf):"},{"line_number":71,"context_line":"        self._default_src_locator \u003d self._table_locator(self.__class__.name)"}],"source_content_type":"text/x-python","patch_set":12,"id":"7af24918_0355c5f8","line":68,"range":{"start_line":62,"start_character":0,"end_line":68,"end_character":75},"in_reply_to":"7af24918_2871c076","updated":"2016-03-03 13:37:36.000000000","message":"It just looks so. Take a look at:\n\n  \u003e\u003e\u003e class A(object):\n  ...     base \u003d 10\n  ...     derived \u003d \"derived_%s\" % base\n  ...     \n  \u003e\u003e\u003e class B(A):\n  ...     base \u003d 20\n  ...     \n  \u003e\u003e\u003e a \u003d A()\n  \u003e\u003e\u003e a.derived\n  \u0027derived_10\u0027\n  \u003e\u003e\u003e \n  \u003e\u003e\u003e b \u003d B()\n  \u003e\u003e\u003e b.derived\n  \u0027derived_10\u0027\n\nWhile actually I need \u0027derived_20\u0027. @property gives it to me:\n\n  \u003e\u003e\u003e class C(object):\n  ...     base \u003d 10\n  ...     @property\n  ...     def derived(self):\n  ...         return \"derived_%s\" % self.base\n  ...         \n  \u003e\u003e\u003e class D(C):\n  ...     base \u003d 20\n  ...     \n  \u003e\u003e\u003e c \u003d C()\n  \u003e\u003e\u003e c.derived\n  \u0027derived_10\u0027\n  \u003e\u003e\u003e d \u003d D()\n  \u003e\u003e\u003e d.derived\n  \u0027derived_20\u0027","commit_id":"e982937cf41b44d39534635c4772bb1224934ace"}],"openstack_dashboard/test/integration_tests/tests/test_volume_snapshots.py":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"690b1e25c12cffbe7ec1dc6fff3ce05d51f484ca","unresolved":false,"context_lines":[{"line_number":159,"context_line":"    def tearDown(self):"},{"line_number":160,"context_line":"        \"\"\"Clean up: delete volume\"\"\""},{"line_number":161,"context_line":"        volumes_snapshot_page \u003d \\"},{"line_number":162,"context_line":"            self.home_pg.go_to_compute_volumes_volumesnapshotspage()"},{"line_number":163,"context_line":"        volumes_page \u003d volumes_snapshot_page.switch_to_volumes_tab()"},{"line_number":164,"context_line":"        volumes_page.delete_volume(VOLUME_NAME)"},{"line_number":165,"context_line":"        volumes_page.find_message_and_dismiss(messages.SUCCESS)"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_d95437cb","line":162,"updated":"2016-02-18 14:04:19.000000000","message":"Can we directly to volumes_volumespage() here and not call switch_to_volumes_tab()?","commit_id":"62e547e49689369014e448b51b75544c04487cdd"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"9f3ddc3f89d81323b0b2f5b807fd86bc84a8ae07","unresolved":false,"context_lines":[{"line_number":159,"context_line":"    def tearDown(self):"},{"line_number":160,"context_line":"        \"\"\"Clean up: delete volume\"\"\""},{"line_number":161,"context_line":"        volumes_snapshot_page \u003d \\"},{"line_number":162,"context_line":"            self.home_pg.go_to_compute_volumes_volumesnapshotspage()"},{"line_number":163,"context_line":"        volumes_page \u003d volumes_snapshot_page.switch_to_volumes_tab()"},{"line_number":164,"context_line":"        volumes_page.delete_volume(VOLUME_NAME)"},{"line_number":165,"context_line":"        volumes_page.find_message_and_dismiss(messages.SUCCESS)"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_5d948a89","line":162,"in_reply_to":"dae33548_11e953b7","updated":"2016-02-18 16:06:22.000000000","message":"Okay, got it.","commit_id":"62e547e49689369014e448b51b75544c04487cdd"},{"author":{"_account_id":19333,"name":"Alexandra Allakhverdieva","email":"aallakhverdieva@mirantis.com","username":"AlexandraAllakhverdieva"},"change_message_id":"09f62c39a1abc64df6c231f6c8844ced9ee6404c","unresolved":false,"context_lines":[{"line_number":159,"context_line":"    def tearDown(self):"},{"line_number":160,"context_line":"        \"\"\"Clean up: delete volume\"\"\""},{"line_number":161,"context_line":"        volumes_snapshot_page \u003d \\"},{"line_number":162,"context_line":"            self.home_pg.go_to_compute_volumes_volumesnapshotspage()"},{"line_number":163,"context_line":"        volumes_page \u003d volumes_snapshot_page.switch_to_volumes_tab()"},{"line_number":164,"context_line":"        volumes_page.delete_volume(VOLUME_NAME)"},{"line_number":165,"context_line":"        volumes_page.find_message_and_dismiss(messages.SUCCESS)"}],"source_content_type":"text/x-python","patch_set":6,"id":"dae33548_11e953b7","line":162,"in_reply_to":"dae33548_d95437cb","updated":"2016-02-18 15:33:40.000000000","message":"No, we\u0027re automatically navigated to Volume Snapshots tab (as recently opened page/tab in the current session) in case of using \nvolumes_page \u003d self.home_pg.go_to_compute_volumes_volumespage()","commit_id":"62e547e49689369014e448b51b75544c04487cdd"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"85007ae122f4c3e2a1fa68d9eb475430faf96455","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        count \u003d 3"},{"line_number":104,"context_line":"        items_per_page \u003d 1"},{"line_number":105,"context_line":"        snapshot_names \u003d [\"{0}_{1}\".format(self.VOLUME_SNAPSHOT_NAME, i) for i"},{"line_number":106,"context_line":"                          in xrange(count)]"},{"line_number":107,"context_line":"        for name in snapshot_names:"},{"line_number":108,"context_line":"            volumes_snapshot_page \u003d volumes_page.create_volume_snapshot("},{"line_number":109,"context_line":"                self.VOLUME_NAME, name)"}],"source_content_type":"text/x-python","patch_set":11,"id":"7af24918_cbe33304","line":106,"updated":"2016-03-02 17:38:25.000000000","message":"As Richard pointed out in some of previous reviews, it\u0027s better to use range() here - sequence is not that big and we\u0027ll have less difficulties switching to python3 (it doesn\u0027t have xrange).","commit_id":"192670282e92debf6021f7541fa84d885279057f"}]}
