Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.11.0 #2086

Merged
merged 13 commits into from
Sep 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ public/locales/*

# local certificates are generated when testing production build
*.pem
.vscode/settings.json
22 changes: 22 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Release notes for kf-portal-ui

## 2019-09-25 kf-portal-ui 2.11.0

This release fixes performance issues in the File Repository along with some bug fixes.

### Includes

#### kids-first/kf-portal-ui

- [#2027](https://github.com/kids-first/kf-portal-ui/issues/2027) File Repository: Remove some fields from "Browse all" to fix performance issues
- [#1564](https://github.com/kids-first/kf-portal-ui/issues/1564) File Repository: Browse all filters: Return only the values that match the query
- [#2080](https://github.com/kids-first/kf-portal-ui/issues/2080) Cohort Builder: Remove the "Beta" banner 🎉

### Bug fixes

#### kids-first/kf-portal-ui

- [#2060](https://github.com/kids-first/kf-portal-ui/issues/2060) Cohort Builder: Participants are displayed as "Kf Id" instead of "Participants Ids" in the Cohort Builder
- [#2004](https://github.com/kids-first/kf-portal-ui/issues/2004) File Repository: Remove weird column names in columns selection dropdown
- [#2072](https://github.com/kids-first/kf-portal-ui/issues/2072) Download Clinical Data: HPOs related columns are always empty

## 2019-09-11 kf-portal-ui 2.10.0

This release introduces Histological Diagnoses, a revamping of the member page, some backend features for members search (front end coming later), along with some bug fixes.
Expand All @@ -9,6 +29,8 @@ This release introduces Histological Diagnoses, a revamping of the member page,
#### kids-first/kf-portal-ui

- [#2028](https://github.com/kids-first/kf-portal-ui/issues/2028) Histological Diagnoses: Add filters to Cohort Builder
- [#2019](https://github.com/kids-first/kf-portal-ui/issues/2019) Histological Diagnoses: Modify Diagnoses Table in Participant Entity Page to include Specimen ID and an icon
- [#2068](https://github.com/kids-first/kf-portal-ui/issues/2068) Histological Diagnoses: add diagnostic icon to biospecimen chip
- [#1247](https://github.com/kids-first/kf-portal-ui/issues/1247) Member page: Make my profile non-searchable (private profile)
- [#1287](https://github.com/kids-first/kf-portal-ui/issues/1287) Member page: View someone's member's page
- [#2023](https://github.com/kids-first/kf-portal-ui/issues/2023) Search by entity IDs: frontend
Expand Down
133 changes: 99 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "kf-portal-ui",
"version": "2.10.0",
"version": "2.11.0",
"private": true,
"dependencies": {
"@kfarranger/admin-ui": "~1.3.1",
"@kfarranger/components": "1.3.3",
"@kfarranger/components": "^1.4.0",
"@nivo/bar": "^0.51.0",
"@nivo/core": "^0.51.0",
"@nivo/pie": "^0.51.0",
Expand Down
28 changes: 7 additions & 21 deletions src/components/CohortBuilder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import SqonBuilder from './SqonBuilder';
import SQONProvider from './SQONProvider';
import VirtualStudiesMenu from './VirtualStudiesMenu';
import ParticipantIcon from 'icons/ParticipantIcon';
import PromptMessage from 'uikit/PromptMessage';

const Container = styled('div')`
width: 100%;
Expand All @@ -42,10 +41,6 @@ const Content = styled(ContentBar)`
margin-top: 0;
`;

const StylePromptMessage = styled(PromptMessage)`
width: 100%;
`;

const CohortBuilder = compose(
withApi,
withTheme,
Expand Down Expand Up @@ -116,28 +111,19 @@ const CohortBuilder = compose(

return (
<Container>
<StylePromptMessage
content={
<div>
<strong>BETA RELEASE: </strong>Use the cohort builder to create virtual studies. You
can query participant variables including demographic, clinical, and data
categories. It's in progress, so you may experience some bugs. To give feedback,
click the button in the bottom right corner. All feedback is welcome!
</div>
}
/>

<VirtualStudiesMenu />

<FullWidthWhite>
<Content>
<Categories sqon={executableSqon} onSqonUpdate={categoriesSqonUpdate} />
</Content>
<SqonBuilderContainer css={`
.sqonView {
margin-right: 60px;
}
`}>
<SqonBuilderContainer
css={`
.sqonView {
margin-right: 60px;
}
`}
>
<SqonBuilder
syntheticSqons={syntheticSqons}
activeSqonIndex={activeSqonIndex}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ export default compose(
const gqlAggregationFields = types.find(
({ name }) => name === `${graphqlField}Aggregations`,
).fields;
const extendAggsConfig = config =>
config
.filter(({ show }) => show)
.map(config => ({
...config,
type: gqlAggregationFields.find(
fileAggField => config.field === fileAggField.name,
).type.name,
}));
const extendAggsConfig = fieldNames => {
return fieldNames.map(fieldName => ({
field: fieldName,
show: true,
type: gqlAggregationFields.find(
fileAggField => fieldName === fileAggField.name,
).type.name,
}));
};
const renderAggsConfig = ({ aggConfig, quickSearchFields = [] }) => (
<AggregationsList
{...{
Expand Down
Loading