Skip to content
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

RIS: Get list with trashed documents #5842

Open
sebastianmanger opened this issue Jul 29, 2019 · 3 comments
Open

RIS: Get list with trashed documents #5842

sebastianmanger opened this issue Jul 29, 2019 · 3 comments

Comments

@sebastianmanger
Copy link
Contributor

sebastianmanger commented Jul 29, 2019

Context

RIS be configured to work as an internal application (for staff users), or as a public website.

The public installation of RIS is deployed to a zone without connection to GEVER for security reasons. The internal RIS installation therefore has a publisher module, which transfers data to the public website. GEVER documents are published as PDF files with bumblebee demand jobs.

RIS "polls" GEVER with a cronjob for modified documents (and filters it according to RIS' metadata for publication) and creates PDF for these documents.

This issue should serve as discussion starter, and must not be implemented yet.

Goal

(Please keep in mind that I am not very familiar with GEVER naming. With regards to 'removed' elements this means: I do not know if they technically are trashed/deleted/archived. Basically documents that were once on display, but are not anymore.)

As RIS stores PDFs of GEVER documents, they must be deleted on RIS if they are 'removed' from GEVER.

As of now, this is handled with the @search endpoint (https://ris.onegovgever.ch/kr/@search?portal_type=opengever.document.document&metadata_fields=trashed&metadata_fields=modified&trashed:boolean=1&sort_on=modified&sort_order=descending).

According to @njohner, this may not be 100% accurate, as admins can really-really delete files. Please also talk to @jone if it comes to priority, as this may be more of a theoretical problem.

@lukasgraf
Copy link
Member

@sebastianmanger So you need a list of deleted documents, not trashed ones, right? (Resp. both)

@sebastianmanger
Copy link
Contributor Author

Follow-up after a quick discussion: yes, I think of trashed and deleted (and 'ausgesondert') - and possibly more...
This is a conversation starter and must not be implemented yet. It's likely that it will become an issue once RIS is installed at a place where the clients can delete documents. As of now, they can only trash them.

@sebastianmanger
Copy link
Contributor Author

The problem (theoretically) still exists - if an admin removes a file, RIS will never know it and keeps a reference, as it is not in the response of the @search endpoint anymore. For priority, I still think this is not very important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants