wire up geneset reducer (#2082)

* first cut at GET /genesets route

* update existing tests to match code changes

* more GET /genesets and initial tests

* add missing test fixture

* geneset validation accepts OTA format

* genesets route: better error handling, more tests

* lint

* genesets reducer and initial load

* fix lint

* add autosave support for genesets

* remove debug logging

* fix typo

* fix another typo

* update smoke test config for genesets

* smoke test fixes

* more fiddling with smoke tests
This commit is contained in:
Bruce Martin
2021-03-02 12:12:58 -08:00
committed by GitHub
parent b3aadf6632
commit b00496198d
8 changed files with 1082 additions and 19 deletions
@@ -108,7 +108,7 @@ class AnnotationsLocalFile(Annotations):
def read_genesets(self, data_adaptor, context=None):
if has_request_context():
if not current_app.auth.is_user_authenticated():
return ([], None)
return ({}, self.last_geneset_tid)
fname = self._get_genesets_filename(data_adaptor)
genesets = {}
@@ -165,7 +165,7 @@ class AnnotationsLocalFile(Annotations):
output_file = self.label_output_file or self.genesets_output_file
if output_file:
return os.path.dirname(self.path.abspath(output_file))
return os.path.dirname(os.path.abspath(output_file))
return os.getcwd()