Skip to content
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

My Data page does not load when 0 products #138

Open
frankinspace opened this issue Jun 4, 2024 · 1 comment
Open

My Data page does not load when 0 products #138

frankinspace opened this issue Jun 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@frankinspace
Copy link
Member

Checking my data page in UAT I receive "Loading Data Table..." message forever

image

Looking at the networking tab I see the request go through:

curl 'https://swodlr.podaac.uat.earthdatacloud.nasa.gov/api/graphql' -X POST --data-raw '{"query":"\n    query getUserProducts($limit: Int, $after: ID) \n    {\n        currentUser {\n            products (limit: $limit, after: $after) {\n                id\n                timestamp\n                cycle\n                pass\n                scene\n                outputGranuleExtentFlag\n                outputSamplingGridType\n                rasterResolution\n                utmZoneAdjust\n                mgrsBandAdjust\n\n                granules {\n                    id\n                    timestamp\n                    uri\n                }\n                \n                status (limit: 1) {\n                    id\n                    timestamp\n                    state\n                    reason\n                }\n            }\n        }\n    }\n","variables":{"limit":"1000000"},"operationName":"getUserProducts"}'

and I see the response come back:

{"data":{"currentUser":{"products":[]}}}

But the UI continues to show loading....

I think there may be a bug in how the ui is handling and empty result set from the API. In this scenario I would expect to simply see an empty table or message saying no products have been generated

@frankinspace frankinspace added the bug Something isn't working label Jun 4, 2024
@jbyrne6
Copy link

jbyrne6 commented Jun 4, 2024

I fixed this bug and it is in this PR
podaac/swodlr-ui#109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants