8 Commits

Author SHA1 Message Date
Doug Fish
3531d7bb9a Revert "Refactoring the exceptions lists"
This reverts commit 7fc1baad3a909465423810758a8d83c4715a1010.

Change-Id: I495e76eea8c873d71b37625b0953d821156c599c
Closes-Bug: 1440903
2015-04-06 16:49:17 -05:00
George Peristerakis
7fc1baad3a Refactoring the exceptions lists
The exception list is not properly used. The exception list is a
settings constant that can be modified within the settings file.  Having
the list in openstack_dashboard/exceptions.py confuses the
developers. The list of exceptions are moved in the settings file and
removed all duplications.

Partially Implements: blueprint improve-error-message-details-for-usability
Change-Id: I5e19c3f0b84b17fa28f6e3c113467cc19d9b0a03
2015-04-01 15:00:30 -04:00
Jenkins
30e014cf25 Merge "Rest API for Users list filter" 2015-03-06 01:15:32 +00:00
Mike Hagedorn
255340c596 REST API to support create instance angular (Neutron).
In this update:
- fixed tests
- fixed exception handling, params on ports
- fixed to_dict for a number of cases
- replaced use of request.DATA with request.GET for GET methods
- added handling of HTTP error raised with no status/code attr
- removed check for network_id in subnets as it's not required
- fix to_dict for Network with Subnets

Supercedes
https://review.openstack.org/#/c/152243
https://review.openstack.org/#/c/151313

Partially Implements: blueprint launch-instance-redesign
Co-Authored-By: Aaron Sahlin <asahlin@us.ibm.com>
Co-Authored-By: Michael Hagedorn <mike.hagedorn@hp.com>
Co-Authored-By: Richard Jones <r1chardj0n3s@gmail.com>

Change-Id: Ia40fde6d66720a03a531b516a6a53a2e86ec0d8f
2015-03-04 07:20:43 -05:00
Cindy Lu
2cca73ff5f Rest API for Users list filter
Add the filter functionality that Keystone supports.
Used by Randy's Magic Search patch:
https://review.openstack.org/#/c/151386/.

Also refactor out parse_filters_kwargs method which is used
by several rest api.

Co-Authored-By: Justin Pomeroy <jpomero@linux.vnet.ibm.com>

Change-Id: Ib65395eae345e1368fbb45f6b4ce3cbb9595d61b
Partially-Implements: blueprint filtered-client-side-table
2015-03-02 13:12:05 -08:00
Richard Jones
64f7bad172 Alter verb usage for keystone REST and add Angular service
This patch adds an Angular service to isolate client-side code from REST API
changes, and also changes the REST API to use PATCH instead of PUT as the
update verb. Except the one new PUT method for granting a role.

Multiple DELETE is removed from the overloaded POST actions, and the role
grant is moved to a PUT action.

The new angular API service implements error handling by default.

The request Python API JSON body test was made more sane. Thanks to all the
reviewers who brought that up, I finally saw the light!

Change-Id: Ifd58fbf4fac3c3f53dc4769fd76cddfa3101d9d2
2015-02-04 04:59:05 +00:00
Masco Kaliyamoorthy
193e66792f adopt namespace-less oslo imports
oslo.config is now deprecated, so switching
from oslo.config to right package oslo_config.

similarly oslo.serialization also deprecated, it
is also switched to oslo_serialization from
oslo.serialization.

Change-Id: I52eff48a17a555750379e4ca6bb024fc71a4efeb
Closes-Bug: #1409733
2015-01-21 12:15:07 +05:30
Richard Jones
cd735d44f3 REST API for angular front end.
This is the start of the API to support the angular front end.

It is missing endpoints not immediately used by angular WIPs other
than the identity re-work, but is enough to start with.

Changes:
- handle additional HTTP status code attribute
- move common helpers from test modules to here

Partially Implements: blueprint angularize-identity-tables

Change-Id: I7495f772be80125fdf52b02883a5b9942db34610
2015-01-13 13:41:49 +13:00