diff --git a/corehq/apps/reports/standard/monitoring.py b/corehq/apps/reports/standard/monitoring.py index bfaeafdab93e..7cd35950b611 100644 --- a/corehq/apps/reports/standard/monitoring.py +++ b/corehq/apps/reports/standard/monitoring.py @@ -1236,7 +1236,9 @@ class FormCompletionVsSubmissionTrendsReport(WorkerMonitoringFormReportTableBase @property def headers(self): - return DataTablesHeader(DataTablesColumn(_("User")), + return DataTablesHeader( + DataTablesColumn(_("User")), + DataTablesColumn(_("Load Time (milliseconds)"), sort_type=DTSortType.DATE), DataTablesColumn(_("Completion Time"), sort_type=DTSortType.DATE), DataTablesColumn(_("Submission Time"), sort_type=DTSortType.DATE), DataTablesColumn(_("Form Name")), @@ -1281,6 +1283,7 @@ def _get_rows(self): xmlnss=xmlnss, ) for row in paged_result.hits: + load_time_ms = row['form']['meta'].get('formLoadTime', '') completion_time = (PhoneTime( string_to_utc_datetime(row['form']['meta']['timeEnd']), self.timezone, @@ -1293,6 +1296,7 @@ def _get_rows(self): row['form']['meta']['username'], user_map.get(row['form']['meta']['userID']) ), + load_time_ms, self._format_date(completion_time), self._format_date(submission_time), form_map[row['xmlns']],