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 search done through profile dropdown menu doesn't work correctly #1778

Closed hjhsalo closed 4 years ago

hjhsalo commented 4 years ago

image

Drafts search already filters results based on owner: https://github.com/EUDAT-B2SHARE/b2share/blob/03d490120bfb096d102cb2c9d9f38bf2b05cc524/b2share/modules/records/search.py#L79

so adding filtering based owner in UI code is not necessary.

I'm not 100% is the cause why drafts search done this way doesn't work correctly, but drafts search done via profile page (without filtering based on owner field in UI) works.

hjhsalo commented 4 years ago

Note that other filtering done in https://github.com/EUDAT-B2SHARE/b2share/blob/03d490120bfb096d102cb2c9d9f38bf2b05cc524/b2share/modules/records/search.py#L72 might affect planned functionality such as review-before-publish workflow.