Needs review
Project:
Workbench Moderation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2012 at 15:20 UTC
Updated:
12 Apr 2013 at 02:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
wbobeirne commentedComment #2
hass commentedComment #3
hass commented#1: workbench_moderation-user-can-moderate-filter-1870366-1.patch queued for re-testing.
Comment #4
hass commentedPatch has several code style issues (trailing spaces).
Comment #5
elvis2 commentedAttached is a modification of this filter. Thanks wbobeirne for getting me started.
There are a couple of ways this filter could work.
After doing some discovery I think the best method should be filtering based on the transition; This will only show content transitions the user has permissions to.
If you were to use a state base filter alone, you may not see any difference with a transition base filter if you have the out of the box workbench states (draft, review, publish) since there are just a few workbench transitions.
In our case, we have a few more states (new, draft, needs review, manager review, publish) which creates even more transitions. By filtering on the transition the user has access to, we are able to show shorter list of content for the user, removing any confusion for the editors.
I have added documentation in the patch, but there is one thing I want to point out: sometimes content does not change state although it was edited. This was not clear to me at first but if after reviewing the workbench_moderation_node_history table I found instances where editors edited the content but did not change the state since they were not ready to move the content on. This situation is accounted for too.
Comment #7
elvis2 commentedSame patch just against 7.x-1.x-dev
Comment #8
elvis2 commentedHere is a new patch. The following was added:
- the filter now extends the views_handler_filter_boolean_operator
- better ui description for the filter
- a yes-no option, for clarity
- better where clause
I also added the moderation transition "draft to draft". Take a peek at the code to see if you agree.
As stated in #5, the filter description maybe should be re-described to be a filter for moderation transitions. I added a tiny bit of that language. Does anyone have any input on this topic?