If the latest activity has a new resultant state add spining icon to the status
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
310 310 activities = activities[:10] 311 311 context['activities'] = activities 312 312 context['show_show_all'] = show_show_all 313 latest = instance.get_latest_activity_in_progress() 314 context['is_new_state'] = (latest and 315 instance.status != latest.resultant_state) -
Owner
what if resultant_state is None?
-
-
975 975 return vm_tasks.screenshot.apply_async(args=[self.vm_name], 976 976 queue=queue_name 977 977 ).get(timeout=timeout) 978 979 def get_latest_activity_in_progress(self): 980 try: 981 return InstanceActivity.objects.filter( 982 instance=self, succeeded=None).latest("started") -
Owner
we could maybe filter to top-level activities (the ones with no parent)
or also to those, which have any resultant_state (but that should be a parameter, or the function name is misleading)
-
-
Owner
+1