Hello
I am currently working with API-Events and I'm experiencing some strange behaviour. Before a retirement-event is fired, a retirement_date change is fired but without any information about the entity affected:
The retirement_date-change event looks as follows:
{'attribute_name': 'retirement_date',
'entity': None,
'event_type': 'Shotgun_PublishEvent_Change',
'id': 23091,
'meta': {'attribute_name': 'retirement_date',
'new_value': datetime.datetime(2010, 2, 4, 11, 53, 35, tzinfo=<shotgun_api3_preview.LocalTimezone object at 0x153bd50>),
'old_value': None,
'type': 'attribute_change'},
'type': 'EventLogEntry'}
For this event I don't have any possibility to get the corresponding entity. The event is then followed by the following event:
{'attribute_name': None,
'entity': None,
'event_type': 'Shotgun_PublishEvent_Retirement',
'id': 23122,
'meta': {'class_name': 'PublishEvent',
'display_name': '016',
'id': 20,
'retirement_date': datetime.datetime(2010, 2, 4, 11, 53, 36, tzinfo=<shotgun_api3_preview.LocalTimezone object at 0x14b3d50>),
'type': 'entity_retirement'},
'type': 'EventLogEntry'}
Do I missunderstand something or is there a bug in the event trigger? I assume that this is for some concurrency control but I for some reason don't get the point ...
Kind regards,
thomas