Skip to content

Commit

Permalink
handle custodian emails in query and display
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Sep 14, 2023
1 parent ee053c4 commit ae818eb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
26 changes: 24 additions & 2 deletions src/pages/data_submitter_console/DataSubmitterConsole.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,30 @@ export default function DataSubmitterConsole() {
}
},
{
'term': {
'createUserId': { 'value': user.userId }
'bool': {
'should': [
{
'term': {
'createUserId': {
'value': user.userId
}
}
},
{
'term': {
'study.dataSubmitterId': {
'value': user.userId
}
}
},
{
'term': {
'study.dataCustodianEmail': {
'value': user.email
}
}
}
]
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ export default function DataSubmitterDatasetsTable(props) {
Edit
</Button>
</div>;
const custodians = join(', ')(term.study?.dataCustodianEmail);
return {
datasetIdentifier: term.datasetIdentifier,
datasetName: term.datasetName,
dataSubmitter: term?.createUserDisplayName,
datasetCustodians: '',
datasetCustodians: custodians,
dac: term.dacName,
dataUse: join(', ')(concat(primaryCodes)(secondaryCodes)),
status: status,
Expand Down

0 comments on commit ae818eb

Please sign in to comment.