Skip to content

Commit f8aab31

Browse files
author
Joe Stubbs
committed
Fixed issue where hypyerlinks in response model for executions were not generated correctly, showing the actor's internal database id instead of the human readable id.
1 parent d5a31c5 commit f8aab31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

actors/models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,9 +1041,10 @@ def get_uuid_code(self):
10411041
return '053'
10421042

10431043
def get_hypermedia(self):
1044-
return {'_links': { 'self': '{}/actors/v2/{}/executions/{}'.format(self.api_server, self.actor_id, self.id),
1044+
aid = Actor.get_display_id(self.tenant, self.actor_id)
1045+
return {'_links': { 'self': '{}/actors/v2/{}/executions/{}'.format(self.api_server, aid, self.id),
10451046
'owner': '{}/profiles/v2/{}'.format(self.api_server, self.executor),
1046-
'logs': '{}/actors/v2/{}/executions/{}/logs'.format(self.api_server, self.actor_id, self.id)
1047+
'logs': '{}/actors/v2/{}/executions/{}/logs'.format(self.api_server, aid, self.id)
10471048
}}
10481049

10491050
def display(self):

0 commit comments

Comments
 (0)