lp:~bac/charmworld/tag-constraints

Created by Brad Crittenden and last modified
Get this branch:
bzr branch lp:~bac/charmworld/tag-constraints
Only Brad Crittenden can upload to this branch. If you are Brad Crittenden please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Brad Crittenden
Project:
charmworld
Status:
Merged

Recent revisions

517. By Brad Crittenden

Upgrade to use charmworldlib 0.4.2 to allow tags in constraints.

516. By Brad Crittenden

Make ngram searches work.

After the ngram search was deployed it was discovered to only work if 1) using
the API and 2) had autocomplete=true.

Inspecting the code showed the intent for ngram to be used in other
situations, and there was not documented rationale for only using it when
doing autocomplete.

The problem was simply in the query for non-autocomplete the field for the
ngrams was prefixed with 'data.' when it should not have been.

The ngrams fields were moved out of the charm and bundle fields and passed as
separate fields, treated like 'provides' and 'requires', to avoid the
prefixing.

As a result of this change, the search on the manage.jujucharms.com page now
uses ngrams too.

https://codereview.appspot.com/117810044/

R=makyo. Fixes: https://bugs.launchpad.net/bugs/1220909.

Approved by Juju Gui Bot, Matthew Scott.

515. By Reed O'Brien

Call wait_for_green_status() which will hopefully allow the test to pass on slower HW.

Approved by Juju Gui Bot, Reed O'Brien.

514. By Brad Crittenden

Remove mongo-beaker from setup.py.

This bit of configuration causes beaker to try to load the mongo backend
twice, generating confusing error messages in app-exception.log.

https://codereview.appspot.com/95480044/

R=rharding.

Approved by Juju Gui Bot.

513. By Brad Crittenden

New test fails consistently in Jenkins.

An example failure is at:
http://162.213.35.28:8080/job/charmworld-autoland/71/console

The failure is likely caused by the fact the system on Jenkins is freshly
installed and has no existing ElasticSearch initialization. Disabling the
test so it can be investigated while not clogging up the works.

https://codereview.appspot.com/97630044/

R=bac.

Approved by Juju Gui Bot.

512. By Reed O'Brien

This makes the ngram work migrate cleanly. Fixes: https://bugs.launchpad.net/bugs/1314239.

Approved by Juju Gui Bot, Brad Crittenden.

511. By Brad Crittenden

Allow local charm ingestion.

To bin/ingest-queued the new option --local-repo has been added. Give the
path to a parent directory and all subdirectories that are Bazaar branches
will be ingested as charms.

Fixes bug 1319140 where the --debug option wasn't declared in the correct
place, causing bin/enqueue to die. While the work of that script is now a
part of bin/ingest-queued it still has utility as a free-standing script and
is kept.

https://codereview.appspot.com/98280043/

R=jcsackett. Fixes: https://bugs.launchpad.net/bugs/1319140.

Approved by Juju Gui Bot.

510. By Reed O'Brien

Fixes a destructive test in Bug #1317567. Fixes: https://bugs.launchpad.net/bugs/1317567.

Approved by Juju Gui Bot, Brad Crittenden.

509. By Reed O'Brien

adds ngrams as multifield index to name. skips destructive test -- see Bug #1317567.

Approved by Juju Gui Bot, Richard Harding, j.c.sackett.

508. By Brad Crittenden

Include annotations in bundle search results.

The previous attempt at this problem was flawed in that API call for
getting bundles directly pulls from Mongo while search?text= and
search/interesting get results from ElasticSearch.

QA:

Load up some bundles with annotations:

bin/ingest-queued --prefix="~charmers/charms/precise/ntp"
bin/ingest-queued --prefix="~bac"

Change juju-gui to point to locally running charmworld:

diff --git a/app/config-debug.js b/app/config-debug.js
index 39daca6..f2c86b6 100644
--- a/app/config-debug.js
+++ b/app/config-debug.js
@@ -32,7 +32,10 @@ var juju_config = {
   // These are the main application config items used and passed down into all
   // SubApps.
   consoleEnabled: true,
+ //charmworldURL: 'https://manage.jujucharms.com/',
+ charmworldURL: 'http://127.0.0.1:2464/',

Run charmworld and juju-gui. In the GUI wait for the initial results to
load. These are the Featured charms and bundles.

Select the rails-scalable bundle. Note the layout in the inspector. Close
the inspector and then drag the bundle (using the name not the icon) to the
canvas. Note that the layout is the same as the preview.

https://codereview.appspot.com/91140045/

R=jcsackett.

Approved by Juju Gui Bot.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:charmworld
This branch contains Public information 
Everyone can see this information.

Subscribers