Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Collection of tasks to move the GUI towards apiv4 #703
Conversation
To QAOpen and close the charm details pane, navigate around them, change tabs, switch charms, etc. It should all work as expected |
hatched
reviewed
Mar 10, 2015
| @@ -27,8 +27,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| YUI.add('juju-charm-models', function(Y) { | ||
| - var RECENT_DAYS = 30; |
hatched
Mar 10, 2015
Owner
Because of the format of the new api data the recentcommits code is no longer necessary
hatched
reviewed
Mar 10, 2015
| - filters = ''; | ||
| - } | ||
| + var filters = 'include=bundle-metadata&include=charm-metadata' + | ||
| + '&include=charm-config&include=manifest&include=extra-info'; |
hatched
Mar 10, 2015
Owner
consolidating these together is the first step in making the GUI support bundle and charms in the same namespace. (future)
hatched
reviewed
Mar 10, 2015
| @@ -1,352 +1,455 @@ | ||
| { | ||
| - "charm": { |
hatched
Mar 10, 2015
Owner
This is changing the test json data into the apiv4 processed data format - you can skip this file.
|
Test FAILed. |
|
Spurious failure |
jaycee
reviewed
Mar 10, 2015
| + this.get('charmstore').getEntity( | ||
| + this.get('entityId'), | ||
| + function(charms) { | ||
| + var charm = charms[0]; |
jaycee
Mar 10, 2015
Member
I'm a little confused on what you're getting back on getEntity and how we know we always just want the first one.
hatched
Mar 10, 2015
Owner
The data returned from getEntity goes through a few transform methods, one of them handles transforming objects into the Charm models. Because this method is used in many different places it returns an array of items. In this case though we know for sure that we are only going to get a single response back from the api so that's why I'm grabbing the first one.
|
|
|
|
|
Thanks a lot for the qa's and reviews guys! |
hatched
added some commits
Mar 9, 2015
|
Test FAILed. |
|
Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/juju-gui-merge |
hatched commentedMar 10, 2015
This branch contains 4 separate tasks to move the GUI away from apiv3 and to apiv4.
Completed: