Allow transferring ref. metadata referencing DSD with DLM
As Gyorgy,
I want that the DLM automatically transfers referential metadata related to both dataflow and DSD,
So that the source and target databases stay synchronised.
Technical details
With the release of dotstatsuite-core-transfer#596 (closed):
- The existing
/transfer/dataflow
method was modified to only copy ref. metadata referencing the dataflow - A new
/transfer/dsd
method was added to only copy ref. metadata referencing the DSD
Therefore, whenever ref. metadata are being transferred (transfer option transferContent
=0|2) from one space to another (both defined with the same transfer service) then in addition to /transfer/dataflow
, the DLM needs to call also the /transfer/dsd
method (using the exact same parameters except without transferContent
and with the identification of the underlying DSD instead of that of the dataflow.
It would be preferable that the DLM takes the user's permissions for inserting/updating/deleting data for the DF and for the DSD into account. The submission for the DSD would only be done if the user has these permissions for the DSD.
The purple arrows below show the options to which this automatic "transfer from a space to another" will be applied to: