[openstack-dev] [Horizon] the future of angularjs development in Horizon

Richard Jones r1chardj0n3s at gmail.com
Tue Nov 18 10:36:00 UTC 2014


On 18 November 2014 19:22, Radomir Dopieralski <openstack at sheep.art.pl>
wrote:

> On 18/11/14 00:59, Richard Jones wrote:
> > On 17 November 2014 21:54, Radomir Dopieralski <openstack at sheep.art.pl
> > <mailto:openstack at sheep.art.pl>> wrote:
> >> - Bower in the development environment,
> >> - Bower configuration file in two copies, one for global-requirements,
> >> and one for the Horizon's local requirements. Plus a gate job that makes
> >> sure no new library or version gets included in the Horizon's before
> >> getting into the global-requirements,
> >
> > Could you perhaps elaborate on this? How do you see the workflow working
> > here?
>
> Basically we would have an additional file in the global-requirements
> directory, for listing the JavaScript dependencies. Then we would have a
> check on the Horizon's gate that would check Horizon's Bower
> configuration against that global-requirements file.
>
> This way we keep the same process for JavaScript libraries as we have
> for Python libraries: first you submit a patch to the
> global-requirements and have the dependency accepted by the infra team
> and packagers (checked against licenses, version conflicts, etc.), and
> then you add it to Horizon's dependencies. Of course you can submit both
> patches at once, just the Horizon one will fail the gate until the
> global-requirements one gets merged.
>
> > Given that Horizon already integrates with xstatic, it would be messy
> > (and potentially confusing) to include something so it *also* integrated
> > with bower. I was envisaging us creating a tool which generates xstatic
> > packages from bower packages. I'm not the first to think along these
> > lines
> http://lists.openstack.org/pipermail/openstack-dev/2014-March/031042.html
>
> If we use Bower, we don't need to use Xstatic. It would be pure
> overhead. Bower already takes care of tracking releases and versions,
> and of bundling the files. All we need is a simple line in the
> settings.py telling Django where it puts all the files -- we don't
> really need Xstatic just for that. The packagers can then take those
> Bower packages and turn them into system packages, and just add/change
> the paths in settings.py to where they put the files. All in one place.
>

I guess I got the message that turning bower packages into system packages
was something that the Linux packagers were not keen on. Did I get the
message wrong there? If so, *and* we can get the bower stuff through #infra
and global-requirements then yes, we should totally try to avoid adding the
xstatic layer :)


    Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141118/30ec43eb/attachment.html>


More information about the OpenStack-dev mailing list