-
Notifications
You must be signed in to change notification settings - Fork 323
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
Duplicates returned when listing nodes files #10086
Comments
Thanks @aaronwolen - I will note that when I run the same code I get a different file duplicated. And the duplicated file sometimes changes, usually when I update/upload a new file. You can see my reprex here. |
I was able to reproduce the error and it is indeed coming from the API, the default sorting logic for this particular endpoint appears to be broken. As a temporary work around you can use your own sorting criteria to prevent the error, such as |
Thanks for the quick response, @Johnetordoff! A couple follow-up questions for you:
|
Thanks @Johnetordoff - I have updated my code and got the appropriate output. Appreciate the workaround. |
It is not documented, unfortunately this param is not implemented consistently over all the endpoints it's applied. Some queries, legacy endpoints and attributes haven't been QA'ed for accurate sorting, so they remain undocumented.
The default sorting behavior for list view is to allow the user to sort on any of the
I did not check, as I've written this behavior is not guaranteed to be accurate or consistent. |
This was originally reported in ropensci/osfr#150 by @doomlab.
The reprex here shows that the same file,
421_Lu.pdf
, is returned twice when listing files in the Local IRB directory within this project.I've confirmed that the duplicate entries are coming from the OSF API, across different pages of results:
The waterbutler IDs are identical so this does seem like a possible bug.
Let me know if you need any more information.
The text was updated successfully, but these errors were encountered: