Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions src/content/dataSubmissions/DataSubmissionsListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ const columns: Column<T>[] = [
},
{
label: "dbGaP ID",
renderValue: (a) => <TruncatedText text={a.dbGaPID} maxCharacters={15} />,
field: "dbGaPID",
renderValue: (a) => <TruncatedText text={a?.study?.dbGaPID} maxCharacters={15} />,
fieldKey: "study.dbGaPID",
hideable: true,
exportValue: (a) => ({ label: "dbGaP ID", value: a.dbGaPID }),
exportValue: (a) => ({ label: "dbGaP ID", value: a.study?.dbGaPID || "" }),
},

{
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/listSubmissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const query: TypedDocumentNode<Response, Input> = gql`
study {
studyName
studyAbbreviation
dbGaPID
}
dbGaPID
modelVersion
status
archived
Expand Down
9 changes: 7 additions & 2 deletions src/types/Submissions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ type Submission = {
/**
* The study associated with the submission.
*/
study: Pick<ApprovedStudy, "studyName" | "studyAbbreviation">;
dbGaPID: string; // # aka. phs number
study: Pick<ApprovedStudy, "studyName" | "studyAbbreviation" | "dbGaPID">;
/**
* The dbGaP PHS Accession number associated with the submission's study.
*
* @deprecated Use `study.dbGaPID` instead.
*/
dbGaPID: string;
bucketName: string; // # populated from organization
rootPath: string; // # a submission folder will be created under this path, default is / or "" meaning root folder
status: SubmissionStatus;
Expand Down
Loading