)]}'
{"defaults/main.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"946b546b5a728471245e5e31a0a9db73e1cf3199","unresolved":false,"context_lines":[{"line_number":364,"context_line":"horizon_websso_initial_choice: \"credentials\""},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"horizon_panels: \"{{ _horizon_panels }}\""},{"line_number":367,"context_line":"horizon_extra_files: \"{{ _horizon_extra_files }}\""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_58006401","line":367,"range":{"start_line":367,"start_character":0,"end_line":367,"end_character":49},"updated":"2018-08-28 10:55:05.000000000","message":"see my comment in the vars file.","commit_id":"c8a690a590f99a64b09728a21214754c9249d121"},{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"8e30e510ae9904ddd4b02398f49ca1cda3627a4c","unresolved":false,"context_lines":[{"line_number":365,"context_line":""},{"line_number":366,"context_line":"# Set the list of directories, where we should search for "},{"line_number":367,"context_line":"# dashboard panels. We need this list only for installation from source"},{"line_number":368,"context_line":"horizon_panels: |-"},{"line_number":369,"context_line":"  {% if horizon_install_method \u003d\u003d \u0027source\u0027 %}"},{"line_number":370,"context_line":"  _horizon_panels"},{"line_number":371,"context_line":"  {% else %}"},{"line_number":372,"context_line":"  []"},{"line_number":373,"context_line":"  {% endif %}"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3f79a3b5_bd43513f","line":373,"range":{"start_line":368,"start_character":0,"end_line":373,"end_character":13},"updated":"2018-08-31 12:45:30.000000000","message":"I\u0027m not sure about this structure, but I don\u0027t see an option how to check installation method. Or I can move list of dashboard path back to vars/main.yml","commit_id":"d506bc28be6123afdc6255dee90f6246268e56f6"},{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"7b389087faa633ca966fec6cff311ef95b11a618","unresolved":false,"context_lines":[{"line_number":365,"context_line":""},{"line_number":366,"context_line":"# Set the list of directories, where we should search for "},{"line_number":367,"context_line":"# dashboard panels. We need this list only for installation from source"},{"line_number":368,"context_line":"horizon_panels: |-"},{"line_number":369,"context_line":"  {% if horizon_install_method \u003d\u003d \u0027source\u0027 %}"},{"line_number":370,"context_line":"  _horizon_panels"},{"line_number":371,"context_line":"  {% else %}"},{"line_number":372,"context_line":"  []"},{"line_number":373,"context_line":"  {% endif %}"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"3f79a3b5_fdd54948","line":373,"range":{"start_line":368,"start_character":0,"end_line":373,"end_character":13},"updated":"2018-08-31 12:48:57.000000000","message":"I\u0027m not sure about this structure, but I don\u0027t see an option how to check installation method. Or I can move list of dashboard path back to vars/main.yml","commit_id":"be6c23a02a3924e617fbf0a8a2a05e64e9106a8d"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"30ee6da5775a8a49d64871d68d62d4eaf016513c","unresolved":false,"context_lines":[{"line_number":365,"context_line":""},{"line_number":366,"context_line":"# Set the list of directories, where we should search for "},{"line_number":367,"context_line":"# dashboard panels. We need this list only for installation from source"},{"line_number":368,"context_line":"horizon_panels: |-"},{"line_number":369,"context_line":"  {% if horizon_install_method \u003d\u003d \u0027source\u0027 %}"},{"line_number":370,"context_line":"  _horizon_panels"},{"line_number":371,"context_line":"  {% else %}"},{"line_number":372,"context_line":"  []"},{"line_number":373,"context_line":"  {% endif %}"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"3f79a3b5_7d8b791d","line":373,"range":{"start_line":368,"start_character":0,"end_line":373,"end_character":13},"in_reply_to":"3f79a3b5_fdd54948","updated":"2018-08-31 12:53:57.000000000","message":"you can simply remove it, as extra panels should be enough for people","commit_id":"be6c23a02a3924e617fbf0a8a2a05e64e9106a8d"}],"tasks/horizon_install_source.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"f85b1531098c9882ddcddc7e21c6c2e67236bc54","unresolved":false,"context_lines":[{"line_number":170,"context_line":"- name: Registering dashboards"},{"line_number":171,"context_line":"  find:"},{"line_number":172,"context_line":"    paths: \"{{ horizon_lib_dir }}\""},{"line_number":173,"context_line":"    patterns: \"^.*_?(dashboard|ui)$\""},{"line_number":174,"context_line":"    file_type: directory"},{"line_number":175,"context_line":"    use_regex: yes"},{"line_number":176,"context_line":"    excludes: \"openstack_dashboard\""}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3f79a3b5_61d081f8","line":173,"range":{"start_line":173,"start_character":18,"end_line":173,"end_character":20},"updated":"2018-09-04 12:47:07.000000000","message":"I think this can be removed as some dashboard are named \u0027-ui\u0027, and you\u0027re using .* anyway.\n\nnit:\nEven that we rely on the dashboard name being dashboard/ui (which covers 95% of the cases, but no convention), shouldn\u0027t we rely on a dashboard structure (which has a convention): to find the folders enabled/local_settings.d [almost the content of a \"|\".join(_dashboard_panels_location)] recursively from horizon_lib_dir ?","commit_id":"f8d315126d4b7bb5010f6a26755b9548c9951252"},{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"7953bd91cc5e76f4536f99c6a336438327096c6a","unresolved":false,"context_lines":[{"line_number":170,"context_line":"- name: Registering dashboards"},{"line_number":171,"context_line":"  find:"},{"line_number":172,"context_line":"    paths: \"{{ horizon_lib_dir }}\""},{"line_number":173,"context_line":"    patterns: \"^.*_?(dashboard|ui)$\""},{"line_number":174,"context_line":"    file_type: directory"},{"line_number":175,"context_line":"    use_regex: yes"},{"line_number":176,"context_line":"    excludes: \"openstack_dashboard\""}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3f79a3b5_5f799cc2","line":173,"range":{"start_line":173,"start_character":18,"end_line":173,"end_character":20},"in_reply_to":"3f79a3b5_61d081f8","updated":"2018-09-04 14:02:35.000000000","message":"regexp fixed.\n\nI\u0027m not sure, that local_settings.d or config won\u0027t take place in non-dashboard folder. Yes, we check name convention of linked file, but still. \nAdditionally recursive search inside site-packages take much more time than non-recursive","commit_id":"f8d315126d4b7bb5010f6a26755b9548c9951252"}],"tasks/horizon_post_install.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"946b546b5a728471245e5e31a0a9db73e1cf3199","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"- name: Registering active panels\u0027 files"},{"line_number":52,"context_line":"  find:"},{"line_number":53,"context_line":"    paths: \"{{ _horizon_active_panels }}\""},{"line_number":54,"context_line":"    patterns: \"^_[0-9]{4}_.*.py$\""},{"line_number":55,"context_line":"    file_type: file"},{"line_number":56,"context_line":"    use_regex: yes"},{"line_number":57,"context_line":"  register: found_panels"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_3d6d5a02","line":54,"range":{"start_line":53,"start_character":4,"end_line":54,"end_character":33},"updated":"2018-08-28 10:55:05.000000000","message":"I think we can go even further away from our code by finding those files in {{ horizon_lib_dir }}, as they are always {{ horizon_lib_dir }}/*/enabled/\n\nThis would remove the need from both _horizon_panels, and _horizon_active_panels","commit_id":"c8a690a590f99a64b09728a21214754c9249d121"},{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"945a95ecd1dbe60fa8bf705fd116cb568c5b3df9","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"- name: Registering active panels\u0027 files"},{"line_number":52,"context_line":"  find:"},{"line_number":53,"context_line":"    paths: \"{{ _horizon_active_panels }}\""},{"line_number":54,"context_line":"    patterns: \"^_[0-9]{4}_.*.py$\""},{"line_number":55,"context_line":"    file_type: file"},{"line_number":56,"context_line":"    use_regex: yes"},{"line_number":57,"context_line":"  register: found_panels"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_68730bb6","line":54,"range":{"start_line":53,"start_character":4,"end_line":54,"end_character":33},"in_reply_to":"3f79a3b5_387008a4","updated":"2018-08-28 15:11:47.000000000","message":"The problem is, that all dasboards are installed with horizon by default, so this approach may be implemented only after fix of dashboards installation","commit_id":"c8a690a590f99a64b09728a21214754c9249d121"},{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"666fd0365b0179cad484d9f1631ad7e13770bbf9","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"- name: Registering active panels\u0027 files"},{"line_number":52,"context_line":"  find:"},{"line_number":53,"context_line":"    paths: \"{{ _horizon_active_panels }}\""},{"line_number":54,"context_line":"    patterns: \"^_[0-9]{4}_.*.py$\""},{"line_number":55,"context_line":"    file_type: file"},{"line_number":56,"context_line":"    use_regex: yes"},{"line_number":57,"context_line":"  register: found_panels"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_7c15d148","line":54,"range":{"start_line":53,"start_character":4,"end_line":54,"end_character":33},"in_reply_to":"3f79a3b5_3d6d5a02","updated":"2018-08-30 17:47:46.000000000","message":"Ansible find module doesn\u0027t accept \u0027*\u0027 inside path:\nok: [aio1_horizon_container-5e42b84f] \u003d\u003e {\n    \"found\": {\n        \"changed\": false, \n        \"examined\": 0, \n        \"failed\": false, \n        \"files\": [], \n        \"matched\": 0, \n        \"msg\": \"/openstack/venvs/horizon-17.0.9/lib/python2.7/site-packages/*/enabled/ was skipped as it does not seem to be a valid directory or it cannot be accessed\\n\"\n    }\n}","commit_id":"c8a690a590f99a64b09728a21214754c9249d121"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8ff3e445a2ab2d2c16b9a57f40efd2cd369f2b33","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"- name: Registering active panels\u0027 files"},{"line_number":52,"context_line":"  find:"},{"line_number":53,"context_line":"    paths: \"{{ _horizon_active_panels }}\""},{"line_number":54,"context_line":"    patterns: \"^_[0-9]{4}_.*.py$\""},{"line_number":55,"context_line":"    file_type: file"},{"line_number":56,"context_line":"    use_regex: yes"},{"line_number":57,"context_line":"  register: found_panels"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_387008a4","line":54,"range":{"start_line":53,"start_character":4,"end_line":54,"end_character":33},"in_reply_to":"3f79a3b5_3d6d5a02","updated":"2018-08-28 11:05:04.000000000","message":"The only problem you\u0027ll have is that you won\u0027t actively remove panel x or y with this approach, should a deployer change horizon_enable_designate_ui for example.\n\nI think the answer to this is simple: The files won\u0027t be present if they are not installed, or if they are properly removed.\n\nIf we make sure the components are installed only when needed (and uninstalled when not needed) the folders should be technically cleaned up, and therefore the linking should work. Same applies if a deployer wants to deploy with distro packages.","commit_id":"c8a690a590f99a64b09728a21214754c9249d121"}],"vars/main.yml":[{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"5119692bba6b803c93bf95fec144833e255d9d81","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"_horizon_active_panels: |-"},{"line_number":37,"context_line":"  {% set path_list \u003d [] %}"},{"line_number":38,"context_line":"  {% for panel in horizon_panels %}"},{"line_number":39,"context_line":"  {%   if panel.state !\u003d \u0027absent\u0027 %}"},{"line_number":40,"context_line":"  {%     set _ \u003d path_list.append(panel.src) %}"},{"line_number":41,"context_line":"  {%   endif %}"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_7b72d77e","line":38,"range":{"start_line":38,"start_character":18,"end_line":38,"end_character":32},"updated":"2018-08-17 16:10:23.000000000","message":"I have some mixed feelings about usage of horizon_panels, which are defined in defaults/main.yml, and by default equal to _horizon_panels, which is defined previously. It seems, that it\u0027s working, but I don\u0027t know how good/bad this idea is.","commit_id":"9a7d5d36e8cca799ef12cbf52d8328eb8656f019"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"946b546b5a728471245e5e31a0a9db73e1cf3199","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  {{ path_list }}"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"_horizon_extra_files:"},{"line_number":46,"context_line":"  - src: \"{{ horizon_lib_dir }}/heat_dashboard/conf/heat_policy.json\""},{"line_number":47,"context_line":"    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/conf/heat_policy.json\""},{"line_number":48,"context_line":"    state: \"{{ horizon_enable_heat_ui | ternary(horizon_panel_enable_state, \u0027absent\u0027) }}\""},{"line_number":49,"context_line":"  - src: \"{{ horizon_lib_dir }}/sahara_dashboard/local_settings.d/_12_toggle_data_upload_max_number_fields.py\""},{"line_number":50,"context_line":"    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.d/_12_toggle_data_upload_max_number_fields.py\""},{"line_number":51,"context_line":"    state: \"{{ horizon_enable_sahara_ui | ternary(horizon_panel_enable_state, \u0027absent\u0027) }}\""},{"line_number":52,"context_line":"  - src: \"/etc/horizon/local_settings.py\""},{"line_number":53,"context_line":"    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.py\""},{"line_number":54,"context_line":"    state: link"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_dd0ea639","line":51,"range":{"start_line":46,"start_character":4,"end_line":51,"end_character":91},"updated":"2018-08-28 10:55:05.000000000","message":"In the same way as above, those two are \n\n{{ horizon_lib_dir }}/*/conf/*\n\nand \n\n{{ horizon_lib_dir }}/*/local_settings.d/*\n\nThey deserve to behave like others.","commit_id":"c8a690a590f99a64b09728a21214754c9249d121"},{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"2739b18a5ee823c7362d02665fa4e6cb12b1047c","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  {{ path_list }}"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"_horizon_extra_files:"},{"line_number":46,"context_line":"  - src: \"{{ horizon_lib_dir }}/heat_dashboard/conf/heat_policy.json\""},{"line_number":47,"context_line":"    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/conf/heat_policy.json\""},{"line_number":48,"context_line":"    state: \"{{ horizon_enable_heat_ui | ternary(horizon_panel_enable_state, \u0027absent\u0027) }}\""},{"line_number":49,"context_line":"  - src: \"{{ horizon_lib_dir }}/sahara_dashboard/local_settings.d/_12_toggle_data_upload_max_number_fields.py\""},{"line_number":50,"context_line":"    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.d/_12_toggle_data_upload_max_number_fields.py\""},{"line_number":51,"context_line":"    state: \"{{ horizon_enable_sahara_ui | ternary(horizon_panel_enable_state, \u0027absent\u0027) }}\""},{"line_number":52,"context_line":"  - src: \"/etc/horizon/local_settings.py\""},{"line_number":53,"context_line":"    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.py\""},{"line_number":54,"context_line":"    state: link"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_1f028f3f","line":51,"range":{"start_line":46,"start_character":4,"end_line":51,"end_character":91},"in_reply_to":"3f79a3b5_dd0ea639","updated":"2018-08-30 18:11:10.000000000","message":"Unfortunatelly, the same thing with find here as well - it doesn\u0027t accept \u0027*\u0027 inside path.","commit_id":"c8a690a590f99a64b09728a21214754c9249d121"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"946b546b5a728471245e5e31a0a9db73e1cf3199","unresolved":false,"context_lines":[{"line_number":49,"context_line":"  - src: \"{{ horizon_lib_dir }}/sahara_dashboard/local_settings.d/_12_toggle_data_upload_max_number_fields.py\""},{"line_number":50,"context_line":"    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.d/_12_toggle_data_upload_max_number_fields.py\""},{"line_number":51,"context_line":"    state: \"{{ horizon_enable_sahara_ui | ternary(horizon_panel_enable_state, \u0027absent\u0027) }}\""},{"line_number":52,"context_line":"  - src: \"/etc/horizon/local_settings.py\""},{"line_number":53,"context_line":"    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.py\""},{"line_number":54,"context_line":"    state: link"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"_horizon_translations_pull:"},{"line_number":57,"context_line":"  - project: \"horizon\""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_fd092230","line":54,"range":{"start_line":52,"start_character":0,"end_line":54,"end_character":15},"updated":"2018-08-28 10:55:05.000000000","message":"that only leaves us with this setting, which can stay like it was before.","commit_id":"c8a690a590f99a64b09728a21214754c9249d121"}]}
