Move javascript libraries to separate packages
Currently, Horizon bundles a couple of JavaScipt libraries.
This blueprint is to track the removal or move to separate python packages (to be hosted on pypi)
Blueprint information
- Status:
- Complete
- Approver:
- David Lyle
- Priority:
- High
- Drafter:
- Matthias Runge
- Direction:
- Approved
- Assignee:
- Matthias Runge
- Definition:
- Approved
- Series goal:
- Accepted for juno
- Implementation:
- Implemented
- Milestone target:
- 2014.2
- Started by
- David Lyle
- Completed by
- Matthias Runge
Related branches
Related bugs
Sprints
Whiteboard
[2014-01-29 mrunge]: moved javascript part out of separate-dashboard proposal
- split out jquery via django-jquery https:/
- https:/
- unsure about bootstrap support here, maybe this one: https:/
- d3: https:/
cd horizon/static/
$ tree
.
|-- bootstrap
| `-- js
| |-- bootstrap-
| |-- bootstrap.js
| `-- bootstrap.min.js
`-- horizon
|-- js
| |-- angular
| | |-- controllers
| | | `-- dummy.js
| | |-- directives
| | | `-- forms.js
| | `-- horizon.js
| |-- horizon.
| |-- horizon.conf.js
| |-- horizon.cookies.js
| |-- horizon.
| |-- horizon.
| |-- horizon.
| |-- horizon.
| |-- horizon.
| |-- horizon.forms.js
| |-- horizon.heattop.js
| |-- horizon.
| |-- horizon.js
| |-- horizon.
| |-- horizon.messages.js
| |-- horizon.modals.js
| |-- horizon.
| |-- horizon.quota.js
| |-- horizon.
| |-- horizon.tables.js
| |-- horizon.tabs.js
| |-- horizon.
| |-- horizon.users.js
| `-- horizon.utils.js
|-- lib
| |-- angular.js
| |-- d3.v3.min.js
| |-- hogan-2.0.0.js
| |-- jquery
| | |-- jquery.
| | |-- jquery.cookie.js
| | |-- jquery.min.js
| | |-- jquery.
| | |-- jquery.
| | `-- jquery-
| |-- jshint-2.3.0.js
| |-- qhint.js
| |-- qunit
| | |-- qunit.css
| | `-- qunit.js
| |-- rickshaw.js
| |-- spin.jquery.js
| `-- spin.js
`-- tests
|-- jshint.js
|-- messages.js
|-- modals.js
|-- tables.js
`-- templates.js
IMHO everything not starting with horizon needs to go away from here.
[2014-01-30 enykeev] Angular 1.0.2 is ancient. Not only it lacks some extreme useful functions like ng-repeat's 'track by', but it also has a lot of braking changes with both the latest version and the one we are using right now. If we are not going to use something like django-bower (as the owner himself suggests), we should probably contact him and ask to update the package.
[2014-02-18 rdopieralski] Maybe we should consider using XStatic (https:/
Gerrit topic: https:/
Addressed by: https:/
Unbundle jquery from horizon using xstatic
Addressed by: https:/
Upgrade jquery to version 1.10.2 with jquery-migrate
Addressed by: https:/
Unbundle all JavaScript libraries from Horizon
[david-lyle | 2014.07.23] Moving to Juno-3.
Addressed by: https:/
Unbundle bootstrap and use xstatic version
Addressed by: https:/
Upgrade and unbundle jquery-ui
Work Items
Dependency tree
* Blueprints in grey have been implemented.