Add Angular defaults panel in admin

Registered by Rajat Vig

Summary
=======
Adding another defaults panel in admin implemented in angular

Motivation
========
The community has agreed to migrate existing panels to angular.js.

Description
=========
The existing defaults page (written using django templates) will be converted to angular js.

UX
===
Uses the exiting table design from other panels.

Wireframes, Mocks, Videos and UI Markup
---------------------------------------------------------
No specific mockups were provided.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Rajat Vig
Direction:
Needs approval
Assignee:
Rajat Vig
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Rob Cresswell

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:defaults_panel,n,z

Addressed by: https://review.openstack.org/205296
    Add angular defaults panel for admin

Gerrit topic: https://review.openstack.org/#q,topic:bp/ng-defaults-panel,n,z

Addressed by: https://review.openstack.org/207126
    WIP : API for getting default quotas in admin

Gerrit topic: https://review.openstack.org/#q,topic:bp/ng-defaults-panel-1,n,z

Addressed by: https://review.openstack.org/209706
    WIP: API for updating default quotas in admin

Addressed by: https://review.openstack.org/214779
    Create a Angular Modules for Admin Dashboard

Gerrit topic: https://review.openstack.org/#q,topic:bug/1485885,n,z

Addressed by: https://review.openstack.org/215721
    WIP : API for Metadata Definitions

Addressed by: https://review.openstack.org/216141
    WIP : Angular panel for Metadata Definitions

Gerrit topic: https://review.openstack.org/#q,topic:bp/ng-metadata-defs-panel,n,z

Addressed by: https://review.openstack.org/218941
    Dashboard Panels should not include SCSS

Addressed by: https://review.openstack.org/205196
    WIP: Add API services for system information

Gerrit topic: https://review.openstack.org/#q,topic:bp/ng-system-information,n,z

Gerrit topic: https://review.openstack.org/#q,topic:bp/ng-flavors,n,z

Addressed by: https://review.openstack.org/234986
    Add angular defaults panel subflows for admin

UX Review: Closed out with the following notes:

We identified that there were lots of requests/factors that needed to be acknowledged (not necessarily implemented):
1. Use of the Wizard-style modal rather than the old modal style
          a. It was agreed that we should use the wizard-style in all cases so that additional steps/areas may be added
2. Inline editing on the main page
          a. It was agreed that we should only do this as a secondary approach
          b. Not all values are editable
3. Selection of units (GB, MB, etc. and/or default increments)
          a. This can’t be done logically since the exact data points displayed and their ranges and nature are not known
          b. In other words, these are just numbers that go into a black box that either accepts or rejects them.
4. Better handling of -1 as “unlimited”
          a. Same problem as 3; cannot be addressed because we cannot be assured of which fields allow for “unlimited” in which contexts.
5. Grouping of defaults
          a. We agreed that this should be doable; both to display the source (name and general type, e.g. ‘Nova’ and ‘Compute’)

Thus the only remaining execution items for Defaults are:
1. Use the Wizard-style modal [kbrown: this has been implemented. The update defaults modal is now using the wizard-style modal]
2. Display the Source as a column in the table [kbrown: also implemented]
3. Group the fields by Source in the wizard [kbrown: done]
          a. Do not separate them into steps
          b. Use standard bootstrap header to separate

Gerrit topic: https://review.openstack.org/#q,topic:bp/angularize-images-table,n,z

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.