Add new feature to atto in order to delete orphaned files when saving

Add new feature to atto in order to delete orphaned files when saving

av Andreas Schenkel -
Antall svar: 7
Bilde av Plugin developers

When adding an image or a file to a label and then deleting this image or file in the visible editing area then the only the link to the file ist deleted and the image or file is still stored.

In some cases this behaviour is correct but in many times the file should also be deleted. Automated deletion might would delete files that should not be deleted.

At the moment there is no easy to access indicator that there exists such files.

We will add a feature to the Atto editor so that when saving a label with such orphaned files, a dialog will inform about existing orphaned files and ask for how to deal with this files (delete or still store them).

Maybe a second “save without orphaned files”-Button would be also a good solution.

Are there any additional ideas about this issue to keep in mind?




Gjennomsnittlig vurdering: -
Som svar til Andreas Schenkel

Re: Add new feature to atto in order to delete orphaned files when saving

av Tim Hunt -
Bilde av Core developers Bilde av Documentation writers Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av Plugin developers
You have said it yourself "In some cases this behaviour is correct".

Automatically deleting files that should be kept is very, very bad!
Som svar til Andreas Schenkel

Add new feature to atto in order to delete orphaned files when saving

av Paul Holden -
Bilde av Core developers Bilde av Moodle HQ Bilde av Moodle Workplace team Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av Plugin developers Bilde av Testers
Did you try using the "Manage files" option within Atto itself? It will show any files in use, references to files that don't exist, and orphaned files (those that were once referenced, but now are not) within the editor?
Som svar til Paul Holden

Re: Add new feature to atto in order to delete orphaned files when saving

av Andreas Grabs -
Bilde av Core developers Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av Plugin developers Bilde av Translators

Hi Paul,

what Andreas meant was not the possibility to delete these files but the visibility of the existing.

Most teachers aren't aware of, that an image or a video in an html-text is not really deleted after removing or replacing it by another one.

As a result a lot of orphaned files are accumulating. That on the other hand let the course backups grow.

If you have a large installation it could become a real problem.

So it would be nice if there would be an indicator or some notification when such orphaned files exist.

Best regards
Andreas

Som svar til Andreas Schenkel

Re: Add new feature to atto in order to delete orphaned files when saving

av Andreas Schenkel -
Bilde av Plugin developers
Thank for the feedback.
The idea is to add the information that are show in the managafiles-dialog already during the editing the textfield so that there is an indication in that moment, when orphaned files accures. So automatic deletion will be proceed but the user can delete the files directly from the editing-view. It might look like this in a first version:
The red button is displayed in that moment, when a file is deleted in the editor but is still stored in the background.
Som svar til Andreas Schenkel

Re: Add new feature to atto in order to delete orphaned files when saving

av Andreas Schenkel -
Bilde av Plugin developers
Gjennomsnittlig vurdering:Useful (1)
Som svar til Andreas Schenkel

Re: Add new feature to atto in order to delete orphaned files when saving

av tim st.clair -
Bilde av Plugin developers
Nice addition. Seems to work in Moodle 4.0, although the annoying narrow centre column still confounds me at times because some content is wide. I turned on video and audio previewing and that pushed the size of the table out so that there is a horizontal scrollbar. Having the delete button on the left is great - I don't have to horizontally scroll to get to it.
massive screenshot showing centre column