gbif / portal-feedback

User feedback for the GBIF API, website and published data. You can ask questions here. 🗨❓
30 stars 16 forks source link

Allow users to mark and/or sort their downloads #5214

Open gbif-portal opened 9 months ago

gbif-portal commented 9 months ago

Permanent removal of downloads

Hi! I have requested a number of downloads over the past 3-4 years, but I only end up using a few of them for research. Therefore, the "Download" tab of my user is cluttered by irrelevant downloads. For instace, some of them were mere tests of how rgbif works. I would like to permanently remove such downloads, so I can focus on the downloads that actually mattered for research. Is there a way to remove the downloads from view? Thanks!


Github user: @MarcRieraDominguez User: See in registry - Send email System: Chrome 122.0.0 / Windows 10.0.0 Referer: https://www.gbif.org/faq?question=for-how-long-will-does-gbif-store-downloads Window size: width 1920 - height 911 API log&_a=(columns:!(_source),filters:!(),index:'3390a910-fcda-11ea-a9ab-4375f2a9d11c',interval:auto,query:(language:kuery,query:''),sort:!())) Site log&_a=(columns:!(_source),filters:!(),index:'5c73f360-fce3-11ea-a9ab-4375f2a9d11c',interval:auto,query:(language:kuery,query:''),sort:!())) System health at time of feedback: OPERATIONAL

ManonGros commented 9 months ago

Hi @MarcRieraDominguez

We don’t delete pages that are associated with DOIs. DOIs must have a landing page, they must remain persistent. The button to delete downloads only delete the occurrence file associated with the download. The page of the download with the data about the download (query, datasets involved,…) remains accessible via the DOI.

I hope this makes sense. I will close the issue but let us know if it should be re-opened.

MarcRieraDominguez commented 9 months ago

Thank you for your reply! I understand about the "permanence" of DOIs. However, could they be sorted by relevance somehow? My current user profile is cluttred by test downloads. Could the DOIs be sorted in two tabs, according to whether the user marks them as relevant or irrelevant? I am thinking in terms of enhancing the user's control over what is being displayed. Cheers! :)

ManonGros commented 8 months ago

Thanks Marc, I reopened the issue so we keep the idea.

MortenHofft commented 8 months ago

I can see two fairly easy additions:

1: label the ones eligible for deletion 2: allow filtering by status

status filter We could add a status filter. Such that the user could choose only to see cancelled, succeeded or file_erased downloads? file_erased erased is the status assigned once the file is deleted and that happens typically 6 months after it has been marked by the user as eligible for deletion.

To make it more useful we could add an additional status: eligible_for_deletion or such, to indicate that it succeeded, but is flagged to have the file deleted in the future.

Would that solve it @MarcRieraDominguez ?

MortenHofft commented 8 months ago

The UI now shows downloads that has been marked as eligible for deletion. So the red border should make it easy to skip those in a visual scanning. As far as I can see you have 28 downloads.

example

Screenshot 2024-03-18 at 13 02 04

For testing it is btw better to use our test environment UAT. That will also keep your production downloads less cluttered.

MarcRieraDominguez commented 8 months ago

Thank you @MortenHofft! I see the red border now, and it makes things easier. Is the idea of filtering by status still on the table? I think it would enhance user experience even further. I didn't know about this UAT, interesting. Is there a way to make it work from rgbif?

MortenHofft commented 8 months ago

@jhnwllr can answer rgbif questions

Yes filtering is still an option, but there is currently no backend/api to filter by downloads labeled as "can be deleted, but not yet deleted". So I will let the issue remain open

jhnwllr commented 8 months ago

Yes there is no good way to do this right now. I am working on an eraseAfter feature for rgbif which might help, but I am not sure if the download will get automatically deleted even if this field is set. I think deleting downloads is still a manual process. @MattBlissett

jhnwllr commented 8 months ago

@MarcRieraDominguez it's not possible to download from rgbif from UAT, without modifying code. You would have to clone a local copy and change this line.

https://github.com/ropensci/rgbif/blob/master/R/zzz.r#L382

MortenHofft commented 8 months ago

Argh, I've misunderstood the API. Apparently all downloads are deleted as default. And also will be if the user clicks postpone. So now everything is marked as eligible for deletion unless a citation is spotted. That makes the UI far more confusing in most cases.

I believe it should be removed again, and possibly be replaced by a reverse tag [has citations and will not be deleted] The filter to remove deleted files is then the only option we have.