<div dir="ltr">Hi Horizon Team,<br><br>I reported a bug about lack of ``ADD_<span class="" id=":1rm.1" tabindex="-1" style="">XSTATIC</span>_MODULES`` <span class="" id=":1rm.2" tabindex="-1" style="">plugin</span> option,<div> and submitted a patch for it. </div><div>Could you please help to review the patch.</div><div><br><a href="https://bugs.launchpad.net/horizon/+bug/1755339">https://bugs.launchpad.net/horizon/+bug/1755339</a><br><a href="https://review">https://review</a>.<span class="" id=":1rm.3" tabindex="-1" style="">openstack</span>.org/#/c/552259/<br><br>Thank you very much.</div><div><br></div><div>Best Regards,<br><div><span class="" id=":1rm.4" tabindex="-1" style="">Xinni</span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 13, 2018 at 6:41 PM, Ivan Kolodyazhny <span dir="ltr"><<a href="mailto:e0ne@e0ne.info" target="_blank">e0ne@e0ne.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Kaz,<div><br></div><div>Thanks for cleaning this up. I put +1 on both of these patches</div></div><div class="gmail_extra"><br clear="all"><div><div class="m_3636290494570295753gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,<br>Ivan Kolodyazhny,<br><a href="http://blog.e0ne.info/" target="_blank">http://blog.e0ne.info/</a></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Tue, Mar 13, 2018 at 4:48 AM, Kaz Shinohara <span dir="ltr"><<a href="mailto:ksnhr.tech@gmail.com" target="_blank">ksnhr.tech@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ivan & Horizon folks,<br>
<br>
<br>
Now we are submitting a couple of patches to have the new xstatic modules.<br>
Let me request you to have review the following patches.<br>
We need Horizon PTL's +1 to move these forward.<br>
<br>
project-config<br>
<a href="https://review.openstack.org/#/c/551978/" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/551978/</a><br>
<br>
governance<br>
<a href="https://review.openstack.org/#/c/551980/" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/551980/</a><br>
<br>
Thanks in advance:)<br>
<br>
Regards,<br>
Kaz<br>
<div class="m_3636290494570295753HOEnZb"><div class="m_3636290494570295753h5"><br>
<br>
2018-03-12 20:00 GMT+09:00 Radomir Dopieralski <<a href="mailto:openstack@sheep.art.pl" target="_blank">openstack@sheep.art.pl</a>>:<br>
> Yes, please do that. We can then discuss in the review about technical<br>
> details.<br>
><br>
> On Mon, Mar 12, 2018 at 2:54 AM, Xinni Ge <<a href="mailto:xinni.ge1990@gmail.com" target="_blank">xinni.ge1990@gmail.com</a>> wrote:<br>
>><br>
>> Hi, Akihiro<br>
>><br>
>> Thanks for the quick reply.<br>
>><br>
>> I agree with your opinion that BASE_XSTATIC_MODULES should not be<br>
>> modified.<br>
>> It is much better to enhance horizon plugin settings,<br>
>> and I think maybe there could be one option like ADD_XSTATIC_MODULES.<br>
>> This option adds the plugin's xstatic files in STATICFILES_DIRS.<br>
>> I am considering to add a bug report to describe it at first, and give a<br>
>> patch later maybe.<br>
>> Is that ok with the Horizon team?<br>
>><br>
>> Best Regards.<br>
>> Xinni<br>
>><br>
>> On Fri, Mar 9, 2018 at 11:47 PM, Akihiro Motoki <<a href="mailto:amotoki@gmail.com" target="_blank">amotoki@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi Xinni,<br>
>>><br>
>>> 2018-03-09 12:05 GMT+09:00 Xinni Ge <<a href="mailto:xinni.ge1990@gmail.com" target="_blank">xinni.ge1990@gmail.com</a>>:<br>
>>> > Hello Horizon Team,<br>
>>> ><br>
>>> > I would like to hear about your opinions about how to add new xstatic<br>
>>> > modules to horizon settings.<br>
>>> ><br>
>>> > As for Heat-dashboard project embedded 3rd-party files issue, thanks<br>
>>> > for<br>
>>> > your advices in Dublin PTG, we are now removing them and referencing as<br>
>>> > new<br>
>>> > xstatic-* libs.<br>
>>><br>
>>> Thanks for moving this forward.<br>
>>><br>
>>> > So we installed the new xstatic files (not uploaded as openstack<br>
>>> > official<br>
>>> > repos yet) in our development environment now, but hesitate to decide<br>
>>> > how to<br>
>>> > add the new installed xstatic lib path to STATICFILES_DIRS in<br>
>>> > openstack_dashboard.settings so that the static files could be<br>
>>> > automatically<br>
>>> > collected by *collectstatic* process.<br>
>>> ><br>
>>> > Currently Horizon defines BASE_XSTATIC_MODULES in<br>
>>> > openstack_dashboard/utils/sett<wbr>ings.py and the relevant static fils are<br>
>>> > added<br>
>>> > to STATICFILES_DIRS before it updates any Horizon plugin dashboard.<br>
>>> > We may want new plugin setting keywords ( something similar to<br>
>>> > ADD_JS_FILES)<br>
>>> > to update horizon XSTATIC_MODULES (or directly update<br>
>>> > STATICFILES_DIRS).<br>
>>><br>
>>> IMHO it is better to allow horizon plugins to add xstatic modules<br>
>>> through horizon plugin settings. I don't think it is a good idea to<br>
>>> add a new entry in BASE_XSTATIC_MODULES based on horizon plugin<br>
>>> usages. It makes difficult to track why and where a xstatic module in<br>
>>> BASE_XSTATIC_MODULES is used.<br>
>>> Multiple horizon plugins can add a same entry, so horizon code to<br>
>>> handle plugin settings should merge multiple entries to a single one<br>
>>> hopefully.<br>
>>> My vote is to enhance the horizon plugin settings.<br>
>>><br>
>>> Akihiro<br>
>>><br>
>>> ><br>
>>> > Looking forward to hearing any suggestions from you guys, and<br>
>>> > Best Regards,<br>
>>> ><br>
>>> > Xinni Ge<br>
>>> ><br>
>>> ><br>
>>> > ______________________________<wbr>______________________________<wbr>______________<br>
>>> > OpenStack Development Mailing List (not for usage questions)<br>
>>> > Unsubscribe:<br>
>>> > <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
>>> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
>>> ><br>
>>><br>
>>><br>
>>> ______________________________<wbr>______________________________<wbr>______________<br>
>>> OpenStack Development Mailing List (not for usage questions)<br>
>>> Unsubscribe:<br>
>>> <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> 葛馨霓 Xinni Ge<br>
>><br>
>> ______________________________<wbr>______________________________<wbr>______________<br>
>> OpenStack Development Mailing List (not for usage questions)<br>
>> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
>><br>
><br>
><br>
> ______________________________<wbr>______________________________<wbr>______________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
><br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</div></div></blockquote></div><br></div></div></div>
<br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>葛馨霓 Xinni Ge</div></div></div></div></div></div>
</div>