mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-15 06:08:36 -05:00
Add a hint header for max job events for the UI
This commit is contained in:
@@ -3407,6 +3407,10 @@ class BaseJobEventsList(SubListAPIView):
|
||||
relationship = 'job_events'
|
||||
view_name = _('Job Events List')
|
||||
|
||||
def finalize_response(self, request, response, *args, **kwargs):
|
||||
response['X-UI-Max-Events'] = settings.RECOMMENDED_MAX_EVENTS_DISPLAY_HEADER
|
||||
return super(BaseJobEventsList, self).finalize_response(request, response, *args, **kwargs)
|
||||
|
||||
|
||||
class HostJobEventsList(BaseJobEventsList):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user