[openstack-dev] [Horizon] dashboard-app split in horizon

Richard Jones r1chardj0n3s at gmail.com
Thu May 28 06:55:39 UTC 2015


I have now submitted the patch to do the html shenanigans as a new step in
the current ngReorg pipeline (inserted because it should fix a test failure
popping up in the dashboard-app move final step).

https://review.openstack.org/#/c/186295/

Ryan's API reorg should probably depend on this patch also as that should
fix *its* test failures also.

And before anyone says anything, no I'm not particularly thrilled about the
new horizon/test/templates/base.html but frankly I'm not sure how else to
make it work. We could probably cull the JS from that file though. I'm
pretty sure none of the django unit tests exercise JS, and I believe
Selenium works off a different interface (but I've run out of time today to
investigate).


     Richard


On Thu, 28 May 2015 at 02:15 Thai Q Tran <tqtran at us.ibm.com> wrote:

> Yes Rob, you are correct. ToastService was something Cindy wrote to
> replace horizon.alert (aka messages). We can't remove it because legacy
> still uses it.
>
> -----"Rob Cresswell (rcresswe)" <rcresswe at cisco.com> wrote: -----
> To: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev at lists.openstack.org>
> From: "Rob Cresswell (rcresswe)" <rcresswe at cisco.com>
> Date: 05/26/2015 11:29PM
>
> Subject: Re: [openstack-dev] [Horizon] dashboard-app split in horizon
>
> Went through the files myself and I concur. Most of these files define
> pieces specific to our implementation of the dashboard, so should be moved.
>
>  I’m not entirely sure on where _messages should sit. As we move forward,
> won’t that file just end up as a <toast> element and nothing more? Maybe
> I’m misinterpreting it, I’m not familiar with toastService.
>
>  Rob
>
>
>   From: Richard Jones <r1chardj0n3s at gmail.com>
> Reply-To: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev at lists.openstack.org>
> Date: Tuesday, 26 May 2015 01:35
> To: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev at lists.openstack.org>
> Cc: "Johanson, Tyr H" <tyr at hp.com>
> Subject: Re: [openstack-dev] [Horizon] dashboard-app split in horizon
>
>   As a follow-up to this [in the misguided hope that anyone will actually
> read this conversation with myself ;-)] I've started looking at the
> base.html split. At the summit last week, we agreed to:
>
>  1. move base.html over from the framework to the dashboard, and
> 2. move the _conf.html and _scripts.html over as well, since they
> configure the application (dashboard).
>
>  Upon starting the work it occurs to me that all of the other files
> referenced by base.html should also move. So, here's the complete list of
> base.html components and whether they should move over in my opinion:
>
>  - horizon/_custom_meta.html
>   Yep, is an empty file in horizon, intended as an extension point in
> dashboard. The empty file (plus an added comment) should move.
>   - horizon/_stylesheets.html
>   Is just a dummy in horizon anyway, should move.
> - horizon/_conf.html
>   Yep, should move.
> - horizon/client_side/_script_loader.html
>   Looks to be a framework component not intended for override, so we
> should leave it there.
> - horizon/_custom_head_js.html
>    Yep, is an empty file in horizon, intended as an extension point in
> dashboard. Move, with a comment added.
>  - horizon/_header.html
>   There is a basic implementation in framework but the real (used)
> implementation is in dashboard, so should move.
> - horizon/_messages.html
>   This is a framework component, so I think should stay there. I'm not
> sure whether anyone would ever wish to override this. Also the bulk of it
> is probably going to be replaced by the <toast> implementation anyway...
> hmm...
> - horizon/common/_sidebar.html
>   This is an overridable component that I think should move.
> - horizon/common/_page_header.html
>   This is an overridable component that I think should move.
> - horizon/_scripts.html
>    Yep, should move.
>
>  Thoughts, anyone who has read this far?
>
>
>      Richard
>
>
> On Sat, 23 May 2015 at 11:46 Richard Jones <r1chardj0n3s at gmail.com> wrote:
>
>>  As part of the ongoing Horizon project code reorganisation, we today
>> agreed to clean up the Horizon-the-Framework and OpenStack Dashboard
>> separation issue by doing a couple of things:
>>
>>  1. nuke (the recently-created) horizon dashboard-app by moving the
>> angular app over to dashboard and the other contents to appropriate places
>> (mostly under the heading of "tech-debt" :)
>> 2. move base.html, _conf.html and _scripts.html from horizon over to
>> dashboard.
>>
>>  Thanks to Cindy, Sean and Thai for the pair (er triple?) programming
>> keeping me honest today.
>>
>>  The first step is done and captured in several linked patches based off
>> your leaf patch "ngReorg - Create dashboard-app" <
>> https://review.openstack.org/#/c/184597/> (yes, I am nuking the thing
>> created by your patch).
>>
>>  I've not done the second step, but might find some time since I have 6
>> hours to waste in LAX tomorrow.
>>
>>
>>       Richard
>>
>>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150528/33aea90c/attachment.html>


More information about the OpenStack-dev mailing list