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

Branch merges

Related bugs

Related blueprints

Branch information


Recent revisions

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

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


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.



Approved by Juju Gui Bot.

513. By Brad Crittenden

New test fails consistently in Jenkins.

An example failure is at:

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.



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.


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.


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: '',

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.



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:
This branch contains Public information 
Everyone can see this information.