)]}'
{"openstack_dashboard/static_settings.py":[{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5763018f8c4cd0f998184f309d7133418467d13e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"def get_staticfiles_dirs(webroot\u003d\u0027/\u0027, lib_url\u003d\u0027horizon/lib/\u0027):"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    if not lib_url.endswith(\u0027/\u0027):"},{"line_number":30,"context_line":"        lib_url \u003d lib_url + \u0027/\u0027"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    # Define any path overrides here"},{"line_number":33,"context_line":"    # If a package path is not set here it will default to lib_url+package name"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_5f0d568d","line":30,"updated":"2015-06-25 02:42:41.000000000","message":"NIT: +\u003d","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"bc0372e1fe302b46de0c1c743e42b73d4230ad6b","unresolved":false,"context_lines":[{"line_number":27,"context_line":"def get_staticfiles_dirs(webroot\u003d\u0027/\u0027, lib_url\u003d\u0027horizon/lib/\u0027):"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    if not lib_url.endswith(\u0027/\u0027):"},{"line_number":30,"context_line":"        lib_url \u003d lib_url + \u0027/\u0027"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    # Define any path overrides here"},{"line_number":33,"context_line":"    # If a package path is not set here it will default to lib_url+package name"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_2e1b6574","line":30,"in_reply_to":"fa32b979_5f0d568d","updated":"2015-06-25 15:25:51.000000000","message":"Done","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5763018f8c4cd0f998184f309d7133418467d13e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        lib_url \u003d lib_url + \u0027/\u0027"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    # Define any path overrides here"},{"line_number":33,"context_line":"    # If a package path is not set here it will default to lib_url+package name"},{"line_number":34,"context_line":"    paths \u003d {"},{"line_number":35,"context_line":"        \u0027angular_bootstrap\u0027: lib_url + \u0027angular\u0027,"},{"line_number":36,"context_line":"        \u0027angular_lrdragndrop\u0027: lib_url + \u0027angular\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_3f8172c3","line":33,"updated":"2015-06-25 02:42:41.000000000","message":"This should also accept from a config variable (or something) so that people can extend it.  Could be moved to a global, so someone could just add to it externally.  I\u0027m thinking\n\n(in some other file, like overrides.py)\nfrom openstack_dashboard import static_settings\nstatic_settings.known_paths.extend({\n    \u0027my\u0027: \u0027additions\u0027,\n    \u0027go\u0027: \u0027here\u0027,\n})","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5763018f8c4cd0f998184f309d7133418467d13e","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    # Dynamically grab the packages that are available within xstatic/pkg"},{"line_number":50,"context_line":"    xstatic_packages \u003d \\"},{"line_number":51,"context_line":"        [os.path.basename(x) for x in glob.glob(pkg.__path__[0] + \u0027/*\u0027)]"},{"line_number":52,"context_line":"    pkg_lib \u003d __import__(\u0027xstatic.pkg\u0027, fromlist\u003dxstatic_packages)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    STATICFILES_DIRS \u003d []"},{"line_number":55,"context_line":"    for package in xstatic_packages:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_ff8b0ac1","line":52,"updated":"2015-06-25 02:42:41.000000000","message":"if I recall correctly (50/50 shot here) there\u0027s a better way to import things.  I\u0027ll check, but it may be importlib or something like that.\n\nThat\u0027s really slick though.  Good thinking!","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"bc0372e1fe302b46de0c1c743e42b73d4230ad6b","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    # Dynamically grab the packages that are available within xstatic/pkg"},{"line_number":50,"context_line":"    xstatic_packages \u003d \\"},{"line_number":51,"context_line":"        [os.path.basename(x) for x in glob.glob(pkg.__path__[0] + \u0027/*\u0027)]"},{"line_number":52,"context_line":"    pkg_lib \u003d __import__(\u0027xstatic.pkg\u0027, fromlist\u003dxstatic_packages)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    STATICFILES_DIRS \u003d []"},{"line_number":55,"context_line":"    for package in xstatic_packages:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_a9ce8f2a","line":52,"in_reply_to":"fa32b979_82d5c11c","updated":"2015-06-25 15:25:51.000000000","message":"Not sure ... let me look into that","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"fcdd0eace994ccd7003d2e087651b7ba37628a57","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    # Dynamically grab the packages that are available within xstatic/pkg"},{"line_number":50,"context_line":"    xstatic_packages \u003d \\"},{"line_number":51,"context_line":"        [os.path.basename(x) for x in glob.glob(pkg.__path__[0] + \u0027/*\u0027)]"},{"line_number":52,"context_line":"    pkg_lib \u003d __import__(\u0027xstatic.pkg\u0027, fromlist\u003dxstatic_packages)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    STATICFILES_DIRS \u003d []"},{"line_number":55,"context_line":"    for package in xstatic_packages:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_82d5c11c","line":52,"in_reply_to":"fa32b979_ff8b0ac1","updated":"2015-06-25 02:49:24.000000000","message":"Nope.  I was wrong.  __import__ is the preferred method prior to python3.\n\nWhich reminds me, does this work for python3?  I\u0027m concerned that it doesn\u0027t, but I really don\u0027t know.\n\nI see that the tox-tests are failing, which seems to indicate there\u0027s an issue, but I also haven\u0027t looked at the logs.","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5763018f8c4cd0f998184f309d7133418467d13e","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        [os.path.basename(x) for x in glob.glob(pkg.__path__[0] + \u0027/*\u0027)]"},{"line_number":52,"context_line":"    pkg_lib \u003d __import__(\u0027xstatic.pkg\u0027, fromlist\u003dxstatic_packages)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    STATICFILES_DIRS \u003d []"},{"line_number":55,"context_line":"    for package in xstatic_packages:"},{"line_number":56,"context_line":"        this_package \u003d xstatic.main.XStatic("},{"line_number":57,"context_line":"            getattr(pkg_lib, package),"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_62219d9d","line":54,"updated":"2015-06-25 02:42:41.000000000","message":"NIT: This really shouldn\u0027t be caps.  I know it was in the previous code, but it\u0027s not a constant.","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"bc0372e1fe302b46de0c1c743e42b73d4230ad6b","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        [os.path.basename(x) for x in glob.glob(pkg.__path__[0] + \u0027/*\u0027)]"},{"line_number":52,"context_line":"    pkg_lib \u003d __import__(\u0027xstatic.pkg\u0027, fromlist\u003dxstatic_packages)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    STATICFILES_DIRS \u003d []"},{"line_number":55,"context_line":"    for package in xstatic_packages:"},{"line_number":56,"context_line":"        this_package \u003d xstatic.main.XStatic("},{"line_number":57,"context_line":"            getattr(pkg_lib, package),"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_c9a51303","line":54,"in_reply_to":"fa32b979_62219d9d","updated":"2015-06-25 15:25:51.000000000","message":"Done","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5763018f8c4cd0f998184f309d7133418467d13e","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                    not this_package.version.startswith(\u00271.10.\u0027):"},{"line_number":67,"context_line":"                paths[package] \u003d lib_url + \u0027jquery-ui/ui\u0027"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"            paths[package] \u003d lib_url + package"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        STATICFILES_DIRS.append("},{"line_number":72,"context_line":"            (paths[package], this_package.base_dir),"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_22115552","line":69,"updated":"2015-06-25 02:42:41.000000000","message":"I suspect this should be in an \"else clause\" to the jquery_ui if.  Don\u0027t want to add it twice.  Or perhaps I\u0027m missing something.","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"bc0372e1fe302b46de0c1c743e42b73d4230ad6b","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                    not this_package.version.startswith(\u00271.10.\u0027):"},{"line_number":67,"context_line":"                paths[package] \u003d lib_url + \u0027jquery-ui/ui\u0027"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"            paths[package] \u003d lib_url + package"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        STATICFILES_DIRS.append("},{"line_number":72,"context_line":"            (paths[package], this_package.base_dir),"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_29183f1d","line":69,"in_reply_to":"fa32b979_22115552","updated":"2015-06-25 15:25:51.000000000","message":"Good Catch","commit_id":"0ab7bb2eaae2a5caa56bc491d429caebaf102e90"},{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"c97d21da63e8fccc416b6640c2f99d5c305a2423","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"def get_staticfiles_dirs(webroot\u003d\u0027/\u0027, lib_url\u003d\u0027horizon/lib/\u0027,"},{"line_number":28,"context_line":"                         path_overrides\u003d{}):"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    if not lib_url.endswith(\u0027/\u0027):"},{"line_number":31,"context_line":"        lib_url +\u003d \u0027/\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_9ff40cd0","line":28,"updated":"2015-06-25 23:07:11.000000000","message":"nit: I know, that path overrides is not used anywhere, but just to prevent any future errors I\u0027d recomend to replace default value with None.\nUsing mutable objects as default values for kwargs is a well-known anti-pattern.","commit_id":"fe9f3486a1c7b19eca21641c1bfa8d40471fa69c"},{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"c97d21da63e8fccc416b6640c2f99d5c305a2423","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    # Dynamically grab the packages that are available within xstatic/pkg"},{"line_number":53,"context_line":"    xstatic_packages \u003d \\"},{"line_number":54,"context_line":"        [os.path.basename(x) for x in glob.glob(pkg.__path__[0] + \u0027/*\u0027)]"},{"line_number":55,"context_line":"    pkg_lib \u003d __import__(\u0027xstatic.pkg\u0027, fromlist\u003dxstatic_packages)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    staticfiles_dirs \u003d []"},{"line_number":58,"context_line":"    for package in xstatic_packages:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_7f93485d","line":55,"updated":"2015-06-25 23:07:11.000000000","message":"I\u0027d suggest we use a importlib.import_module, as per python docs: https://docs.python.org/3/library/functions.html#__import__\n\nDirect use of __import__() is also discouraged in favor of importlib.import_module(). which was backported to py2.7","commit_id":"fe9f3486a1c7b19eca21641c1bfa8d40471fa69c"},{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"f505b944ccec976bc61ebbc5c6b2bff10d9e3057","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        \u0027termjs\u0027: lib_url,"},{"line_number":50,"context_line":"    }"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    if isinstance(path_overrides, dict):"},{"line_number":53,"context_line":"        paths.update(path_overrides)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    # Dynamically grab the packages that are available within xstatic/pkg"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa32b979_4b48f48a","line":52,"updated":"2015-06-26 10:05:44.000000000","message":"you could use \n\nif path_overrides is None:\n  path_overrides \u003d {}\n\nor\n\n path_overrides \u003d path_overrides or {}\n\nbut feel free to ignore this comment, your approach is completely valid.","commit_id":"7403ebf2962663bd32110fb495885d0f4bcec8ef"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"dcb3a65dad711bed17aafa5d9c0ffe8c60d7de0d","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        \u0027termjs\u0027: lib_url,"},{"line_number":50,"context_line":"    }"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    if isinstance(path_overrides, dict):"},{"line_number":53,"context_line":"        paths.update(path_overrides)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    # Dynamically grab the packages that are available within xstatic/pkg"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa32b979_159e7463","line":52,"in_reply_to":"fa32b979_4b48f48a","updated":"2015-06-26 18:05:10.000000000","message":"Done","commit_id":"7403ebf2962663bd32110fb495885d0f4bcec8ef"},{"author":{"_account_id":15168,"name":"Kirill Zaitsev","email":"k.zaitsev@me.com","username":"kzaitsev"},"change_message_id":"2d37b9df46ac36ad6badd8a04919e23867aec17e","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    staticfiles_dirs \u003d []"},{"line_number":61,"context_line":"    for package in xstatic_packages:"},{"line_number":62,"context_line":"        pkg_lib \u003d importlib.import_module(\u0027xstatic.pkg.\u0027 + package)"},{"line_number":63,"context_line":"        this_package \u003d XStatic(pkg_lib, root_url\u003dwebroot)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        if package not in paths:"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_78180976","line":62,"updated":"2015-07-06 20:39:42.000000000","message":"Is it a good idea to catch ImportError here? just in case?\n\nAlso is it a good idea to log which packages were actually imported? In case something goes wrong it might be hard to debug which package was not imported otherwise.","commit_id":"b11177a6f194fa8c757a7c3da6fa2539c080c033"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ac7291d3a57bb9f2ddb39703b107f1789e1160a1","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    # Define any path overrides here"},{"line_number":36,"context_line":"    # If a package path is not set here it will default to lib_url+package name"},{"line_number":37,"context_line":"    paths \u003d {"},{"line_number":38,"context_line":"        \u0027angular_bootstrap\u0027: lib_url + \u0027/angular\u0027,"},{"line_number":39,"context_line":"        \u0027angular_lrdragndrop\u0027: lib_url + \u0027/angular\u0027,"},{"line_number":40,"context_line":"        \u0027angular_smart_table\u0027: lib_url + \u0027/angular\u0027,"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_6d34c5dd","line":37,"updated":"2015-07-07 00:35:43.000000000","message":"we can probably remove a lot of these overrides, just need to update _script, _conf, and jasmine.html, going forward a bit","commit_id":"5c7af67bd545e3b21410cf18a6dc83a71940cf5b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ac7291d3a57bb9f2ddb39703b107f1789e1160a1","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"            # Newer versions dropped the directory, add it to keep the path the"},{"line_number":69,"context_line":"            # same."},{"line_number":70,"context_line":"            if package \u003d\u003d \u0027jquery_ui\u0027 and \\"},{"line_number":71,"context_line":"                    not this_package.version.startswith(\u00271.10.\u0027):"},{"line_number":72,"context_line":"                paths[package] \u003d lib_url + \u0027/jquery-ui/ui\u0027"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_2d26bdba","line":70,"updated":"2015-07-07 00:35:43.000000000","message":"not even sure if we use jquery_ui.....","commit_id":"5c7af67bd545e3b21410cf18a6dc83a71940cf5b"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"1c5532ad50a995275d9f140ae3becc48b57d05e8","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"            # Newer versions dropped the directory, add it to keep the path the"},{"line_number":69,"context_line":"            # same."},{"line_number":70,"context_line":"            if package \u003d\u003d \u0027jquery_ui\u0027 and \\"},{"line_number":71,"context_line":"                    not this_package.version.startswith(\u00271.10.\u0027):"},{"line_number":72,"context_line":"                paths[package] \u003d lib_url + \u0027/jquery-ui/ui\u0027"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_4062d1d9","line":70,"in_reply_to":"ba3cc151_2d26bdba","updated":"2015-07-07 11:42:12.000000000","message":"I looked into this when I first started, and I *think* its used for something small like the datepickers.","commit_id":"5c7af67bd545e3b21410cf18a6dc83a71940cf5b"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"039143774c931c2aef675caaa264e9d0f589cae4","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"            # Newer versions dropped the directory, add it to keep the path the"},{"line_number":69,"context_line":"            # same."},{"line_number":70,"context_line":"            if package \u003d\u003d \u0027jquery_ui\u0027 and \\"},{"line_number":71,"context_line":"                    not this_package.version.startswith(\u00271.10.\u0027):"},{"line_number":72,"context_line":"                paths[package] \u003d lib_url + \u0027/jquery-ui/ui\u0027"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_99c10f32","line":70,"in_reply_to":"ba3cc151_4062d1d9","updated":"2015-07-08 01:40:17.000000000","message":"there is a calendar thing on the overview pages, check there.  let\u0027s figure out what is needed and not before merging ;)","commit_id":"5c7af67bd545e3b21410cf18a6dc83a71940cf5b"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"bad8a0d22fe32adb9ee23d44093edf9da718e4f2","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"            # Newer versions dropped the directory, add it to keep the path the"},{"line_number":69,"context_line":"            # same."},{"line_number":70,"context_line":"            if package \u003d\u003d \u0027jquery_ui\u0027 and \\"},{"line_number":71,"context_line":"                    not this_package.version.startswith(\u00271.10.\u0027):"},{"line_number":72,"context_line":"                paths[package] \u003d lib_url + \u0027/jquery-ui/ui\u0027"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_853d16df","line":70,"in_reply_to":"ba3cc151_99c10f32","updated":"2015-07-08 09:39:37.000000000","message":"Its still included in this file; I wasn\u0027t suggesting we remove it.","commit_id":"5c7af67bd545e3b21410cf18a6dc83a71940cf5b"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"039143774c931c2aef675caaa264e9d0f589cae4","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        staticfiles_dirs.append("},{"line_number":75,"context_line":"            (paths[package], this_package.base_dir)"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    return staticfiles_dirs"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_b971730e","line":77,"updated":"2015-07-08 01:40:17.000000000","message":"this file caused me a good deal of pain this week and lost hours for our deployment.  I would ask that we have some log.Warn or log.error when the staticfiles_dirs is empty that we are returning. \n\nthis will help at least point people in the correct direction","commit_id":"5c7af67bd545e3b21410cf18a6dc83a71940cf5b"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"bad8a0d22fe32adb9ee23d44093edf9da718e4f2","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        staticfiles_dirs.append("},{"line_number":75,"context_line":"            (paths[package], this_package.base_dir)"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    return staticfiles_dirs"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_c5379efd","line":77,"in_reply_to":"ba3cc151_b971730e","updated":"2015-07-08 09:39:37.000000000","message":"This seems like a pretty reasonable request.","commit_id":"5c7af67bd545e3b21410cf18a6dc83a71940cf5b"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"57a2a2650d3451be9f03b6ff7f605ce26b879882","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        staticfiles_dirs.append("},{"line_number":75,"context_line":"            (paths[package], this_package.base_dir)"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    return staticfiles_dirs"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_37cd5885","line":77,"in_reply_to":"ba3cc151_c5379efd","updated":"2015-07-08 11:49:21.000000000","message":"this file has seen a fair bit of recent changes this week, and it could be that this situation is no longer all that possible.\n\nI saw this review go by, and the pain of my config issues of this week were fresh in my mind (thus the hurried request).\n\nare there tests for this method?  that might also help enforce that stuff still works fine in a variety of situations.","commit_id":"5c7af67bd545e3b21410cf18a6dc83a71940cf5b"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"a701a3f946aaa03a2ce6bd8abfb5d2b7bc215812","unresolved":false,"context_lines":[{"line_number":28,"context_line":"def get_staticfiles_dirs(webroot\u003d\u0027/\u0027, lib_url\u003d\u0027horizon/lib\u0027,"},{"line_number":29,"context_line":"                         path_overrides\u003dNone):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    # Django 1.4 does not like a trailing slash on static dirs"},{"line_number":32,"context_line":"    if lib_url.endswith(\u0027/\u0027):"},{"line_number":33,"context_line":"        lib_url \u003d lib_url[:-1]"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"9a41bdd9_49b9ab14","line":31,"updated":"2015-07-17 21:29:50.000000000","message":"django 1.4 support is gone / going away very soon.  not a big need for this","commit_id":"4897d7e19f64bd9dc908445108c4b93183057315"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"a701a3f946aaa03a2ce6bd8abfb5d2b7bc215812","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    staticfiles_dirs \u003d []"},{"line_number":61,"context_line":"    for package in xstatic_packages:"},{"line_number":62,"context_line":"        pkg_lib \u003d importlib.import_module(\u0027xstatic.pkg.\u0027 + package)"},{"line_number":63,"context_line":"        this_package \u003d XStatic(pkg_lib, root_url\u003dwebroot)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        if package not in paths:"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a41bdd9_891b331c","line":62,"updated":"2015-07-17 21:29:50.000000000","message":"this section seems like a try / catch might be in order?   there is no rule that some xstatic package would break this behavior sometime in the future.","commit_id":"4897d7e19f64bd9dc908445108c4b93183057315"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"b95b4e1156fb4f9b8de92e3f42a416eb16bb3e6c","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    staticfiles_dirs \u003d []"},{"line_number":61,"context_line":"    for package in xstatic_packages:"},{"line_number":62,"context_line":"        pkg_lib \u003d importlib.import_module(\u0027xstatic.pkg.\u0027 + package)"},{"line_number":63,"context_line":"        this_package \u003d XStatic(pkg_lib, root_url\u003dwebroot)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        if package not in paths:"}],"source_content_type":"text/x-python","patch_set":15,"id":"3a50d1a3_c940f836","line":62,"updated":"2015-07-22 18:37:04.000000000","message":"this part loads any xstatic package, right???  seems like we need to limit the packages for concerns on malicious / bad / whatever packages","commit_id":"f0ca7d0b4768f3f32fff26afa1da040647e4b3b9"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"e2b88f4b07912de40913515544e55027277ea09f","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    # Define any path overrides here"},{"line_number":38,"context_line":"    # If a package path is not set here it will default to lib_url+package name"},{"line_number":39,"context_line":"    paths \u003d {"},{"line_number":40,"context_line":"        \u0027angular_bootstrap\u0027: lib_url + \u0027/angular\u0027,"},{"line_number":41,"context_line":"        \u0027angular_lrdragndrop\u0027: lib_url + \u0027/angular\u0027,"},{"line_number":42,"context_line":"        \u0027angular_smart_table\u0027: lib_url + \u0027/angular\u0027,"}],"source_content_type":"text/x-python","patch_set":18,"id":"dab17558_9a58ac58","line":39,"updated":"2016-05-06 02:00:18.000000000","message":"I think this whole structure should go away - there\u0027s no reason they shouldn\u0027t all be in lib_url+package name.","commit_id":"4c4ab71a7a35e600b960c3d74f18dc538cf7d94d"}],"openstack_dashboard/test/tests/static.py":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"e2d5f9ee075faa08c4fe4bea5b16371a91305bbb","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from openstack_dashboard.test import helpers as test"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class StaticTests(test.TestCase):"},{"line_number":22,"context_line":"    def test_static_file(self):"},{"line_number":23,"context_line":"        result \u003d finders.find(\u0027horizon/lib/jquery/jquery.js\u0027)"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a41bdd9_0c9e51b8","line":20,"updated":"2015-07-17 21:56:29.000000000","message":"I think the testing is a bit sparse. Might need to mock the file system, then use get_staticfiles_dirs to do test. Another test to show that lib_url fails, a test to show that path_overrides work as intended, etc....","commit_id":"4897d7e19f64bd9dc908445108c4b93183057315"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"a701a3f946aaa03a2ce6bd8abfb5d2b7bc215812","unresolved":false,"context_lines":[{"line_number":21,"context_line":"class StaticTests(test.TestCase):"},{"line_number":22,"context_line":"    def test_static_file(self):"},{"line_number":23,"context_line":"        result \u003d finders.find(\u0027horizon/lib/jquery/jquery.js\u0027)"},{"line_number":24,"context_line":"        self.assertTrue(result is not None)"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a41bdd9_69e7cf12","line":24,"updated":"2015-07-17 21:29:50.000000000","message":"I think a more direct call of the api might be better?","commit_id":"4897d7e19f64bd9dc908445108c4b93183057315"}]}
