From 317ada19551f246f2615b7e099ecf5d2411700db Mon Sep 17 00:00:00 2001 From: Bill Riehl Date: Thu, 31 May 2018 14:28:12 -0700 Subject: [PATCH] fixed some slowdown in report fetching --- kbase.yml | 2 +- lib/NarrativeService/ReportFetcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kbase.yml b/kbase.yml index 2c6fe33..46417ae 100644 --- a/kbase.yml +++ b/kbase.yml @@ -8,7 +8,7 @@ service-language: python module-version: - 0.0.8 + 0.0.9 owners: [rsutormin, msneddon, wjriehl] diff --git a/lib/NarrativeService/ReportFetcher.py b/lib/NarrativeService/ReportFetcher.py index d7fb165..29a90a0 100644 --- a/lib/NarrativeService/ReportFetcher.py +++ b/lib/NarrativeService/ReportFetcher.py @@ -31,7 +31,7 @@ def find_report_from_copy_source(self, upa): Fetch the info about this object. If it's a copy, run find_report_from_object on its source. If it's not, return an error state, or just an empty list for the upas. """ - obj_data = self.ws_client.get_objects2({'objects': [{'ref': upa}]})['data'][0] + obj_data = self.ws_client.get_objects2({'objects': [{'ref': upa}], 'no_data': 1})['data'][0] if obj_data.get('copy_source_inaccessible', 0) == 1: err = "No report found. This object is a copy, and its source is inaccessible." return self.build_output(upa, [], inaccessible=1, error=err)