)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"dc1b6b032de06545b3855c7a468139b017f9b4df","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Currently the Project/Admin Instance tables can only page forward."},{"line_number":10,"context_line":"This patch set is to enhance nova api to support paging backward."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Steps to reproduce this issue:"},{"line_number":13,"context_line":"1. In the user settings, set the Item per page as 3."},{"line_number":14,"context_line":"2. On the project -\u003e Instance page, launch 6 instances."},{"line_number":15,"context_line":"3. You should see 3 instances per page in the instance table."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a80dd14_2647ea78","line":12,"updated":"2015-03-18 16:55:24.000000000","message":"don\u0027t need add `Steps to reproduce ...`  -- this is in bug-description","commit_id":"79d0eff9502b76889aaa7d09fbbf8cde821100c6"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"0f24ea2b4872b6b9aefe910ff73bdc511a7bd8a0","unresolved":false,"context_lines":[{"line_number":20,"context_line":"when they are doing paging."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Change-Id: I458e4d54eca1901f4f49db8738b27d755992ade0"},{"line_number":23,"context_line":"Closes-Bug: #1426604"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a80dd14_cd492b34","line":23,"updated":"2015-03-10 20:21:22.000000000","message":"The bug 1274427 already existed for this issue.  We should probably mark 1426604 as a duplicate and call this a fix for 1274427.","commit_id":"79d0eff9502b76889aaa7d09fbbf8cde821100c6"}],"openstack_dashboard/api/nova.py":[{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"4831e0f35d930a762bff130359bd3c0148e1b594","unresolved":false,"context_lines":[{"line_number":626,"context_line":"    if handle_page_back and search_opts.get(\u0027marker\u0027, None) is not None:"},{"line_number":627,"context_line":"        # First page condition"},{"line_number":628,"context_line":"        if search_opts.get(\u0027sort_dir\u0027, \u0027asc\u0027) is \u0027asc\u0027 \\"},{"line_number":629,"context_line":"                and has_more_data is False:"},{"line_number":630,"context_line":"            has_more_data \u003d True"},{"line_number":631,"context_line":"            has_prev_data \u003d False"},{"line_number":632,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_cffe35ae","line":629,"updated":"2015-03-02 09:17:07.000000000","message":"You should use `()` instead `\\`:\nif (search_opts.get(\u0027sort_dir\u0027, \u0027asc\u0027) is \u0027asc\u0027 and\n         has_more_data is False):","commit_id":"154cbfbc74c2404316c3a7996f5b83e3be49fa99"},{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"4831e0f35d930a762bff130359bd3c0148e1b594","unresolved":false,"context_lines":[{"line_number":628,"context_line":"        if search_opts.get(\u0027sort_dir\u0027, \u0027asc\u0027) is \u0027asc\u0027 \\"},{"line_number":629,"context_line":"                and has_more_data is False:"},{"line_number":630,"context_line":"            has_more_data \u003d True"},{"line_number":631,"context_line":"            has_prev_data \u003d False"},{"line_number":632,"context_line":"        else:"},{"line_number":633,"context_line":"            # rest conditions"},{"line_number":634,"context_line":"            has_prev_data \u003d True"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_4f7245ae","line":631,"updated":"2015-03-02 09:17:07.000000000","message":"sorry, I think it\u0027s not need -- because `has_prev_data \u003d False` by default (in 625 line)","commit_id":"154cbfbc74c2404316c3a7996f5b83e3be49fa99"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"07c42926953ca3e4cbfcf7b39f5e06f9670ce26b","unresolved":false,"context_lines":[{"line_number":623,"context_line":""},{"line_number":624,"context_line":"    # handle previous page"},{"line_number":625,"context_line":"    has_prev_data \u003d False"},{"line_number":626,"context_line":"    if handle_page_back and search_opts.get(\u0027marker\u0027, None) is not None:"},{"line_number":627,"context_line":"        # First page condition"},{"line_number":628,"context_line":"        if (search_opts.get(\u0027sort_dir\u0027, \u0027asc\u0027) is \u0027asc\u0027"},{"line_number":629,"context_line":"                and has_more_data is False):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_61eb3578","line":626,"updated":"2015-03-09 14:21:13.000000000","message":"use `if handle_page_back and not search_opts.get(\u0027marker\u0027):` can be more clear:)","commit_id":"09de51c5eee281bc32ee7764698088aae97b600a"},{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"392c50b1a99e2bf31a0f833a63add7784181ddc4","unresolved":false,"context_lines":[{"line_number":623,"context_line":""},{"line_number":624,"context_line":"    # handle previous page"},{"line_number":625,"context_line":"    has_prev_data \u003d False"},{"line_number":626,"context_line":"    if handle_page_back and search_opts.get(\u0027marker\u0027, None) is not None:"},{"line_number":627,"context_line":"        # First page condition"},{"line_number":628,"context_line":"        if (search_opts.get(\u0027sort_dir\u0027, \u0027asc\u0027) is \u0027asc\u0027"},{"line_number":629,"context_line":"                and has_more_data is False):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_42ca861b","line":626,"in_reply_to":"9a80dd14_61eb3578","updated":"2015-03-10 11:33:10.000000000","message":"@lawrancejing, I think you are not right:\n \u003e\u003e\u003e handle_page_back \u003d 1\n \u003e\u003e\u003e search_opts\u003d{\u0027marker\u0027:2}\n \u003e\u003e\u003e if handle_page_back and search_opts.get(\u0027marker\u0027, None) is not None:\n ...   print(\"Yes\")\n ... \n Yes\n \u003e\u003e\u003e \n \u003e\u003e\u003e \n \u003e\u003e\u003e if handle_page_back and not search_opts.get(\u0027marker\u0027):\n ...   print(\"Yes\")\n ... \n \u003e\u003e\u003e\n\n\n http://stackoverflow.com/questions/3901144/difference-between-if-x-and-if-x-is-not-none","commit_id":"09de51c5eee281bc32ee7764698088aae97b600a"},{"author":{"_account_id":14064,"name":"Kahou Lei","email":"kahou82@gmail.com","username":"kahou82"},"change_message_id":"da2ee0f9c4cccc27a56743a249e34007f7919632","unresolved":false,"context_lines":[{"line_number":623,"context_line":""},{"line_number":624,"context_line":"    # handle previous page"},{"line_number":625,"context_line":"    has_prev_data \u003d False"},{"line_number":626,"context_line":"    if handle_page_back and search_opts.get(\u0027marker\u0027, None) is not None:"},{"line_number":627,"context_line":"        # First page condition"},{"line_number":628,"context_line":"        if (search_opts.get(\u0027sort_dir\u0027, \u0027asc\u0027) is \u0027asc\u0027"},{"line_number":629,"context_line":"                and has_more_data is False):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_dafae873","line":626,"in_reply_to":"9a80dd14_61eb3578","updated":"2015-03-10 05:35:58.000000000","message":"Hmm, I am using search_opts.get(\u0027marker\u0027, None) is \"not\" None. So not search_opts.get(\u0027marker\u0027) has inverted meaning?","commit_id":"09de51c5eee281bc32ee7764698088aae97b600a"},{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"392c50b1a99e2bf31a0f833a63add7784181ddc4","unresolved":false,"context_lines":[{"line_number":623,"context_line":""},{"line_number":624,"context_line":"    # handle previous page"},{"line_number":625,"context_line":"    has_prev_data \u003d False"},{"line_number":626,"context_line":"    if handle_page_back and search_opts.get(\u0027marker\u0027, None) is not None:"},{"line_number":627,"context_line":"        # First page condition"},{"line_number":628,"context_line":"        if (search_opts.get(\u0027sort_dir\u0027, \u0027asc\u0027) is \u0027asc\u0027"},{"line_number":629,"context_line":"                and has_more_data is False):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_16144fe7","line":626,"in_reply_to":"9a80dd14_dafae873","updated":"2015-03-10 11:33:10.000000000","message":"\u0027marker\u0027 can be \u0027\u0027 ? \nhttp://stackoverflow.com/questions/3901144/difference-between-if-x-and-if-x-is-not-none","commit_id":"09de51c5eee281bc32ee7764698088aae97b600a"}],"openstack_dashboard/dashboards/admin/instances/views.py":[{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"005961042c42b92bb9c5e3b93abe9b05e6461840","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                project_tables.AdminInstancesTable._meta.pagination_param,"},{"line_number":88,"context_line":"                None)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        search_opts \u003d self.get_filters({\u0027marker\u0027: marker, \u0027paginate\u0027: True,"},{"line_number":91,"context_line":"                                        \u0027sort_dir\u0027: sort_dir,"},{"line_number":92,"context_line":"                                        \u0027sort_key\u0027: \u0027created_at\u0027})"},{"line_number":93,"context_line":"        # Gather our tenants to correlate against IDs"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_b067f9e9","line":90,"updated":"2015-03-04 09:49:31.000000000","message":"(nit) sorry, I think it\u0027s should be:\n{\u0027marker\u0027: marker,\n \u0027paginate\u0027: True,\n ......}","commit_id":"4797ed5add30fd02d0bdac30bc61a5074f4a4a2f"}],"openstack_dashboard/dashboards/project/instances/views.py":[{"author":{"_account_id":4428,"name":"Liyingjun","email":"yinjalee@163.com","username":"liyingjun"},"change_message_id":"a1109bf62e824e461384ee8a045b57b9d00a8927","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def has_more_data(self, table):"},{"line_number":61,"context_line":"        return self._more"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def get_data(self):"},{"line_number":64,"context_line":"        prev_marker \u003d self.request.GET.get("},{"line_number":65,"context_line":"            project_tables.InstancesTable._meta.prev_pagination_param, None)"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a80dd14_0ca109f8","line":63,"updated":"2015-03-19 07:28:51.000000000","message":"I\u0027m wondering if it\u0027s possible to merge this get_data with the same method in admin/instances/views.py. There are lots of duplicated codes..","commit_id":"9d80cd9cdb878479842bfc82c01b145b09cbb0ca"},{"author":{"_account_id":14064,"name":"Kahou Lei","email":"kahou82@gmail.com","username":"kahou82"},"change_message_id":"5582914360883d762ef2658126b892f28ce7b3d9","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def has_more_data(self, table):"},{"line_number":61,"context_line":"        return self._more"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def get_data(self):"},{"line_number":64,"context_line":"        prev_marker \u003d self.request.GET.get("},{"line_number":65,"context_line":"            project_tables.InstancesTable._meta.prev_pagination_param, None)"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a80dd14_2b605834","line":63,"in_reply_to":"9a80dd14_0ca109f8","updated":"2015-03-19 16:35:04.000000000","message":"Yes understood but the patch set will be too big. \n\nCan we do the refactor in another patchset?","commit_id":"9d80cd9cdb878479842bfc82c01b145b09cbb0ca"},{"author":{"_account_id":4428,"name":"Liyingjun","email":"yinjalee@163.com","username":"liyingjun"},"change_message_id":"16351b453d9feac44cebbf2da9f897e02c650268","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def has_more_data(self, table):"},{"line_number":61,"context_line":"        return self._more"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def get_data(self):"},{"line_number":64,"context_line":"        prev_marker \u003d self.request.GET.get("},{"line_number":65,"context_line":"            project_tables.InstancesTable._meta.prev_pagination_param, None)"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a80dd14_82cd945f","line":63,"in_reply_to":"9a80dd14_2b605834","updated":"2015-03-20 01:02:32.000000000","message":"OK for me","commit_id":"9d80cd9cdb878479842bfc82c01b145b09cbb0ca"}]}
