Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3100)

Issue 12102043: Fixes #1202636 use pretty names for providers.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by rharding
Modified:
10 years, 9 months ago
Reviewers:
bac, jeff.pihach, mp+177585
Visibility:
Public.

Description

Fixes #1202636 use pretty names for providers. - The test data we import is run on HP cloud but named 'openstack'. - We use the filter UI rules for translating the 'id' of a provider to a pretty name. - Those are updated so that an id of openstack will output HP Cloud since that's what it actually is in testing. - A work item has been brought up with the charmers team to correct the naming to be 100% specific and updates will be coordinated at a later time. - This means there are three tests and only three providers to display in the gui: ec2, local, hp - We add a template helper so that we can share the mapping of id -> pretty name across all of the UI from filters through to the charm details page. https://code.launchpad.net/~rharding/juju-gui/hp-only/+merge/177585 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixes #1202636 use pretty names for providers. #

Total comments: 1

Patch Set 3 : Fixes #1202636 use pretty names for providers. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -16 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/models/browser.js View 1 2 1 chunk +20 lines, -3 lines 0 comments Download
M app/models/charm.js View 1 2 chunks +0 lines, -7 lines 0 comments Download
M app/subapps/browser/views/charm.js View 1 2 chunks +5 lines, -0 lines 0 comments Download
M app/subapps/browser/views/view.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M app/templates/providers.partial View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/test_browser_charm_details.js View 1 chunk +1 line, -1 line 0 comments Download
M test/test_browser_models.js View 1 1 chunk +41 lines, -0 lines 0 comments Download
M test/test_model.js View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 7
rharding
Please take a look.
10 years, 9 months ago (2013-07-30 12:54:22 UTC) #1
bac
LGTM. Thanks Rick. I did not QA this change.
10 years, 9 months ago (2013-07-30 13:01:03 UTC) #2
gary.poster
Hey Rick. Thank you for doing this. QA is bad though: links don't work. Here's ...
10 years, 9 months ago (2013-07-30 13:32:54 UTC) #3
rharding
Please take a look.
10 years, 9 months ago (2013-07-30 14:14:34 UTC) #4
jeff.pihach
LGTM QA is good - links show up with proper names and are clickable.
10 years, 9 months ago (2013-07-30 14:40:15 UTC) #5
bac
LGTM -- I like this new approach https://codereview.appspot.com/12102043/diff/7001/app/models/browser.js File app/models/browser.js (right): https://codereview.appspot.com/12102043/diff/7001/app/models/browser.js#newcode79 app/models/browser.js:79: if (id ...
10 years, 9 months ago (2013-07-30 14:46:47 UTC) #6
rharding
10 years, 9 months ago (2013-07-30 14:56:54 UTC) #7
*** Submitted:

Fixes #1202636 use pretty names for providers.

- The test data we import is run on HP cloud but named 'openstack'.
- We use the filter UI rules for translating the 'id' of a provider to a
pretty name.
- Those are updated so that an id of openstack will output HP Cloud since
that's what it actually is in testing.
- A work item has been brought up with the charmers team to correct the naming
to be 100% specific and updates will be coordinated at a later time.
- This means there are three tests and only three providers to display in the
gui: ec2, local, hp
- We add a template helper so that we can share the mapping of id -> pretty
name across all of the UI from filters through to the charm details page.

R=bac, gary.poster, jeff.pihach
CC=
https://codereview.appspot.com/12102043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b