Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 31, 2012 @ 16:21
    Tim
    0

    Why is there a filter to view deleted records?

    Quick question! In the records viewer, there's an option to view records that are flagged as Deleted. However, when you delete an item using the RecordService, which you need to do to fire any associated workflows (at least I'm pretty sure that's the case), the workflow service is called, and at the bottom of that there's some code that checks if the record was deleted and then calls the RecordStorage delete method, which kills the record and it's XML from the database.

    Bearing this in mind, for most cases there won't be any deleted records in the database, so why have the filter?

    I've been working on a project where we wanted to add an extra state for "Rejected" but it doesn't look like that's possible, so we looked at using the deleted state. the only way I could get it to work was to call the method to update the XML table with the form values after the workflows had fired so that it can be got at from the XML library methods, but this is a bit hacky.......

    Is there a way to either a) add a new status or b) keep the deleted records somehow?

  • Drew 165 posts 340 karma points
    Jul 31, 2012 @ 16:29
    Drew
    0

    It would be helpful to be able to either override the default workflow (that automatically deletes any item with a 'deleted' state) - or be able to choose an option on each form for "Permenantely delete entries".

    There are a few cases where you'd want to keep 'deleted' entries.

    Being able to override or disable the default workflow would be pretty handy (as you can always write your own workflow to perm delete records after X days, or similar anyhow).

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 31, 2012 @ 16:58
    Tim
    0

    The ability to create custom record states would be really useful too! Especially if using Contour workflow for complex tasks, like multiple stages of approval for example.

  • Comment author was deleted

    Aug 06, 2012 @ 15:23

    You are right it doesn't make sense to have the deleted state in the records viewer, so it will be gone in the next maintenance release (1.1.13, there is already a WIP version that you can upgrade to here http://nightly.umbraco.org/Umbraco%20Contour/ )

    For the custom states it might be an option to use custom record and record set actions if you want to extend the entries viewer with more complex tasks

  • Comment author was deleted

    Aug 07, 2012 @ 15:30

    btw there is also a public issue tracker for Contour now: http://issues.umbraco.org/issues/CON , planning a roadmap in the coming days so make sure to add ideas/bugs to the list :)

    Thanks,
    Tim 

Please Sign in or register to post replies

Write your reply to:

Draft