Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(files): 2378 case/project/access in ds analys
Browse files Browse the repository at this point in the history
 - fix issue downloading downstream analyses output files throws auth

Closes #2378
  • Loading branch information
alex-wilmer committed May 12, 2016
1 parent 65f1623 commit 65b0d9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/scripts/files/files.controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ module ngApp.files.controllers {
file.downstream_analyses = file.downstream_analyses.reduce(
(prev, curr) =>
prev.concat((curr.output_files || []).map(x =>
_.extend({}, x, { workflow_type: curr.workflow_type }))
_.extend({}, x, {
workflow_type: curr.workflow_type,
cases: file.cases.slice()
}))
),
[]
);
Expand Down Expand Up @@ -105,7 +108,7 @@ module ngApp.files.controllers {
makeSearchPageLink(files: IFile[] = []): any {
if (files.length) {
var filterString = this.$filter("makeFilter")([{
field: 'files.file_id',
field: 'files.file_id',
value: files.map(f => f.file_id)
}], true);
var href = 'search/f?filters=' + filterString;
Expand Down
1 change: 1 addition & 0 deletions app/scripts/files/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module ngApp.files {
"analysis.metadata.read_groups.library_name",
"analysis.metadata.read_groups.sequencing_center",
"analysis.metadata.read_groups.sequencing_date",
"downstream_analyses.output_files.access",
"downstream_analyses.output_files.file_id",
"downstream_analyses.output_files.file_name",
"downstream_analyses.output_files.data_category",
Expand Down

0 comments on commit 65b0d9b

Please sign in to comment.