• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CBIIT / INS-WebPortal / 20350373879

18 Dec 2025 08:28PM UTC coverage: 2.453%. First build
20350373879

push

github

web-flow
Merge pull request #482 from CBIIT/3.2.0

3.2.0 Release

43 of 1822 branches covered (2.36%)

Branch coverage included in aggregate %.

7 of 490 new or added lines in 27 files covered. (1.43%)

83 of 3314 relevant lines covered (2.5%)

1.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/pages/dataSetDetail/dataSetDetailController.js
1
import React from 'react';
×
2
import { useQuery } from '@apollo/client';
×
3
import CircularProgress from '@material-ui/core/CircularProgress';
×
4
import DataSetDetailView from './dataSetDetailView';
×
5
import Error from '../error/Error';
×
NEW
6
import { getDataSetDetailDataQuery, getDatasetFilesQuery } from '../../bento/datasetDetailData';
×
7

8
const DataSetDetailContainer = ({ match }) => {
×
9
  const {
NEW
10
    loading: detailsLoading,
×
NEW
11
    error: detailsError,
×
NEW
12
    data: detailsData,
×
13
  } = useQuery(getDataSetDetailDataQuery, {
×
14
    variables: { dataset_source_id: match.params.id },
15
  });
16

17
  const {
NEW
18
    loading: filesLoading,
×
NEW
19
    error: filesError,
×
NEW
20
    data: filesData,
×
NEW
21
  } = useQuery(getDatasetFilesQuery, {
×
22
    variables: {
23
      dataset_source_id: match.params.id,
24
      accessTypes: ['Open'],
25
    },
26
  });
27

NEW
28
  if (detailsLoading || filesLoading) return <CircularProgress />;
×
29

NEW
30
  if (detailsError || !detailsData || !detailsData.datasetDetails) {
×
31
    return (
×
32
      <Error />
33
    );
34
  }
35

NEW
36
  let datasetFiles = [];
×
NEW
37
  if (filesError) {
×
NEW
38
    console.error('Failed to load dataset files:', filesError);
×
39
    // Continue with empty files array - files are optional
NEW
40
  } else if (filesData && filesData.getDatasetFiles) {
×
NEW
41
    datasetFiles = filesData.getDatasetFiles;
×
42
  }
43

NEW
44
  return (
×
45
    <DataSetDetailView
46
      data={detailsData.datasetDetails}
47
      files={datasetFiles}
48
    />
49
  );
50
};
×
51

52
export default DataSetDetailContainer;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc