Skip to content

Commit

Permalink
Fix project and seqtype selector in insights dashboard (#968)
Browse files Browse the repository at this point in the history
* Fix project and seqtype selector in insights dashboard

* Bump version: 7.4.2 → 7.4.3

* Revert package.json update
  • Loading branch information
EddieLF authored Oct 1, 2024
1 parent 7bd9882 commit c6b2492
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 7.4.2
current_version = 7.4.3
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>[A-z0-9-]+)
Expand Down
2 changes: 1 addition & 1 deletion api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from db.python.utils import get_logger

# This tag is automatically updated by bump2version
_VERSION = '7.4.2'
_VERSION = '7.4.3'


logger = get_logger()
Expand Down
2 changes: 1 addition & 1 deletion deploy/python/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.2
7.4.3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
setup(
name=PKG,
# This tag is automatically updated by bump2version
version='7.4.2',
version='7.4.3',
description='Python API for interacting with the Sample API system',
long_description=readme,
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metamist",
"version": "7.4.2",
"version": "7.4.3",
"private": true,
"dependencies": {
"@apollo/client": "^3.11.5",
Expand Down
11 changes: 6 additions & 5 deletions web/src/pages/insights/ProjectAndSeqTypeSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ const Selector: React.FC<SelectorProps> = ({
specialSelectionLabel,
specialSelectionItems,
}) => {
const handleChange = (data: DropdownProps) => {
const value = data.value as string[] | undefined
if (value) {
onSelectionChange(value)
}
const handleChange = (event: React.SyntheticEvent<HTMLElement>, data: DropdownProps) => {
const value = data.value as string[]
onSelectionChange(value)
}

const handleSpecialSelection = () => {
Expand Down Expand Up @@ -95,6 +93,9 @@ const ProjectAndSeqTypeSelector: React.FC<ProjectAndSeqTypeSelectorProps> = ({
selectedItems={selectedProjects}
onSelectionChange={onProjectChange}
title="Projects"
// Special selection for all projects without "-test" suffix
specialSelectionLabel="All Projects (excluding test)"
specialSelectionItems={projects.filter((project) => !project.endsWith('-test'))}
/>
<Selector
items={seqTypes}
Expand Down

0 comments on commit c6b2492

Please sign in to comment.