← Back to team overview

mahara-contributors team mailing list archive

[Bug 1810438] Re: Files are removed from the timeline when deleted

 

At the moment, if a user has a file attached to a block and deletes it,
there is no confirmation message or warning. The file is just not
displayed any more on the block.

I think if we are fixing the version of the block, we should also fix
the block itself. I like the idea of having a warning or requiring
confirmation before deleting a file, if it's included in a block of a
page or in a version of the page. But we don't have an easy way to know
if a file is being used. We would need to search on the DB for all
block_instance records that have a reference to the file artefact. We
would need to check each configdata field that is in serialized form,
that for a big DB could take a long time.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1810438

Title:
  Files are removed from the timeline when deleted

Status in Mahara:
  Confirmed
Status in Mahara 18.10 series:
  Confirmed
Status in Mahara 19.04 series:
  Confirmed

Bug description:
  When a file is placed on a page, e.g. via the "Files to download"
  block and the state saved to the timeline, it does not appear on the
  timeline once the file has been deleted from the Files area though it
  should still appear on the Timeline.

  1. User A has a page with the "Image" block and the "Files to download" block. The download block contains both the image and also another file.
  2. User A saves that state to the timeline.
  3. User A deletes the image that is used in the "Image" block and the "Files to download" block from their file repository.
  Expected result: The image is still displayed in the timeline.
  Actual result: The image is not displayed in the timeline neither in the "Image" block nor the "Files to download" block thus not rendering it a true respresentation of the state of that page at that time.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1810438/+subscriptions


References