Mailing List Archive

[Bricolage #253] "Check in and revert" does not shelve asset
// Add your reply above here
==================================================
Nick Legg updated this ticket at July 18th, 2011 @ 02:52 PM

I've been doing some debugging on this. In the cancel_checkout() method of lib/Bric/App/Callback/Util/Asset.pm I've added some output to see what's going on.

The issue appears to be caused by the fact that not all of my asset's events are being returned by the Bric::Util::Event->list method (https://github.com/bricoleurs/bricolage/blob/master/lib/Bric/App/Callback/Util/Asset.pm#L26). For instance, here I am printing out all events returned by that line (in the format of "key_name name description"):

story_add_workflow Story Moved into Workflow Story moved into a workflow.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_republish Story Republished Story was republished.
story_publish Story Published Story was published.
story_rem_workflow Story Removed from Workflow Story removed from a workflow.
story_checkin Story Checked In Story was checked in.
story_save Story Changes Saved Story profile changes were saved.
story_checkout Story Checked Out Story was checked out.
story_save Story Changes Saved Story profile changes were saved.
story_checkin Story Checked In Story was checked in.
story_checkout Story Checked Out Story was checked out.
story_checkin Story Checked In Story was checked in.
story_save Story Changes Saved Story profile changes were saved.
story_checkout Story Checked Out Story was checked out.
story_moved Story Moved to Desk Story moved onto a desk.
story_checkin Story Checked In Story was checked in.
story_save Story Changes Saved Story profile changes were saved.
story_save Story Changes Saved Story profile changes were saved.
story_save Story Changes Saved Story profile changes were saved.
story_new Story Created Story profile was created.
story_moved Story Moved to Desk Story moved onto a desk.
story_add_workflow Story Moved into Workflow Story moved into a workflow.
story_add_category Category Added to Story A category was associated with the story.

In the UI, there are clearly two more events after the "add_workflow" event at the top: a story_checkout and story_moved. Why don't I see these two events when I call Bric::Util::Event->list?
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/253-check-in-and-revert-does-not-shelve-asset

Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/watching/3041c46eeaa3a0c31581ead615bc5154ce184edf
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support@lighthouseapp.com or http://help.lighthouseapp.com