-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
status: internal reviewInternal discussion is required to move forward with issueInternal discussion is required to move forward with issuetype: enhancement
Description
Environment
- DiffSync version: 1.7.0
Proposed Functionality
I do not know if this is possible with a custom diff, but I would love to have the capability to check if items should be synchronized based on a value like modified date.
Use Case
Basically if an object looks like this:
class Issue(DiffSyncModel):
_modelname = "issue"
_identifiers = ("id",)
_shortname = ()
_attributes = ("assignee",)
_children = {}
id: str
assignee: str
modified_date: datetime.DateTime
I'd like to be able to decide which side wins (if there is a diff) based on the modified_date
. This would mean that modified_date
is ignored in the diff unless there is a difference. In those cases it will be the tiebreaker.
Metadata
Metadata
Assignees
Labels
status: internal reviewInternal discussion is required to move forward with issueInternal discussion is required to move forward with issuetype: enhancement