Make changes to support capture by the activity stream

Including exposing a new API view for a particular EE's activity
stream objects.
This commit is contained in:
Jeff Bradberry
2020-07-08 11:49:23 -04:00
committed by Shane McDonald
parent 5ec7378135
commit f9741b619c
5 changed files with 23 additions and 0 deletions

View File

@@ -1367,6 +1367,9 @@ class ExecutionEnvironmentSerializer(BaseSerializer):
def get_related(self, obj):
res = super(ExecutionEnvironmentSerializer, self).get_related(obj)
res.update(
activity_stream = self.reverse('api:execution_environment_activity_stream_list', kwargs={'pk': obj.pk}),
)
if obj.organization:
res['organization'] = self.reverse('api:organization_detail', kwargs={'pk': obj.organization.pk})
if obj.credential: