Show most popular charms instead of featured from apiv4 #677
Conversation
…browser to the most popular charm search results
To QAYou should no longer see Featured, Interesting, and New in the charmbrowser on initial load. Instead you should see the most popular charms. |
👍 on the code. Found a dupe showing between recommended and others during QA. Recommended: http://cl.ly/image/2c2P3b1G221Y Note that juju-gui/precise is in both lists. Once that's fixed, QA is OK. |
Test PASSed. |
I'm going to make some modifications to how this branch works before I land it:
|
I'd like to chat about this before we implement new planned changes to te On Saturday, December 13, 2014, Jeff Pihach notifications@github.com
|
This involves no no changes to the API
|
To clarify this is just how the juju GUI will will use the search API
|
Right, @urosj these are only changes to how the GUI will use the data from the query (link) above. |
// get the promulgated version in the results list. This conditional | ||
// can be removed once that bug is fixed in the charmstore. Est around | ||
// the end of Jan 2015 | ||
if (entity.Meta['extra-info']['bzr-owner'] === 'charmers' && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it needs to check if the id has a ~ or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bzr-owner field doesn't have ~ in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I mean the id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am talking of the I'd field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't valid?
…y util method to keep the popular results appearing fresh
Test PASSed. |
Test PASSed. |
QA is good now - the changes make it much better. Thanks! |
Thanks for the reviews and qa's! |
Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/juju-gui-merge |
Show most popular charms instead of featured from apiv4 This branch removes the featured/interesting/new charms from the charm list in the GUI which were being pulled from apiv3 and replaces it with the search results from the 'most popular' charms from apiv4.
This branch removes the featured/interesting/new charms from the charm list in the GUI which were being pulled from apiv3 and replaces it with the search results from the 'most popular' charms from apiv4.