Skip to content
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
3 changes: 2 additions & 1 deletion packages/client/src/pages/datasets/DatasetDownloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export const DatasetDownloads: React.FC = () => {
width: 200,
headerName: t('components.datasetDownload.entryDownload'),
renderCell: (params) =>
params.value && (
params.value &&
params.row.status == DownloadStatus.Ready && (
<IconButton href={params.value}>
<Download />
</IconButton>
Expand Down
9 changes: 6 additions & 3 deletions packages/client/src/pages/studies/StudyDownloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export const StudyDownloads: React.FC = () => {
width: 200,
headerName: t('components.datasetDownload.entryDownload'),
renderCell: (params) =>
params.value && (
params.value &&
params.row.status == DownloadStatus.Ready && (
<IconButton href={params.value}>
<Download />
</IconButton>
Expand All @@ -68,7 +69,8 @@ export const StudyDownloads: React.FC = () => {
width: 200,
headerName: t('components.studyDownload.csv'),
renderCell: (params) =>
params.value && (
params.value &&
params.row.status == DownloadStatus.Ready && (
<IconButton href={params.value}>
<Download />
</IconButton>
Expand All @@ -79,7 +81,8 @@ export const StudyDownloads: React.FC = () => {
width: 200,
headerName: t('components.studyDownload.taggedEntries'),
renderCell: (params) =>
params.value && (
params.value &&
params.row.status == DownloadStatus.Ready && (
<IconButton href={params.value}>
<Download />
</IconButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export class StudyDownloadService {
request = (await this.downloadRequestModel.findById(request._id))!;

// Download the entries that were generated as part of this study
/*
await this.downloadService.startZipJob({
entryJSONLocation: request.entryJSONLocation!,
entryZIPLocation: request.entryZIPLocation!,
Expand All @@ -108,11 +107,9 @@ export class StudyDownloadService {
bucket: (await this.bucketFactory.getBucket(request.organization))!,
organization: request.organization
});
*/
// Download the tag data as a CSV
await this.generateCSV(request);
// Download the entries that were tagged in this study
/*
await this.downloadService.startZipJob({
entryJSONLocation: request.taggedEntriesJSONLocation!,
entryZIPLocation: request.taggedEntriesZipLocation!,
Expand All @@ -129,7 +126,7 @@ export class StudyDownloadService {
entries: await this.getLabeledEntries(request),
bucket: (await this.bucketFactory.getBucket(request.organization))!,
organization: request.organization
}); */
});

return request;
}
Expand Down