)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"3f1687790f5f3f8a9a4472f85fcfe351c114d331","unresolved":false,"context_lines":[{"line_number":54,"context_line":"  used by the Angular launch instance"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"To test the override:"},{"line_number":57,"context_line":"- Set the DEFAULT_THEME\u003d\u0027material\u0027"},{"line_number":58,"context_line":"- Create /horizon/openstack_dashboard/themes/material/\\"},{"line_number":59,"context_line":"static/templates/framework/widgets/help-panel/help-panel.html"},{"line_number":60,"context_line":"- Set the content to \u003ch1\u003eTEST\u003c/h1\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"7aa08908_dd34344b","line":57,"range":{"start_line":57,"start_character":2,"end_line":57,"end_character":34},"updated":"2016-06-08 13:57:12.000000000","message":"This isn\u0027t exactly necessary, right?  You can just as a user change the theme in-browser.","commit_id":"700e74921df610eeb810eb8ff6819cafe5f9d82a"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"3f1687790f5f3f8a9a4472f85fcfe351c114d331","unresolved":false,"context_lines":[{"line_number":59,"context_line":"static/templates/framework/widgets/help-panel/help-panel.html"},{"line_number":60,"context_line":"- Set the content to \u003ch1\u003eTEST\u003c/h1\u003e"},{"line_number":61,"context_line":"- Run Horizon and open launch instance."},{"line_number":62,"context_line":"- The help content should contain \"TEST\""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"To test the new template tag:"},{"line_number":65,"context_line":"- set a breakpoint or print in angular.py:template_cache_preloads"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"7aa08908_dd59d48f","line":62,"updated":"2016-06-08 13:57:12.000000000","message":"in Material; then switch themes to verify that the text is concurrently not in the Default theme.  Also, look at your javascript sources and verify that in static/dashboard/js you see different .js files loaded between Default and Material.","commit_id":"700e74921df610eeb810eb8ff6819cafe5f9d82a"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"cba44e6a8658c9efdf8d6f24c9bfd20e5f812c24","unresolved":false,"context_lines":[{"line_number":46,"context_line":"To test the template caching:"},{"line_number":47,"context_line":"- Run horizon"},{"line_number":48,"context_line":"- View page source"},{"line_number":49,"context_line":"- Notice the new \u003cscript type\u003d\"text/ng-template\"\u003e tags contained in"},{"line_number":50,"context_line":"  the body"},{"line_number":51,"context_line":"- Open the javascript inspector"},{"line_number":52,"context_line":"- Load launch instance"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"7aa08908_e94bee5d","line":49,"range":{"start_line":49,"start_character":25,"end_line":49,"end_character":48},"updated":"2016-06-09 15:08:27.000000000","message":"type\u003d\"text/javascript\" from what I\u0027ve seen","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"e47a0d9330fd651bd7ec0f084f4db4cefeb0058c","unresolved":false,"context_lines":[{"line_number":46,"context_line":"To test the template caching:"},{"line_number":47,"context_line":"- Run horizon"},{"line_number":48,"context_line":"- View page source"},{"line_number":49,"context_line":"- Notice the new \u003cscript type\u003d\"text/ng-template\"\u003e tags contained in"},{"line_number":50,"context_line":"  the body"},{"line_number":51,"context_line":"- Open the javascript inspector"},{"line_number":52,"context_line":"- Load launch instance"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"7aa08908_5678d62b","line":49,"range":{"start_line":49,"start_character":25,"end_line":49,"end_character":48},"in_reply_to":"7aa08908_e94bee5d","updated":"2016-06-09 16:17:50.000000000","message":"Done","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"cba44e6a8658c9efdf8d6f24c9bfd20e5f812c24","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- Notice there are no longer http calls to load each HTML fragment"},{"line_number":54,"context_line":"  used by the Angular launch instance"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"To test the override:"},{"line_number":57,"context_line":"- Set the DEFAULT_THEME\u003d\u0027material\u0027"},{"line_number":58,"context_line":"- Create /horizon/openstack_dashboard/themes/material/\\"},{"line_number":59,"context_line":"static/templates/framework/widgets/help-panel/help-panel.html"},{"line_number":60,"context_line":"- Set the content to \u003ch1\u003eTEST\u003c/h1\u003e"},{"line_number":61,"context_line":"- Run Horizon and open launch instance."},{"line_number":62,"context_line":"- The help content should contain \"TEST\""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"To test the new template tag:"},{"line_number":65,"context_line":"- set a breakpoint or print in angular.py:template_cache_preloads"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"7aa08908_9fc41960","line":62,"range":{"start_line":56,"start_character":0,"end_line":62,"end_character":40},"updated":"2016-06-09 15:08:27.000000000","message":"That doesn\u0027t work exactly as expected because of Django cache expiry. Regardless if you added new template overrides to themes/material/static/templates, the new overrides (as well as their cancellation) won\u0027t take place until existing cache expires, or you run \n\n  from django.core.cache import caches\n  caches[\u0027default\u0027].clear()\n\nthat\u0027s a real issue when using memcached server. I guess that things are different with InMemory cache, but on the other hand, many developers are using Memcached, I presume.","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"e47a0d9330fd651bd7ec0f084f4db4cefeb0058c","unresolved":false,"context_lines":[{"line_number":53,"context_line":"- Notice there are no longer http calls to load each HTML fragment"},{"line_number":54,"context_line":"  used by the Angular launch instance"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"To test the override:"},{"line_number":57,"context_line":"- Set the DEFAULT_THEME\u003d\u0027material\u0027"},{"line_number":58,"context_line":"- Create /horizon/openstack_dashboard/themes/material/\\"},{"line_number":59,"context_line":"static/templates/framework/widgets/help-panel/help-panel.html"},{"line_number":60,"context_line":"- Set the content to \u003ch1\u003eTEST\u003c/h1\u003e"},{"line_number":61,"context_line":"- Run Horizon and open launch instance."},{"line_number":62,"context_line":"- The help content should contain \"TEST\""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"To test the new template tag:"},{"line_number":65,"context_line":"- set a breakpoint or print in angular.py:template_cache_preloads"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"7aa08908_76a2329c","line":62,"range":{"start_line":56,"start_character":0,"end_line":62,"end_character":40},"in_reply_to":"7aa08908_9fc41960","updated":"2016-06-09 16:17:50.000000000","message":"Great discovery Timur!","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"}],"doc/source/topics/settings.rst":[{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"b31f685bcca48d8cc1f918a6da329f33d5b8d439","unresolved":false,"context_lines":[{"line_number":1682,"context_line":"Template loaders defined here will be be loaded at the end of TEMPLATE_LOADERS,"},{"line_number":1683,"context_line":"after the CACHED_TEMPLATE_LOADERS and will never have a cached output."},{"line_number":1684,"context_line":""},{"line_number":1685,"context_line":"``CACHED_TEMPLATE_LOADERS``"},{"line_number":1686,"context_line":"---------------------------"},{"line_number":1687,"context_line":""},{"line_number":1688,"context_line":".. versionadded:: 10.0.0(Newton)"}],"source_content_type":"text/x-rst","patch_set":20,"id":"1aa78d24_7967cab7","line":1685,"updated":"2016-07-13 22:34:52.000000000","message":"-1 this appears to have been accidentally duplicated from above.","commit_id":"7998f4cf840fcd2eddfbc6b75c2bdadaae6f938e"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"de80ca78d66545de1eb7f70fda87167a1bc6c4ac","unresolved":false,"context_lines":[{"line_number":1682,"context_line":"Template loaders defined here will be be loaded at the end of TEMPLATE_LOADERS,"},{"line_number":1683,"context_line":"after the CACHED_TEMPLATE_LOADERS and will never have a cached output."},{"line_number":1684,"context_line":""},{"line_number":1685,"context_line":"``CACHED_TEMPLATE_LOADERS``"},{"line_number":1686,"context_line":"---------------------------"},{"line_number":1687,"context_line":""},{"line_number":1688,"context_line":".. versionadded:: 10.0.0(Newton)"}],"source_content_type":"text/x-rst","patch_set":20,"id":"1aa78d24_99ab9675","line":1685,"in_reply_to":"1aa78d24_7967cab7","updated":"2016-07-13 22:38:53.000000000","message":"Done","commit_id":"7998f4cf840fcd2eddfbc6b75c2bdadaae6f938e"}],"horizon/templatetags/angular.py":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"3f1687790f5f3f8a9a4472f85fcfe351c114d331","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 Hewlett Packard Enterprise Software, LLC"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_1029849e","line":1,"range":{"start_line":1,"start_character":54,"end_line":1,"end_character":57},"updated":"2016-06-08 13:57:12.000000000","message":"I have \"LP\" for our Limited Partnership, not LLC...let\u0027s check.","commit_id":"700e74921df610eeb810eb8ff6819cafe5f9d82a"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"88d35b3a750bfdf31cd01bda3e307f9cd42615ee","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        $$templateCache.put(\"$template_id\", \"$template_html\");"},{"line_number":50,"context_line":"    }]);"},{"line_number":51,"context_line":"    \"\"\")"},{"line_number":52,"context_line":"    html \u003d \u0027\u0027"},{"line_number":53,"context_line":"    for relative_path in template_paths:"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        # Create javascript that tells Angular we want to pre-load the template"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_ede1732b","line":52,"range":{"start_line":52,"start_character":11,"end_line":52,"end_character":13},"updated":"2016-06-08 15:27:50.000000000","message":"I get this isn\u0027t really a traditional template but using a django template would simplify some of this (split it into the logic of what\u0027s going into the template versus the rendered output)","commit_id":"700e74921df610eeb810eb8ff6819cafe5f9d82a"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"e45a8ac165f977377f3c3b8ed8967ee3dd139d4e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 Hewlett Packard Enterprise Development Company LP"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":8,"id":"7aa08908_09882170","line":1,"updated":"2016-06-08 20:31:32.000000000","message":"I think we can put a lot of this logic inside of a template to make it cleaner and easier to maintain.  String concat\u0027ing JavaScript and HTML inside of Python isn\u0027t ideal.\n\nWe can generate the list of angular template content via an simple template tag.  Then, we can use the list of values inside the template with https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#escapejs to escape it.\n\nAlso, tags can take the template context as a parameter, then you won\u0027t need to pass in static_url, horizon_config or current_theme_name, example:\n\n@register.simple_tag(takes_context\u003dTrue)\ndef current_time(context, format_string):","commit_id":"8fb7893e81c2952bb2b50e8718bf914c0d6b8521"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"cba44e6a8658c9efdf8d6f24c9bfd20e5f812c24","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    Args:"},{"line_number":30,"context_line":"        context: the context of the current template"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    Returns: a list of dictionaries, the key representing the template_id,"},{"line_number":33,"context_line":"    and the value is a string of HTML that can be inserted into the ng-app"},{"line_number":34,"context_line":"    portion of the DOM which includes all HTML templates. Angular"},{"line_number":35,"context_line":"    will pre-load these templates into the templateCache. This"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aa08908_38cd465e","line":32,"range":{"start_line":32,"start_character":15,"end_line":32,"end_character":19},"updated":"2016-06-09 15:08:27.000000000","message":"I see a dictionary of dictionaries in output, not a list of dictionaries.","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"cba44e6a8658c9efdf8d6f24c9bfd20e5f812c24","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    all_theme_static_files \u003d context[\u0027HORIZON_CONFIG\u0027][\u0027theme_static_files\u0027]"},{"line_number":41,"context_line":"    this_theme_static_files \u003d all_theme_static_files[context[\u0027THEME\u0027]]"},{"line_number":42,"context_line":"    template_overrides \u003d this_theme_static_files[\u0027template_overrides\u0027]"},{"line_number":43,"context_line":"    template_list \u003d {}"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    for relative_path in template_paths:"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"7aa08908_588812c7","line":43,"range":{"start_line":43,"start_character":13,"end_line":43,"end_character":22},"updated":"2016-06-09 15:08:27.000000000","message":"Doesn\u0027t look like a list to me :).","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"cba44e6a8658c9efdf8d6f24c9bfd20e5f812c24","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        result \u003d []"},{"line_number":55,"context_line":"        for finder in finders.get_finders():"},{"line_number":56,"context_line":"            result.extend(finder.find(relative_path, True))"},{"line_number":57,"context_line":"        path \u003d result[-1]"},{"line_number":58,"context_line":"        template_html \u003d \u0027\u0027"},{"line_number":59,"context_line":"        with open(path) as template_file:"},{"line_number":60,"context_line":"            template_html +\u003d template_file.read()"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aa08908_58013239","line":57,"range":{"start_line":57,"start_character":22,"end_line":57,"end_character":24},"updated":"2016-06-09 15:08:27.000000000","message":"Does the last found result always suit our needs best? It\u0027s not that I thought it\u0027s wrong, just want to self-educate myself.","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"e47a0d9330fd651bd7ec0f084f4db4cefeb0058c","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        result \u003d []"},{"line_number":55,"context_line":"        for finder in finders.get_finders():"},{"line_number":56,"context_line":"            result.extend(finder.find(relative_path, True))"},{"line_number":57,"context_line":"        path \u003d result[-1]"},{"line_number":58,"context_line":"        template_html \u003d \u0027\u0027"},{"line_number":59,"context_line":"        with open(path) as template_file:"},{"line_number":60,"context_line":"            template_html +\u003d template_file.read()"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aa08908_11ebf8b1","line":57,"range":{"start_line":57,"start_character":22,"end_line":57,"end_character":24},"in_reply_to":"7aa08908_58013239","updated":"2016-06-09 16:17:50.000000000","message":"I\u0027m assuming that the last registered finder is the best, but open to suggestions if that is a bad assumption.","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"cba44e6a8658c9efdf8d6f24c9bfd20e5f812c24","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        path \u003d result[-1]"},{"line_number":58,"context_line":"        template_html \u003d \u0027\u0027"},{"line_number":59,"context_line":"        with open(path) as template_file:"},{"line_number":60,"context_line":"            template_html +\u003d template_file.read()"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        template_list[template_id] \u003d template_html"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"7aa08908_4b4afa28","line":60,"updated":"2016-06-09 15:08:27.000000000","message":"Not sure if that works as expected: if something fails during reading a file, stack shall unwind and line 62 won\u0027t be executed (hence the fallback value of \u0027\u0027 is not assigned). The second quesion is if an original template (before theme override) would be a better fallback value?","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"e47a0d9330fd651bd7ec0f084f4db4cefeb0058c","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        path \u003d result[-1]"},{"line_number":58,"context_line":"        template_html \u003d \u0027\u0027"},{"line_number":59,"context_line":"        with open(path) as template_file:"},{"line_number":60,"context_line":"            template_html +\u003d template_file.read()"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        template_list[template_id] \u003d template_html"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"7aa08908_c347e349","line":60,"in_reply_to":"7aa08908_4b4afa28","updated":"2016-06-09 16:17:50.000000000","message":"Good catch. Wrapped in a try.\n\nI think it is better to leave the dictionary blank. This simply means that the caller won\u0027t pre-load that particular template and will fall back on the static file requested by the browser.","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"8bbab2da8930e2a08bb248de408f1741f94d4566","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    for relative_path in template_paths:"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        template_static_path \u003d context[\u0027STATIC_URL\u0027] + relative_path"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        # If the current theme overrides this template, use the theme"},{"line_number":66,"context_line":"        # content instead of the original file content"}],"source_content_type":"text/x-python","patch_set":13,"id":"7aa08908_ecaf6329","line":63,"range":{"start_line":63,"start_character":31,"end_line":63,"end_character":55},"updated":"2016-06-09 20:26:18.000000000","message":"We could eventually get rid of this logic when we no longer need to respect WEBROOT for the references; for now this is fine.  Ideally we could have basic static paths rather than relying on STATIC_URL for constructing all angular template paths.","commit_id":"4836e621fcb83675f7af0640f8a52be3bb7d41b4"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"abf8c112200a8887d912b0761b7ac03fc77142ab","unresolved":false,"context_lines":[{"line_number":23,"context_line":"register \u003d template.Library()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"@receiver(post_compress)"},{"line_number":27,"context_line":"def update_angular_template_hash(sender, **kwargs):"},{"line_number":28,"context_line":"    \"\"\"Listen for compress events. If the angular templates"},{"line_number":29,"context_line":"    have been re-compressed, also clear them from the Django"},{"line_number":30,"context_line":"    cache backend.  This is important to allow deployers to"}],"source_content_type":"text/x-python","patch_set":16,"id":"7aa08908_705cfa4c","line":27,"range":{"start_line":26,"start_character":0,"end_line":27,"end_character":51},"updated":"2016-06-15 14:02:03.000000000","message":"Oddly enough, it works only in one direction for me: when I remove an overridden themes/material/static/templates/framework/widgets/help-panel/help-panel.html (following your instructions) and re-run ./manage.py collectstatic --clear --noinput \u0026\u0026 ./manage.py compress and then restart web-server, customized help panel goes away. But when I initially create it, and do the same things as above, the customized template doesn\u0027t appear in LI wizard, I have to manually clear the default cache to make it happen.","commit_id":"36a1498194ae25c05804d367892a86848d781e08"}],"openstack_dashboard/static_settings.py":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"3f1687790f5f3f8a9a4472f85fcfe351c114d331","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"from horizon.utils import file_discovery"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"import theme_settings"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"def get_staticfiles_dirs(webroot\u003d\u0027/\u0027):"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_20b38b51","line":50,"updated":"2016-06-08 13:57:12.000000000","message":"\"from openstack_dashboard import theme_settings\"\n\nI think py34 is complaining without this specification.","commit_id":"700e74921df610eeb810eb8ff6819cafe5f9d82a"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"88d35b3a750bfdf31cd01bda3e307f9cd42615ee","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"from horizon.utils import file_discovery"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"import theme_settings"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"def get_staticfiles_dirs(webroot\u003d\u0027/\u0027):"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_6d110304","line":50,"in_reply_to":"7aa08908_20b38b51","updated":"2016-06-08 15:27:50.000000000","message":"Yeah, no implicit relative imports any more.","commit_id":"700e74921df610eeb810eb8ff6819cafe5f9d82a"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"cba44e6a8658c9efdf8d6f24c9bfd20e5f812c24","unresolved":false,"context_lines":[{"line_number":181,"context_line":"    for url, path in theme_info:"},{"line_number":182,"context_line":"        discovered_files \u003d {}"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        # discover static files provides by the theme"},{"line_number":185,"context_line":"        file_discovery.populate_horizon_config("},{"line_number":186,"context_line":"            discovered_files,"},{"line_number":187,"context_line":"            path"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aa08908_d87242b0","line":184,"range":{"start_line":184,"start_character":39,"end_line":184,"end_character":40},"updated":"2016-06-09 15:08:27.000000000","message":"d","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"e47a0d9330fd651bd7ec0f084f4db4cefeb0058c","unresolved":false,"context_lines":[{"line_number":181,"context_line":"    for url, path in theme_info:"},{"line_number":182,"context_line":"        discovered_files \u003d {}"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        # discover static files provides by the theme"},{"line_number":185,"context_line":"        file_discovery.populate_horizon_config("},{"line_number":186,"context_line":"            discovered_files,"},{"line_number":187,"context_line":"            path"}],"source_content_type":"text/x-python","patch_set":11,"id":"7aa08908_16af6e95","line":184,"range":{"start_line":184,"start_character":39,"end_line":184,"end_character":40},"in_reply_to":"7aa08908_d87242b0","updated":"2016-06-09 16:17:50.000000000","message":"Done","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"}],"openstack_dashboard/templates/horizon/_scripts.html":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"173576dff9b98f7288b9623ff69960f5c4d7f0e5","unresolved":false,"context_lines":[{"line_number":74,"context_line":"{% endcompress %}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"{% compress js %}"},{"line_number":77,"context_line":"  {% cache 2592000 \"angular\" \"template_cache_preloads\" THEME %}"},{"line_number":78,"context_line":"    {% template_cache_preloads STATIC_URL HORIZON_CONFIG THEME %}"},{"line_number":79,"context_line":"  {% endcache %}"},{"line_number":80,"context_line":"{% endcompress %}"}],"source_content_type":"text/html","patch_set":7,"id":"7aa08908_d30b837b","line":77,"range":{"start_line":77,"start_character":11,"end_line":77,"end_character":18},"updated":"2016-06-08 13:59:59.000000000","message":"What does this timeout do?  The files are static, and served up by whatever web server is configured (Django may not have access to update these files).  (Deployers will often configure the static dir to be something only writeable by root and readable by a www/apache user...and \u0027compress\u0027 is only run once, on deployment of the system.)  In other words, we can\u0027t rely on Django re-compressing the files, so just not sure what this timeout represents.","commit_id":"700e74921df610eeb810eb8ff6819cafe5f9d82a"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"88d35b3a750bfdf31cd01bda3e307f9cd42615ee","unresolved":false,"context_lines":[{"line_number":74,"context_line":"{% endcompress %}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"{% compress js %}"},{"line_number":77,"context_line":"  {% cache 2592000 \"angular\" \"template_cache_preloads\" THEME %}"},{"line_number":78,"context_line":"    {% template_cache_preloads STATIC_URL HORIZON_CONFIG THEME %}"},{"line_number":79,"context_line":"  {% endcache %}"},{"line_number":80,"context_line":"{% endcompress %}"}],"source_content_type":"text/html","patch_set":7,"id":"7aa08908_4d29a789","line":77,"range":{"start_line":77,"start_character":11,"end_line":77,"end_character":18},"in_reply_to":"7aa08908_d30b837b","updated":"2016-06-08 15:27:50.000000000","message":"The timeout will only effect non-compressed environments. Django always has write access to its cache; it\u0027s not the same as the static file location but will be in-memory/memcached/database.","commit_id":"700e74921df610eeb810eb8ff6819cafe5f9d82a"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"c3fe81eb4dd1ab74428217cc51519d5fa90a144f","unresolved":false,"context_lines":[{"line_number":74,"context_line":"{% endcompress %}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"{% compress js %}"},{"line_number":77,"context_line":"  {% cache 2592000 \"angular\" \"template_cache_preloads\" THEME %}"},{"line_number":78,"context_line":"    {% template_cache_preloads STATIC_URL HORIZON_CONFIG THEME %}"},{"line_number":79,"context_line":"  {% endcache %}"},{"line_number":80,"context_line":"{% endcompress %}"}],"source_content_type":"text/html","patch_set":8,"id":"7aa08908_49f509eb","line":77,"updated":"2016-06-08 20:32:22.000000000","message":"Can we make this value a setting?","commit_id":"8fb7893e81c2952bb2b50e8718bf914c0d6b8521"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"4424976baeacaab8b2de0c018d83444770d4191a","unresolved":false,"context_lines":[{"line_number":74,"context_line":"{% endcompress %}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"{% compress js %}"},{"line_number":77,"context_line":"  {% cache 2592000 \"angular\" \"template_cache_preloads\" THEME %}"},{"line_number":78,"context_line":"    {% angular_templates %}"},{"line_number":79,"context_line":"  {% endcache %}"},{"line_number":80,"context_line":"{% endcompress %}"}],"source_content_type":"text/html","patch_set":10,"id":"7aa08908_109e7db8","line":77,"updated":"2016-06-08 23:42:43.000000000","message":"I do think we still need to make this value a setting.","commit_id":"31f88e6905dd8f45c7d24580c2900fec23cbdca3"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"cba44e6a8658c9efdf8d6f24c9bfd20e5f812c24","unresolved":false,"context_lines":[{"line_number":74,"context_line":"{% endcompress %}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"{% compress js %}"},{"line_number":77,"context_line":"  {% cache 2592000 \"angular\" \"template_cache_preloads\" THEME %}"},{"line_number":78,"context_line":"    {% angular_templates %}"},{"line_number":79,"context_line":"  {% endcache %}"},{"line_number":80,"context_line":"{% endcompress %}"}],"source_content_type":"text/html","patch_set":11,"id":"7aa08908_ee85b407","line":77,"range":{"start_line":77,"start_character":30,"end_line":77,"end_character":53},"updated":"2016-06-09 15:08:27.000000000","message":"Seems that it isn\u0027t defined anywhere now. Besides that, is there a point referencing a cache fragment using a literal key (which doesn\u0027t change)?\n\nAnother minor comment here: template fragment name could be used w/o quotes here (see https://docs.djangoproject.com/en/1.9/topics/cache/#template-fragment-caching )","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"e47a0d9330fd651bd7ec0f084f4db4cefeb0058c","unresolved":false,"context_lines":[{"line_number":74,"context_line":"{% endcompress %}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"{% compress js %}"},{"line_number":77,"context_line":"  {% cache 2592000 \"angular\" \"template_cache_preloads\" THEME %}"},{"line_number":78,"context_line":"    {% angular_templates %}"},{"line_number":79,"context_line":"  {% endcache %}"},{"line_number":80,"context_line":"{% endcompress %}"}],"source_content_type":"text/html","patch_set":11,"id":"7aa08908_83503b60","line":77,"range":{"start_line":77,"start_character":30,"end_line":77,"end_character":53},"in_reply_to":"7aa08908_ee85b407","updated":"2016-06-09 16:17:50.000000000","message":"Good observation.\n\nMy intent here is to reduce potential for future cache collisions if other technologies are used in Horizon. I used string literals to make it clear that these are not template variable. The 3 parts of the key are:\n- \"angular\" (aka not React or anything else)\n- \"template_cache_preloads\" (aka not images or anything else)\n- THEME (dynamic, the current theme)","commit_id":"4fc7c69253a22580239979f5f9be67ab60cd60e2"}],"releasenotes/notes/bp-angular-template-overrides-9f05ffd61367245a.yaml":[{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"b31f685bcca48d8cc1f918a6da329f33d5b8d439","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    fragments used by Angular code in Horizon.  For example, to override the"},{"line_number":7,"context_line":"    launch instance help panel when the \u0027material\u0027 theme is used, create"},{"line_number":8,"context_line":"    /horizon/openstack_dashboard/themes/material/static/templates/framework"},{"line_number":9,"context_line":"    /widgets/help-panel/help-panel.html."}],"source_content_type":"text/x-yaml","patch_set":20,"id":"1aa78d24_79150ae4","line":9,"updated":"2016-07-13 22:34:52.000000000","message":"This should mention that the html templates are also compiled into a single file, which is a significant change for compressed deployment.","commit_id":"7998f4cf840fcd2eddfbc6b75c2bdadaae6f938e"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"de80ca78d66545de1eb7f70fda87167a1bc6c4ac","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    fragments used by Angular code in Horizon.  For example, to override the"},{"line_number":7,"context_line":"    launch instance help panel when the \u0027material\u0027 theme is used, create"},{"line_number":8,"context_line":"    /horizon/openstack_dashboard/themes/material/static/templates/framework"},{"line_number":9,"context_line":"    /widgets/help-panel/help-panel.html."}],"source_content_type":"text/x-yaml","patch_set":20,"id":"1aa78d24_1997a63b","line":9,"in_reply_to":"1aa78d24_79150ae4","updated":"2016-07-13 22:38:53.000000000","message":"Done","commit_id":"7998f4cf840fcd2eddfbc6b75c2bdadaae6f938e"}]}
