)]}'
{"horizon/management/commands/injectjs.py":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"5c23c5a01b4fce1a25b6a8209135e4faf26c5310","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def handle(self, *args, **options):"},{"line_number":34,"context_line":"        dir_name \u003d \u0027./horizon/templates/horizon/\u0027"},{"line_number":35,"context_line":"        file_name \u003d \u0027_scripts.html\u0027"},{"line_number":36,"context_line":"        sources, mocks, specs \u003d self.get_js_files()"},{"line_number":37,"context_line":"        sources_code \u003d \u0027\\n\u0027.join(sources)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"        with open(dir_name + file_name, \u0027r\u0027) as f_in:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af86dd1_d7080c94","line":36,"updated":"2015-06-11 23:31:31.000000000","message":"I see that here, we are injecting into the _scripts.html file. Are their plans to inject this into jasmine.html as well? also, wouldnt this conflict with how we are injecting dashboard JS into script.html today?","commit_id":"71f40b41fc42d4b2911bb7b7c94f27ae570109b7"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b640056488acfb83b0abe547302a82251c6d3881","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def handle(self, *args, **options):"},{"line_number":34,"context_line":"        dir_name \u003d \u0027./horizon/templates/horizon/\u0027"},{"line_number":35,"context_line":"        file_name \u003d \u0027_scripts.html\u0027"},{"line_number":36,"context_line":"        sources, mocks, specs \u003d self.get_js_files()"},{"line_number":37,"context_line":"        sources_code \u003d \u0027\\n\u0027.join(sources)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"        with open(dir_name + file_name, \u0027r\u0027) as f_in:"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_eb032175","line":36,"in_reply_to":"1af86dd1_70181d85","updated":"2015-06-13 00:48:33.000000000","message":"Hi Sean,\n\nFor now, I think having the two different approach is fine. Let\u0027s take small steps and make sure they continue to work. I also think a re-org in /static/dashboard will help this auto-discovery. Currently, with the exception of launch-instance and cloud-services, the other folders should be move into common or resources. And Tyr also think that this is where the API would make sense.\n\nI think for the most part, we are all on the same page. The only remaining item is the auto-discovery of scss files as well. We may need some python code to generate the root scss file, and then included into _stylesheets.html.","commit_id":"71f40b41fc42d4b2911bb7b7c94f27ae570109b7"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"9a8157b0332ea87ccbf52bf709a1e5ef1370a12d","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def handle(self, *args, **options):"},{"line_number":34,"context_line":"        dir_name \u003d \u0027./horizon/templates/horizon/\u0027"},{"line_number":35,"context_line":"        file_name \u003d \u0027_scripts.html\u0027"},{"line_number":36,"context_line":"        sources, mocks, specs \u003d self.get_js_files()"},{"line_number":37,"context_line":"        sources_code \u003d \u0027\\n\u0027.join(sources)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"        with open(dir_name + file_name, \u0027r\u0027) as f_in:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af86dd1_70181d85","line":36,"in_reply_to":"1af86dd1_d7080c94","updated":"2015-06-12 18:39:14.000000000","message":"Hi Thai,\n\nWhat you see here is still experimental. There are two way of populating JS files (and potentially angular html templates), one it injection shown in the this patch, using a template with a placeholder string and replace the placeholder string with a command.  Another way is using the utils directly in python code where the JS file list manually created, like what I experimentally did for jasmine runner and enabled plug-ins, you can find a patches for them respectively at:\n\nhttps://review.openstack.org/#/c/189997/\n\nhttps://review.openstack.org/#/c/190038/\n\nThere are a few remaining questions I need to discussion with you before moving forward:\n\n- Which way showing above it the better one, or do we have other approaches?\n\n- How do we integrate it into the build process and/or gate if needed.\n\n- The way of organizing static files in openstack_dashboard is not very friendly for anto-discovery for the enabled plug-ins, we need to re-org the code inside openstack_dashboard/static/dashboard to something like:\n\n/common/\n/project/\n/admin/\n/identity/\n/settings/\n/router/\nect...\n\nwithout this re-org, the code for every dashboards, regardless of enabled or not, will be auto-discovery and injected into both jasmine and production.","commit_id":"71f40b41fc42d4b2911bb7b7c94f27ae570109b7"}],"openstack_dashboard/templates/base.html":[{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"8cf51da1a017bf8c451abdad531f944e5f85e44c","unresolved":false,"context_lines":[{"line_number":47,"context_line":"      {% block footer %}{% endblock %}"},{"line_number":48,"context_line":"    \u003c/div\u003e"},{"line_number":49,"context_line":"    {% block js %}"},{"line_number":50,"context_line":"      {% include \"horizon/_scripts.html\" %}"},{"line_number":51,"context_line":"    {% endblock %}"},{"line_number":52,"context_line":"    \u003cdiv id\u003d\"modal_wrapper\"\u003e\u003c/div\u003e"},{"line_number":53,"context_line":"  \u003c/body\u003e"}],"source_content_type":"text/html","patch_set":11,"id":"9a41bdd9_95bc62dd","side":"PARENT","line":50,"updated":"2015-07-14 19:43:28.000000000","message":"this breaks conventions and existing users, when you remove the _ character","commit_id":"6d93bc451f3ae70274e507ea6363b6f08f09cfc4"},{"author":{"_account_id":6650,"name":"Eric Peterson","email":"ejpetey@gmail.com","username":"ericpeterson-l"},"change_message_id":"8cf51da1a017bf8c451abdad531f944e5f85e44c","unresolved":false,"context_lines":[{"line_number":47,"context_line":"      {% block footer %}{% endblock %}"},{"line_number":48,"context_line":"    \u003c/div\u003e"},{"line_number":49,"context_line":"    {% block js %}"},{"line_number":50,"context_line":"      {% include \"horizon/scripts.html\" %}"},{"line_number":51,"context_line":"    {% endblock %}"},{"line_number":52,"context_line":"    \u003cdiv id\u003d\"modal_wrapper\"\u003e\u003c/div\u003e"},{"line_number":53,"context_line":"  \u003c/body\u003e"}],"source_content_type":"text/html","patch_set":11,"id":"9a41bdd9_95a302b2","line":50,"updated":"2015-07-14 19:43:28.000000000","message":"this file is not included in the patch","commit_id":"3183159ef8d3f10524219aa144f15f8157450fc7"}]}
