You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a content designer I want to update a document with a new version So that residents see the up-to-date information
Steps to replicate
View a document in the media library
Edit
Select "Remove"
Upload a new document
Expected behaviour
Old version of the document is no longer viewable
Links to old version of the document are updated to point to the new document
Old version of the document does not appear in Linkit (we have a Linkit profile that allows selecting files)
Observed behaviour
Old version of document is still available,
Links to old version of the document still point to old version of the document
Old version of document still appears in Linkit
At admin/content/files, you can still see the file there.
Historically, we've faced similar problems with our previous CMS, and it does cause genuine issues where people end up seeing previous versions of documents and rely on out-of-date policy. One mitigation we've applied in our new site is to serve a noindex header to block Google from indexing documents altogether.
I'd be interested to know:
Do others have similar expectations of how this functionality should behave?
Anything we can do to improve this?
The text was updated successfully, but these errors were encountered:
This is a classic Drupal issue and is a particular issue with Councils needing to publish up to date information, but the old file is being returned by Google searches.
Drupal doesn't delete files as it can be possible to link to them in ways that Drupal doesn't know about. It's fine is every file is only referenced through a File or Media entity, but it's possible to link directly to files in text and Drupal has no way to track these. This is described here: https://www.drupal.org/node/2891902
There are a number of modules that can be used to delete files:
File Delete deletes all temporary files (files marked as unused) after a given time.
Media Delete gives the option to delete a file when deleting a media item.
I'm sure there are some others that could be considered as well.
User story
As a content designer
I want to update a document with a new version
So that residents see the up-to-date information
Steps to replicate
Expected behaviour
Observed behaviour
At
admin/content/files
, you can still see the file there.Historically, we've faced similar problems with our previous CMS, and it does cause genuine issues where people end up seeing previous versions of documents and rely on out-of-date policy. One mitigation we've applied in our new site is to serve a noindex header to block Google from indexing documents altogether.
I'd be interested to know:
The text was updated successfully, but these errors were encountered: