Closed (fixed)
Project:
Replication
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2016 at 17:48 UTC
Updated:
24 May 2018 at 09:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
phenaproximaHere's a patch that implements the things I described in the IS.
Comment #3
josephdpurcell commentedThis looks good! Do you think a ReplicationEvent subscriber would want to know if any filters were used or what filter parameters were sent?
For this reason, I think the ReplicationTask should be added as well. Also consider that if we were more closely following the CouchDB pattern the ReplicationTask would even include the source and target Workspaces, so the task object should be considered as important as the source/target workspace.
Comment #4
timmillwoodEven though this event has not been committed to Replication module it's already being fired in Workspace module in
\Drupal\workspace\ReplicatorManager::doReplication.I'm wondering if this is the best place to fire the event.
At the end of a replication a ReplicationLog entity should be created / updated, I wonder if this would be a better place to fire the event?
Comment #5
timmillwood@phenaproxima - Do you still have a need for this?
If not, maybe we can close and remove all the related code from Workspace module.
Comment #6
phenaproximaI do not, as Lightning will not support preview/workspace functionality until it's in core :) Let's close this.
Comment #7
timmillwoodWe've got to the position where we need events, therefore I'm going to commit this "as is" then open a follow up if we need to iterate.
Comment #9
timmillwoodComment #11
timmillwoodI've actually decided to revert this because I think the event should handle workspace pointers, which aren't added until the workspace module. So will move it there with #2971926: Better dispatch events.