-
Notifications
You must be signed in to change notification settings - Fork 490
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
MyData and non-harvested datasets in harvested dataverses #11083
Comments
@plecor if you can fix the NPE, please do! Thanks for creating this issue! |
Do y'all think we could also mention this bug in the page on the guides? The MyData API is used for the MyData page, too, right? So these datasets also won't show up on the user's MyData page? If we're not sure, I can try to test if this is the case on Demo Dataverse if you think that'll help. |
Indeed, this affects the MyData page and the datasets don't show up there. |
Thanks @plecor! Since the bug won't be fixed "soon", or possibly ever, and since we know of some folks who use or at least have expressed interest in the MyData API, like @shlake and @mohhsen67, I'd advocate for at least mentioning the bug in the guides. I or someone else could open a GitHub issue for that specifically, but I'll wait to hear what you all think. Since this affects some folks who use the MyData page, I would also advocate for noting the bug somehow on that page. But that UI change would be a bigger undertaking, compared to a documentation change, and I think it'll be less likely to be done. |
Ah okay. So I won't open a GitHub issue about editing the docs to mention the bug. Thanks |
I updated the PR to mention the issue in https://guides.dataverse.org/en/6.4/api/native-api.html#mydata |
@plecor yes, thanks! We can see it here: https://dataverse-guide--11086.org.readthedocs.build/en/11086/api/native-api.html#mydata |
The MyData API implicitely assumes that all datasets in a dataverse linked to a harvesting client are harvested datasets. This produces incomplete results.
Steps to reproduce
Tested on 5.13, 6.0 and develop (6.4)
Results
The request to load the data fails with a NullPointerException and results are never shown:
The underlying cause of the NPE is that all checks regarding the absence of results are made before filtering against harvested dataverses.
If the user has other datasets in another dataverse, the request doesn't fail but the dataset in the harvesting dataverse is not listed.
Are you thinking about creating a pull request for this issue?
I can look into a PR to fix the NPE.
Adapting MyData to list the missing datasets feels like a bigger undertaking.
The text was updated successfully, but these errors were encountered: