Skip to content

Commit

Permalink
fix(variants): SKFP-1404 add FT on export
Browse files Browse the repository at this point in the history
* fix(variants): SKFP-1404 add FT on export

* fix(studies): SKFP-1404 remove sort on public studies columns
  • Loading branch information
AltefrohneGaelle authored Dec 12, 2024
1 parent a28393b commit 407f2c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .env.schema
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ REACT_APP_FT_DASHBOARD_BANNER=true
REACT_APP_FT_DASHBOARD_BANNER_TYPE=info
REACT_APP_FT_DASHBOARD_BANNER_MSG="A wonderful notification"

# FEATURE TOGGLE Variant
REACT_APP_FT_VARIANTS_EXPORT=true

# Landing Page
REACT_APP_FT_LANDING_PAGE=true
REACT_APP_FT_PUBLIC_STUDIES=true
Expand Down
3 changes: 0 additions & 3 deletions src/views/PublicStudies/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export const getColumns = ({
key: 'external_id',
title: intl.get('entities.study.external_id'),
dataIndex: 'external_id',
sorter: { multiple: 1 },
render: (externalId: string) =>
externalId ? (
<ExternalLink
Expand All @@ -70,7 +69,6 @@ export const getColumns = ({
{
key: 'participant_count',
title: intl.get('entities.study.participant_count'),
sorter: { multiple: 1 },
render: (record: IStudiesStatistic) => {
const participantCount = record.participant_count;
return participantCount ? (
Expand Down Expand Up @@ -104,7 +102,6 @@ export const getColumns = ({
key: 'family_count',
title: intl.get('entities.study.family_count'),
dataIndex: 'family_count',
sorter: { multiple: 1 },
render: (family_count: number) =>
family_count ? numberWithCommas(family_count) : TABLE_EMPTY_PLACE_HOLDER,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
IVariantInternalFrequencies,
IVariantStudyEntity,
} from 'graphql/variants/models';
import { getFTEnvVarByKey } from 'helpers/EnvVariables';
import { capitalize, isEmpty } from 'lodash';
import SetsManagementDropdown from 'views/DataExploration/components/SetsManagementDropdown';
import { DATA_EXPLORATION_QB_ID, DEFAULT_PAGE_INDEX } from 'views/DataExploration/utils/constant';
Expand Down Expand Up @@ -464,6 +465,8 @@ const VariantsTable = ({
const [selectedRows, setSelectedRows] = useState<IVariantEntity[]>([]);
const [selectedAllResults, setSelectedAllResults] = useState(false);

const variantsExport = getFTEnvVarByKey('VARIANTS_EXPORT');

const getCurrentSqon = (): any =>
selectedAllResults || !selectedKeys.length
? sqon
Expand Down Expand Up @@ -518,7 +521,7 @@ const VariantsTable = ({
total: results.total,
},
enableColumnSort: true,
enableTableExport: true,
enableTableExport: variantsExport === 'true' ? true : false,
onColumnSortChange: (newState) =>
dispatch(
updateUserConfig({
Expand Down

0 comments on commit 407f2c2

Please sign in to comment.