-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Features/2828/tools project links (#782)
* Displayed Quay.io link and other links dockstore/dockstore#2828 Set up the ImageProviderService for search.service.ts allowing the tools data to merge with the images (quay.io and other links) before pushing the data into the Akita 'store' state. Set up the imageProviderService in filterEntry after the method has determined that hit['_type'] is a tool Modified the filterEntry method in search.service.ts to return a tuple in order to unit test without side effects. * Defined an Interface of Hit and replaced Array<Any> in filterEntry and all associated methods with Array<Hit>
- Loading branch information
Showing
4 changed files
with
191 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ import { WorkflowVersion } from '../shared/swagger'; | |
import { OrgToolObject } from '../mytools/my-tool/my-tool.component'; | ||
import { WebserviceDescriptorTypeEnum } from '../shared/descriptor-type-compat.service'; | ||
import DescriptorTypeEnum = Workflow.DescriptorTypeEnum; | ||
import { Hit } from '../search/state/search.service'; | ||
|
||
export const updatedWorkflow: Workflow = { | ||
descriptorType: DescriptorTypeEnum.CWL, | ||
|
@@ -456,3 +457,139 @@ export const testSourceFiles: Array<SourceFile> = [ | |
} | ||
} | ||
]; | ||
|
||
export const elasticSearchResponse: Hit[] = [ | ||
{ | ||
_index: 'entry', | ||
_type: 'tool', | ||
_id: '2313', | ||
_score: 1, | ||
_source: { | ||
tool_maintainer_email: '', | ||
aliases: {}, | ||
default_dockerfile_path: '/delly_docker/Dockerfile', | ||
is_published: true, | ||
toolname: null, | ||
last_modified_date: null, | ||
checker_id: null, | ||
private_access: false, | ||
descriptorType: ['CWL'], | ||
mode: 'MANUAL_IMAGE_PATH', | ||
lastBuild: null, | ||
lastUpdated: 1513149095843, | ||
path: 'registry.hub.docker.com/weischenfeldt/pcawg_delly_workflow', | ||
defaultCWLTestParameterFile: '/test.json', | ||
workflowVersions: [ | ||
{ | ||
doiURL: null, | ||
dbUpdateDate: null, | ||
versionEditor: null, | ||
verifiedSource: null, | ||
verified: false, | ||
referenceType: 'UNSET', | ||
frozen: false, | ||
commitID: null, | ||
dockerfile_path: '/delly_docker/Dockerfile', | ||
last_built: null, | ||
doiStatus: 'NOT_REQUESTED', | ||
wdl_path: '/delly_docker/Dockstore.wdl', | ||
automated: false, | ||
size: 0, | ||
cwl_path: '/delly_docker/Dockstore.cwl', | ||
id: 8459, | ||
image_id: '' | ||
}, | ||
{ | ||
doiURL: null, | ||
dbUpdateDate: null, | ||
versionEditor: null, | ||
verifiedSource: null, | ||
verified: false, | ||
referenceType: 'UNSET', | ||
frozen: false, | ||
commitID: null, | ||
dockerfile_path: '/delly_docker/Dockerfile', | ||
last_built: null, | ||
doiStatus: 'NOT_REQUESTED', | ||
wdl_path: '/delly_docker/Dockstore.wdl', | ||
automated: false, | ||
size: 0, | ||
cwl_path: '/delly_docker/Dockstore.cwl', | ||
id: 8458, | ||
image_id: '' | ||
} | ||
], | ||
has_checker: false, | ||
id: 2313, | ||
last_modified: null, | ||
email: '[email protected]', | ||
default_wdl_path: '/delly_docker/Dockstore.wdl', | ||
tool_path: 'registry.hub.docker.com/weischenfeldt/pcawg_delly_workflow', | ||
registry: 'DOCKER_HUB', | ||
dbUpdateDate: null, | ||
registry_string: 'registry.hub.docker.com', | ||
tags: null, | ||
dbCreateDate: null, | ||
topicId: null, | ||
custom_docker_registry_path: 'registry.hub.docker.com', | ||
default_cwl_path: '/delly_docker/Dockstore.cwl', | ||
name: 'pcawg_delly_workflow', | ||
namespace: 'weischenfeldt', | ||
gitUrl: '[email protected]:weischenfeldt/pcawg_delly_workflow.git', | ||
defaultWDLTestParameterFile: '/test.json', | ||
defaultVersion: 'DELLYlegacy' | ||
} | ||
}, | ||
{ | ||
_index: 'entry', | ||
_type: 'workflow', | ||
_id: '2210', | ||
_score: 1, | ||
_source: { | ||
aliases: {}, | ||
is_published: true, | ||
last_modified_date: null, | ||
is_checker: false, | ||
checker_id: null, | ||
type: 'BioWorkflow', | ||
repository: 'Ginny-9609498', | ||
source_control_provider: 'GITHUB', | ||
descriptorType: 'CWL', | ||
full_workflow_path: 'github.com/smc-rna-challenge/Ginny-9609498/Ginny-9609498', | ||
mode: 'FULL', | ||
lastUpdated: 1496192152500, | ||
path: 'github.com/smc-rna-challenge/Ginny-9609498', | ||
workflowVersions: [ | ||
{ | ||
doiURL: null, | ||
dbUpdateDate: null, | ||
subClass: null, | ||
versionEditor: null, | ||
verifiedSource: null, | ||
verified: false, | ||
frozen: false, | ||
referenceType: 'UNSET', | ||
commitID: null, | ||
id: 8288, | ||
doiStatus: 'NOT_REQUESTED' | ||
} | ||
], | ||
sourceControl: 'github.com', | ||
has_checker: false, | ||
id: 2210, | ||
last_modified: null, | ||
email: '[email protected]', | ||
dbUpdateDate: null, | ||
author: 'Ginny', | ||
defaultTestParameterFilePath: '/test.json', | ||
workflowName: 'Ginny-9609498', | ||
workflow_path: '/main.cwl', | ||
dbCreateDate: null, | ||
topicId: null, | ||
parent_id: null, | ||
organization: 'smc-rna-challenge', | ||
gitUrl: '[email protected]:smc-rna-challenge/Ginny-9609498.git', | ||
defaultVersion: null | ||
} | ||
} | ||
]; |