Closed daniel-cy-lu closed 8 months ago
Add an optional parameter (shortName) to the dataCenter query, where resolver will filter out the dataCenter data with the shortName.
Ticket Check List
[x] Add a function getDataCenterByShortName to the program service http client
[x] Add an optional parameter for the dataCenter query to filter by data center short name.
[x] Update the dataCenters resolver to accept the short name filter, and fetch a single data center when provided using the new http client function
Testing Query use the following query to test result.
Note: There are two dataCenter objects now with the shrotName, DC1 and DC2.
{ dataCenters(shortName: "DC1") { id shortName name organization email uiUrl gatewayUrl analysisSongCode analysisSongUrl analysisScoreUrl submissionSongCode submissionSongUrl submissionScoreUrl } }
Type of Change
Removed the reviewers because I was fixing something. Added the reviewers back. I added dataCenter, DC2 so reviewers can test the logic.
@demariadaniel Thank you Dan!!!
Add an optional parameter (shortName) to the dataCenter query, where resolver will filter out the dataCenter data with the shortName.
Ticket Check List
[x] Add a function getDataCenterByShortName to the program service http client
[x] Add an optional parameter for the dataCenter query to filter by data center short name.
[x] Update the dataCenters resolver to accept the short name filter, and fetch a single data center when provided using the new http client function
Testing Query use the following query to test result.
Note: There are two dataCenter objects now with the shrotName, DC1 and DC2.
{ dataCenters(shortName: "DC1") { id shortName name organization email uiUrl gatewayUrl analysisSongCode analysisSongUrl analysisScoreUrl submissionSongCode submissionSongUrl submissionScoreUrl } }
Type of Change