EUDAT-B2SHARE / b2share

B2SHARE software for the EUDAT CDI services.
https://b2share.eudat.eu
GNU General Public License v2.0
35 stars 33 forks source link

Draft records sometimes result "No results", even when records exist. #1856

Open plaihonen opened 3 years ago

plaihonen commented 3 years ago

Sometimes when reviewing draft records, the UI shows "No results", even though draft records do exist.

May or may not be related to issues: https://github.com/EUDAT-B2SHARE/b2share/issues/1359 and / or https://github.com/EUDAT-B2SHARE/b2share/issues/1352

Tested on https://trng-b2share.eudat.eu/

Steps to produce: 1) Create a draft record. 2) Go To user pull-down menu, and select "Published records". 3) Go To user pull-down menu, and select "Draft records". --> "No results" 4) Go To user pull-down menu, and select "Draft records" again. --> Draft records are shown

Steps 2 - 4 can be repeated with consistently same results.

Generally, when you go between your published records and draft records via the user pull-down menu, the draft records must be selected twice in order for them to show up.

The difference in the URL between "No results" and displaying the draft records, seems to be the following. Records shown: https://trng-b2share.eudat.eu/records/?drafts=1 No records shown: https://trng-b2share.eudat.eu/records/?q=owners%3ANNN&sort=mostrecent&page=1&size=10&drafts=1 where NNN = user's ID or similar such number.

By getting rid of the "q=owners%3ANNN&" in the URL fixes it for me, but not necessarily for some other cases.