mirror of
https://github.com/pretix/pretix.git
synced 2026-05-18 17:24:03 +00:00
Suppress log message if order sync didn't perform any changes
This commit is contained in:
@@ -261,10 +261,11 @@ class OutboundSyncProvider:
|
|||||||
})
|
})
|
||||||
sq.delete()
|
sq.delete()
|
||||||
else:
|
else:
|
||||||
sq.order.log_action("pretix.event.order.data_sync.success", {
|
if not all(res.get("action", "") == "nothing_to_do" for res in mapped_objects.values()):
|
||||||
"provider": self.identifier,
|
sq.order.log_action("pretix.event.order.data_sync.success", {
|
||||||
"objects": mapped_objects
|
"provider": self.identifier,
|
||||||
})
|
"objects": mapped_objects
|
||||||
|
})
|
||||||
sq.delete()
|
sq.delete()
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
@@ -334,6 +335,9 @@ class OutboundSyncProvider:
|
|||||||
"external_id_field": external_id_field,
|
"external_id_field": external_id_field,
|
||||||
"id_value": id_value,
|
"id_value": id_value,
|
||||||
|
|
||||||
|
# optional:
|
||||||
|
"action": "nothing_to_do", # to inform that no action was taken, because the data was already up-to-date
|
||||||
|
|
||||||
# optional:
|
# optional:
|
||||||
"external_link_href": "https://external-system.example.com/backend/link/to/contact/123/",
|
"external_link_href": "https://external-system.example.com/backend/link/to/contact/123/",
|
||||||
"external_link_display_name": "Contact #123 - Jane Doe",
|
"external_link_display_name": "Contact #123 - Jane Doe",
|
||||||
|
|||||||
Reference in New Issue
Block a user