)]}'
{"horizon/templates/horizon/_scripts.html":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"bb47db5178f37b12327d57afca3de4cef789f3cd","unresolved":false,"context_lines":[{"line_number":45,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/workflow/workflow.js\u0027\u003e\u003c/script\u003e"},{"line_number":46,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/tech-debt.module.js\u0027\u003e\u003c/script\u003e"},{"line_number":47,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/dummy.js\u0027\u003e\u003c/script\u003e"},{"line_number":48,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/helper-functions.js\u0027\u003e\u003c/script\u003e"},{"line_number":49,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/image-file-on-change.js\u0027\u003e\u003c/script\u003e"},{"line_number":50,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/modal-form-update-metadata-ctrl.js\u0027\u003e\u003c/script\u003e"},{"line_number":51,"context_line":""}],"source_content_type":"text/html","patch_set":8,"id":"7a016987_d804617f","line":48,"updated":"2015-05-28 00:04:05.000000000","message":"Move this out too.","commit_id":"33654a545addf9b384c8eb6e95d1aff052271ae4"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"b8c7902dbb6fa973c9933ef9c02ba8364f76a8bd","unresolved":false,"context_lines":[{"line_number":45,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/workflow/workflow.js\u0027\u003e\u003c/script\u003e"},{"line_number":46,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/tech-debt.module.js\u0027\u003e\u003c/script\u003e"},{"line_number":47,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/dummy.js\u0027\u003e\u003c/script\u003e"},{"line_number":48,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/helper-functions.js\u0027\u003e\u003c/script\u003e"},{"line_number":49,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/image-file-on-change.js\u0027\u003e\u003c/script\u003e"},{"line_number":50,"context_line":"\u003cscript src\u003d\u0027{{ STATIC_URL }}framework/util/tech-debt/modal-form-update-metadata-ctrl.js\u0027\u003e\u003c/script\u003e"},{"line_number":51,"context_line":""}],"source_content_type":"text/html","patch_set":8,"id":"7a016987_c11b487f","line":48,"in_reply_to":"7a016987_d804617f","updated":"2015-05-28 03:01:31.000000000","message":"Not sure what you mean here. I think we discussed this in IRC and agreed this was in the correct place.","commit_id":"33654a545addf9b384c8eb6e95d1aff052271ae4"}],"openstack_dashboard/enabled/_10_project.py":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"bb47db5178f37b12327d57afca3de4cef789f3cd","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    LAUNCH_INST + \u0027configuration/load-edit.js\u0027,"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    \u0027dashboard/tech-debt/tech-debt.module.js\u0027,"},{"line_number":44,"context_line":"    \u0027dashboard/tech-debt/image-form-controller.js\u0027,"},{"line_number":45,"context_line":"]"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"ADD_JS_SPEC_FILES \u003d ["}],"source_content_type":"text/x-python","patch_set":8,"id":"7a016987_98e709e4","line":44,"updated":"2015-05-28 00:04:05.000000000","message":"Can image-file-on-change move as part of this patch also?","commit_id":"33654a545addf9b384c8eb6e95d1aff052271ae4"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"b8c7902dbb6fa973c9933ef9c02ba8364f76a8bd","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    LAUNCH_INST + \u0027configuration/load-edit.js\u0027,"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    \u0027dashboard/tech-debt/tech-debt.module.js\u0027,"},{"line_number":44,"context_line":"    \u0027dashboard/tech-debt/image-form-controller.js\u0027,"},{"line_number":45,"context_line":"]"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"ADD_JS_SPEC_FILES \u003d ["}],"source_content_type":"text/x-python","patch_set":8,"id":"7a016987_a1128c60","line":44,"in_reply_to":"7a016987_98e709e4","updated":"2015-05-28 03:01:31.000000000","message":"Yep, done.","commit_id":"33654a545addf9b384c8eb6e95d1aff052271ae4"}],"openstack_dashboard/enabled/_20_admin.py":[{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"18d3b41c4a9700816f2bc47dbc28aa561538191e","unresolved":false,"context_lines":[{"line_number":21,"context_line":"]"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"ADD_JS_FILES \u003d ["},{"line_number":24,"context_line":"    \u0027dashboard/tech-debt/tech-debt.module.js\u0027,"},{"line_number":25,"context_line":"    \u0027dashboard/tech-debt/namespace-controller.js\u0027,"},{"line_number":26,"context_line":"    \u0027dashboard/tech-debt/image-form-controller.js\u0027,"},{"line_number":27,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":16,"id":"3afb71cf_240047aa","line":24,"updated":"2015-06-05 01:15:36.000000000","message":"Hmm, this is duplicated. we do not have a good solution now, but JS file cannot be load twice. -1","commit_id":"b0e4476299cf957361eb1407237fb8501a3c77a1"}],"openstack_dashboard/utils/settings.py":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"bb47db5178f37b12327d57afca3de4cef789f3cd","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        # avoid pulling in dashboard javascript dependencies multiple times"},{"line_number":120,"context_line":"        existing \u003d set(js_files)"},{"line_number":121,"context_line":"        js_files.extend([f for f in config.get(\u0027ADD_JS_FILES\u0027, [])"},{"line_number":122,"context_line":"                         if f not in existing])"},{"line_number":123,"context_line":"        js_spec_files.extend(config.get(\u0027ADD_JS_SPEC_FILES\u0027, []))"},{"line_number":124,"context_line":"        update_horizon_config.update("},{"line_number":125,"context_line":"            config.get(\u0027UPDATE_HORIZON_CONFIG\u0027, {}))"}],"source_content_type":"text/x-python","patch_set":8,"id":"7a016987_383b753a","line":122,"updated":"2015-05-28 00:04:05.000000000","message":"This is a good safety feature, but I wonder if we should generate an exception of some kind instead? This will help hide cases where people don\u0027t add includes into the correct spot, and just stuff them into every dashboard that needs them. Instead, I think we want to encourage .js files that are needed by 2 or more dashboards to go into a common area.\n\nIdeas?","commit_id":"33654a545addf9b384c8eb6e95d1aff052271ae4"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"b8c7902dbb6fa973c9933ef9c02ba8364f76a8bd","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        # avoid pulling in dashboard javascript dependencies multiple times"},{"line_number":120,"context_line":"        existing \u003d set(js_files)"},{"line_number":121,"context_line":"        js_files.extend([f for f in config.get(\u0027ADD_JS_FILES\u0027, [])"},{"line_number":122,"context_line":"                         if f not in existing])"},{"line_number":123,"context_line":"        js_spec_files.extend(config.get(\u0027ADD_JS_SPEC_FILES\u0027, []))"},{"line_number":124,"context_line":"        update_horizon_config.update("},{"line_number":125,"context_line":"            config.get(\u0027UPDATE_HORIZON_CONFIG\u0027, {}))"}],"source_content_type":"text/x-python","patch_set":8,"id":"7a016987_ac20439c","line":122,"in_reply_to":"7a016987_383b753a","updated":"2015-05-28 03:01:31.000000000","message":"The problem we\u0027re trying to solve here is that different enable files might try to include the same JS file. In the specific case of this patch, both _10_project and _20_admin include the two files: \u0027dashboard/tech-debt/tech-debt.module.js\u0027 and \u0027dashboard/tech-debt/image-form-controller.js\u0027.\n\nThe above code ensures that each files is only present once in js_files, but only when either of those two components are enabled.","commit_id":"33654a545addf9b384c8eb6e95d1aff052271ae4"}]}
