Problem/Motivation
Revision Scheduler schedules operations on revisions. It would be nice to be able to preview the outcome of this operations with SPS.
Proposed resolution
For now integrate with the node date condition that is shipped with SPS. And limit the preview to publish / unpublish status.
Since revision scheduler allows other modules to provide operations and the outcome of this operations is not "predictable" we need a new hook that can be invoked to figure out if a entity / entity revision is accessible after the operation was fired: hook_entity_revision_operation_result_state()
Remaining tasks
Reviews needed.
User interface changes
None
API changes
New hook to determine the published / unpublished status after processing an operation: hook_entity_revision_operation_result_state()
Original report by @indytechcook
Add a Condition and Override for http://drupal.org/project/revision_scheduler
Comment | File | Size | Author |
---|---|---|---|
#7 | revision_scheduler-sps-integration-1702704-7.patch | 7.59 KB | das-peter |
Comments
Comment #1
indytechcook CreditAttribution: indytechcook commentedComment #2
jec006 CreditAttribution: jec006 commentedWorkbench doesn't have scheduling in 7.x-1.x - we can base it on : http://drupal.org/project/revision_scheduler if desired. I'm not aware of other schedulers for workbench moderation.
Comment #3
jec006 CreditAttribution: jec006 commentedComment #4
indytechcook CreditAttribution: indytechcook commentedLet's put this on hold since it's not part of the projects SOW. I'm removing from this sprint.
Comment #5
indytechcook CreditAttribution: indytechcook commentedUpdating title.
Comment #6
indytechcook CreditAttribution: indytechcook commentedComment #6.0
indytechcook CreditAttribution: indytechcook commentedUpdated issue summary.
Comment #7
das-peter CreditAttribution: das-peter commentedI just worked on this.
Moving to the Revision scheduler queue because some changes there are necessary to make this fully pluggable.
Updated the summary.
Comment #8
das-peter CreditAttribution: das-peter commentedChanging title :D
Comment #9
Dave ReidCross-linking https://github.com/ericduran/drupal-revision_scheduler_sps
Comment #10
Dave ReidWould be good to also get some review on #2364585: Implement entity revision operations as plugins as it might make sense instead of this new hook, to have it be a new method in the operation plugin class.
Comment #11
ericduran CreditAttribution: ericduran commentedI'm ok deprecating my module in favor of the patch here.
A couple of difference between my module and the patch here which I'm curious about.
In this patch a lot of logic is happening in the processOverrides ex:
These seems weird here, we can move the logic in getOverrides so that it only returns items we care about. Also removes the extra for loop with the module invoke in it.