Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add operation on replica #546

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

Conversation

accognet
Copy link
Contributor

@accognet accognet commented Sep 14, 2023

On synchronized object, add a link to replicas on padlock
image
This link search all replicas linked to the current object.
image

Add operations on replicas :
image

Unlink update the Destination object id to 0
Synchro use the replica in order to update the linked object
Unlink & Synchro do the both
Delete delete the replica

@accognet accognet marked this pull request as draft September 14, 2023 14:37
@accognet accognet self-assigned this Sep 14, 2023
@accognet accognet added the internal Work made by Combodo label Sep 14, 2023
@Hipska
Copy link
Contributor

Hipska commented Sep 25, 2023

I very much like the delete option :)

Comment on lines +177 to +180
$oReplica = MetaModel::GetObject('SynchroReplica', $iId);
$oReplica->Set('dest_id', '');
$oReplica->Set('status', 'new');
$oReplica->DBWrite();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should dest_class also be reset? (IMHO not really, but made this comment so that Combodo made sure they think about it, see also #551)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Work made by Combodo
Projects
Status: Pending contributor update
Development

Successfully merging this pull request may close these issues.

2 participants