-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EDSC-3951: Update GraphQL queries to use new params
parameter objects
#1706
Changes from all commits
df92c6c
2ecf577
bfe864c
a7e127f
472c5fb
92f5bf8
dd12922
480ad84
96d440e
c2c3c19
5dc4bf1
1cced3b
509aac0
f96176a
6c7fabc
b41123d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,78 +132,8 @@ export const exportSearchAsStac = (format) => (dispatch, getState) => { | |
const graphQlRequestObject = new ExportSearchRequest(authToken, earthdataEnvironment) | ||
|
||
const graphQuery = ` | ||
query SearchCollections( | ||
$boundingBox: [String] | ||
$circle: [String] | ||
$cloudHosted: Boolean | ||
$collectionDataType: [String] | ||
$dataCenter: String | ||
$dataCenterH: [String] | ||
$facetsSize: Int | ||
$granuleDataFormat: String | ||
$granuleDataFormatH: [String] | ||
$hasGranulesOrCwic: Boolean | ||
$horizontalDataResolutionRange: [String] | ||
$instrument: String | ||
$instrumentH: [String] | ||
$keyword: String | ||
$line: [String] | ||
$offset: Int | ||
$options: JSON | ||
$platform: String | ||
$platformH: [String] | ||
$point: [String] | ||
$polygon: [String] | ||
$processingLevelIdH: [String] | ||
$project: String | ||
$projectH: [String] | ||
$provider: String | ||
$scienceKeywordsH: JSON | ||
$serviceType: [String] | ||
$sortKey: [String] | ||
$spatialKeyword: String | ||
$tagKey: [String] | ||
$temporal: String | ||
$twoDCoordinateSystemName: [String] | ||
$limit: Int | ||
$cursor: String | ||
) { | ||
collections ( | ||
boundingBox: $boundingBox | ||
circle: $circle | ||
cloudHosted: $cloudHosted | ||
collectionDataType: $collectionDataType | ||
dataCenter: $dataCenter | ||
dataCenterH: $dataCenterH | ||
facetsSize: $facetsSize | ||
granuleDataFormat: $granuleDataFormat | ||
granuleDataFormatH: $granuleDataFormatH | ||
hasGranulesOrCwic: $hasGranulesOrCwic | ||
horizontalDataResolutionRange: $horizontalDataResolutionRange | ||
instrument: $instrument | ||
instrumentH: $instrumentH | ||
keyword: $keyword | ||
line: $line | ||
offset: $offset | ||
options: $options | ||
platform: $platform | ||
platformH: $platformH | ||
point: $point | ||
polygon: $polygon | ||
processingLevelIdH: $processingLevelIdH | ||
project: $project | ||
projectH: $projectH | ||
provider: $provider | ||
scienceKeywordsH: $scienceKeywordsH | ||
serviceType: $serviceType | ||
sortKey: $sortKey | ||
spatialKeyword: $spatialKeyword | ||
tagKey: $tagKey | ||
temporal: $temporal | ||
twoDCoordinateSystemName: $twoDCoordinateSystemName | ||
limit: $limit, | ||
cursor: $cursor | ||
) { | ||
query SearchCollections($params: CollectionsInput) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this function might be OBE I don't see any way to access it on the controller and its not called anywhere else |
||
collections (params: $params) { | ||
cursor | ||
items { | ||
provider | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am seeing an issue on this one where we can't get the granule downloads due to this causing a 500 error. To replicate: Find a collection add some granules to project use the Download option. Normally we get the granules links on the results page but, its erroring out