From 3fcd79536e414d55636c841912efb0f1f40bce5d Mon Sep 17 00:00:00 2001
From: Renzo Frigato <rfrigato@stanford.edu>
Date: Fri, 16 Sep 2016 12:06:00 -0700
Subject: [PATCH] add container info on analysis search outputs

---
 api/handlers/searchhandler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/handlers/searchhandler.py b/api/handlers/searchhandler.py
index 1653b932..ae48b779 100644
--- a/api/handlers/searchhandler.py
+++ b/api/handlers/searchhandler.py
@@ -87,7 +87,7 @@ class SearchHandler(base.RequestHandler):
         return results
 
     def _augment_result(self, result, result_type):
-        if result_type in ['files', 'notes']:
+        if result_type in ['files', 'notes', 'analyses']:
             container = result['_source'].pop('container')
             container_name = result['_source']['container_name']
             result['_source'][container_name[:-1]] = container
-- 
GitLab