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

Commit

Permalink
Merge pull request #60 from KPMP/KPMP-2010_Workflow_Type_Filter
Browse files Browse the repository at this point in the history
KPMP-2010: Add Workflow Type to filter and table
  • Loading branch information
rlreamy authored Jul 28, 2020
2 parents 785269f + e2793c2 commit 742726c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5252,6 +5252,9 @@ type FileNode implements Node {
# keyword
experimental_strategy: String

# keyword
workflow_type: String

# keyword
file_name: String

Expand Down Expand Up @@ -6359,6 +6362,7 @@ type FileAggregations {
file_autocomplete: Aggregations
average_insert_size: NumericAggregations
sample_id: Aggregations
workflow_type: Aggregations
protocol: Aggregations
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ const presetFacets = [
full: 'experimental_strategy',
type: 'keyword',
},
{
field: 'workflow_type',
full: 'workflow_type',
type: 'keyword',
},
{
field: 'data_format',
full: 'data_format',
Expand Down Expand Up @@ -105,6 +110,7 @@ export type TProps = {
data_format: { buckets: [IBucket] },
data_type: { buckets: [IBucket] },
experimental_strategy: { buckets: [IBucket] },
workflow_type: { buckets: [IBucket] },
platform: { buckets: [IBucket] },
},
theme: Object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ export default (Component: ReactClass<*>) =>
key
}
}
workflow_type {
buckets {
doc_count
key
}
}
data_format {
buckets {
doc_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@ const filesTableModel = [
downloadable: true,
hidden: true,
},
{
name: 'Workflow Type',
id: 'workflow_type',
th: () => <Th>Workflow Type</Th>,
td: ({ node }) => <Td>{node.workflow_type || '--'}</Td>,
sortable: true,
downloadable: true,
hidden: true,
},
{
name: 'Platform',
id: 'platform',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default (Component: ReactClass<*>) =>
file_size
access
data_category
workflow_type
data_format
data_type
experimental_strategy
Expand Down

0 comments on commit 742726c

Please # to comment.