)]}'
{"openstack_dashboard/api/glance.py":[{"author":{"_account_id":11902,"name":"Randy Bertram","email":"rbertram@us.ibm.com","username":"rbertram"},"change_message_id":"84a7fea12a0120b73375ebe115fa00470bf77298","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    return image"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def image_list_detailed(request, marker\u003dNone, sort_dir\u003d\u0027asc\u0027,"},{"line_number":63,"context_line":"                        sort_key\u003d\u0027name\u0027, filters\u003dNone, paginate\u003dFalse):"},{"line_number":64,"context_line":"    limit \u003d getattr(settings, \u0027API_RESULT_LIMIT\u0027, 1000)"},{"line_number":65,"context_line":"    page_size \u003d utils.get_page_size(request)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_a6d1fc58","line":62,"updated":"2014-11-21 17:36:43.000000000","message":"When I look at this in Project Images views, the sorting is correct. But when I look in Admin Images view, the sorting is descending - i.e. z is at the top and a at the bottom for admins.\n\nI suspect that in the admin view, someone is overriding sort_dir in the call t this method? I did not debug any further, but let me know if you need me to help reproduce this and debug it.","commit_id":"2a7618b12cc068b1a5a2898419dd5909949d4d77"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"b39dcbd56fde04c03b3d994ad8011a2460bd83ee","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def image_list_detailed(request, marker\u003dNone, sort_dir\u003d\u0027asc\u0027,"},{"line_number":63,"context_line":"                        sort_key\u003d\u0027name\u0027, filters\u003dNone, paginate\u003dFalse,"},{"line_number":64,"context_line":"                        reversed_order\u003dFalse):"},{"line_number":65,"context_line":"    limit \u003d getattr(settings, \u0027API_RESULT_LIMIT\u0027, 1000)"},{"line_number":66,"context_line":"    page_size \u003d utils.get_page_size(request)"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_7c472578","line":64,"updated":"2014-11-26 17:51:13.000000000","message":"I think a docstring is called for here to describe the difference between:\n    sort_dir\u003d\u0027asc\u0027 + reversed_order\u003dTrue\nand\n    sort_dir\u003d\u0027desc\u0027 + reversed_order\u003dFalse","commit_id":"97b22c85135968901aa767be57a8ed2a59aaac76"},{"author":{"_account_id":7012,"name":"Brianna Poulos","email":"Brianna.Poulos@jhuapl.edu","username":"brianna-poulos"},"change_message_id":"e699c02ba98330c63403beab540120996e0a1fdb","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    page, a request with the reverse entries order had to be made to Glance,"},{"line_number":71,"context_line":"    using the first object id on current page as the marker - restoring"},{"line_number":72,"context_line":"    the original items ordering before sending them back to the UI."},{"line_number":73,"context_line":"    \"\"\""},{"line_number":74,"context_line":"    limit \u003d getattr(settings, \u0027API_RESULT_LIMIT\u0027, 1000)"},{"line_number":75,"context_line":"    page_size \u003d utils.get_page_size(request)"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_cc31c7a3","line":73,"updated":"2014-12-02 15:32:55.000000000","message":"although the explanation is helpful, I think it would be even more clear if the individual parameters (or at least sort_dir and reversed_order) were explained as follows:\n\n:param sort_dir: here goes the sort_dir explanation\n:param reversed_order: here goes the reversed_order explanation","commit_id":"9de6acdd8b1e16d8aeeb5c6085034cadf3ae71a5"},{"author":{"_account_id":7187,"name":"Janet Yu","email":"jwy@cs.stanford.edu","username":"jwy"},"change_message_id":"0dbcf300a81b94dc1cdd121a937ac8828cab88d8","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    .. param:: sort_key"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        The name of key by by which the resulting image list throughout all"},{"line_number":101,"context_line":"        pages (if pagination is enabled) will be sorted. Defaults to \u0027name\u0027."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    .. param:: filters"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a4dcd0f_4948795c","line":100,"updated":"2015-08-12 06:01:45.000000000","message":"Nit: Remove duplicate \"by\"","commit_id":"4580d470aac80d29cff31117458f6a05b91708f0"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"5da9074de3c7c13d918826f13729e54155dfb025","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        return im.visibility \u003d\u003d \u0027public\u0027"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"def image_list_detailed(request, marker\u003dNone, sort_dir\u003d\u0027asc\u0027,"},{"line_number":92,"context_line":"                        sort_key\u003d\u0027name\u0027, filters\u003dNone, paginate\u003dFalse,"},{"line_number":93,"context_line":"                        reversed_order\u003dFalse):"},{"line_number":94,"context_line":"    \"\"\"Thin layer above glanceclient, for handling pagination issues."}],"source_content_type":"text/x-python","patch_set":18,"id":"9a68dd71_00c60e9a","line":91,"range":{"start_line":91,"start_character":56,"end_line":91,"end_character":59},"updated":"2016-01-22 05:43:15.000000000","message":"not sure if we should the default, any custom code that uses and not pass sort_dir will have their data reversed.","commit_id":"b8ced88586e63c36d96c958d46b962180240a9d6"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"5da9074de3c7c13d918826f13729e54155dfb025","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"def image_list_detailed(request, marker\u003dNone, sort_dir\u003d\u0027asc\u0027,"},{"line_number":92,"context_line":"                        sort_key\u003d\u0027name\u0027, filters\u003dNone, paginate\u003dFalse,"},{"line_number":93,"context_line":"                        reversed_order\u003dFalse):"},{"line_number":94,"context_line":"    \"\"\"Thin layer above glanceclient, for handling pagination issues."},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"9a68dd71_c0bf96f9","line":92,"range":{"start_line":92,"start_character":34,"end_line":92,"end_character":38},"updated":"2016-01-22 05:43:15.000000000","message":"defaulting to \u0027created_at\u0027 doesn\u0027t make much sense, agree that it should have been \u0027name\u0027.   But this is changing the behavior of the method..","commit_id":"b8ced88586e63c36d96c958d46b962180240a9d6"}],"openstack_dashboard/dashboards/admin/images/views.py":[{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"b39dcbd56fde04c03b3d994ad8011a2460bd83ee","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            project_tables.AdminImagesTable._meta.prev_pagination_param, None)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"        sort_dirs \u003d {False: self.sort_dir,"},{"line_number":60,"context_line":"                     True: \u0027desc\u0027 if self.sort_dir \u003d\u003d \u0027asc\u0027 else \u0027asc\u0027}"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        reversed_order \u003d False"},{"line_number":63,"context_line":"        if prev_marker is not None:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_bc834da8","line":60,"updated":"2014-11-26 17:51:13.000000000","message":"The above line is really quite confusing to me.  Perhaps a comment is in order?","commit_id":"97b22c85135968901aa767be57a8ed2a59aaac76"}],"openstack_dashboard/dashboards/project/images/images/tables.py":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"88753df2c77996a4152f9ff558f9cc83bb91c4e0","unresolved":false,"context_lines":[{"line_number":220,"context_line":"        return tenants"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"def get_image_categories(im, user_tenant_id):"},{"line_number":224,"context_line":"    def is_public(im):"},{"line_number":225,"context_line":"        is_public_v1 \u003d getattr(im, \u0027is_public\u0027, None)"},{"line_number":226,"context_line":"        if is_public_v1 is not None:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a710552_287d45b1","line":223,"updated":"2015-12-16 00:56:08.000000000","message":"Since a stated purpose in the commit message is to help get ready for glance v1 / v2 migration, it would be better if is_public was available in glance.py for reuse.  The migration patch started (which is now woefully out of date started this) [0] and now we also have a form of it landed in the REST API [1].  If nothing else, perhaps the code in the rest API should be place in api/glance.py and used both here and in the rest API for later migration to something more sophisticated like is done in [0] below.\n\n[0] https://review.openstack.org/#/c/150084/4/openstack_dashboard/api/glance.py\n\nLine 57 - 98.\n\n[1] \nhttps://github.com/openstack/horizon/blob/master/openstack_dashboard/api/rest/glance.py#L300","commit_id":"85a64c0c4fc48c1d284d39b8f5aaeff225c2f672"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"15be8bf65e6d35ab3dd7915ff6aa4ea57260293f","unresolved":false,"context_lines":[{"line_number":220,"context_line":"        return tenants"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"def get_image_categories(im, user_tenant_id):"},{"line_number":224,"context_line":"    def is_public(im):"},{"line_number":225,"context_line":"        is_public_v1 \u003d getattr(im, \u0027is_public\u0027, None)"},{"line_number":226,"context_line":"        if is_public_v1 is not None:"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a7b0d38_eeed5f26","line":223,"in_reply_to":"5a710552_287d45b1","updated":"2015-12-22 15:11:09.000000000","message":"Done\n\nBtw, the more recent patch for v1-\u003ev2 Glance transitioning I\u0027m aware of is https://review.openstack.org/#/c/249531/","commit_id":"85a64c0c4fc48c1d284d39b8f5aaeff225c2f672"}]}
