lp:~reedobrien/charmworld/es-migration

Created by Reed O'Brien and last modified
Get this branch:
bzr branch lp:~reedobrien/charmworld/es-migration
Only Reed O'Brien can upload to this branch. If you are Reed O'Brien please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Reed O'Brien
Project:
charmworld
Status:
Merged

Recent revisions

517. By Reed O'Brien

Assuages stylistic deviations.

516. By Reed O'Brien

Remove unused bits of the exists in index helper method.

515. By Reed O'Brien

Actually make the migration do reindexing.

514. By Reed O'Brien

Add tests for the ngrams es migration.

Hopefully this finally fixes Bug #1314239 satisfactorily.

While working on getting the tests to prove things right I realized that
the mappings in the index creation bit were redundant to the ones in
ElasticSearchClient.put_mapping. Therefore I removed them.

Previous attempt to deploy failed because there was no migration. Now, the
migration should run automagically when deployed by the bot.

This commit also captures the old mapping so we can test against it.

513. By Reed O'Brien

make es upgrade test more comprehensive

512. By Reed O'Brien

add migration for es and a test for the migration.

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