You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(content-health-monitor): ensure we always try to get the current user's full name (#266)
* Ensure we try to get the current user's full name even when setup is required, and handle any exceptions gracefully without printing errors at the top of reports
* Make the user name bold
* Refactor import to import module
* Fix test
* Update manifest
* Update manifest
This report uses {current_user_name}'s API key to monitor a single piece of content. It checks whether the content is
96
+
This report uses <b>{current_user_name}</b>'s API key to monitor a single piece of content. It checks whether the content is
98
97
reachable, but does not verify that it runs without errors.<br><br>
99
98
When scheduled to run regularly, the report will send an email alert
100
99
if the content becomes unreachable.
@@ -111,15 +110,15 @@ else:
111
110
112
111
# Create all HTML components up front based on state
113
112
html_components = {
114
-
'instructions': create_instructions_box(instructions_html) if state.show_instructions else None,
115
-
'error': create_error_box(error_guid, error_message) if show_error else None,
116
-
'report': create_report_display(content_result, check_time, current_user_name) if content_result and not has_error(content_result) else None,
117
-
'no_results': create_no_results_box() if not (state.show_instructions or show_error or
118
-
(content_result and not has_error(content_result))) else None
113
+
'instructions': utils.create_instructions_box(instructions_html) if state.show_instructions else None,
114
+
'error': utils.create_error_box(error_guid, error_message) if show_error else None,
115
+
'report': utils.create_report_display(content_result, check_time, current_user_name) if content_result and not utils.has_error(content_result) else None,
116
+
'no_results': utils.create_no_results_box() if not (state.show_instructions or show_error or
117
+
(content_result and not utils.has_error(content_result))) else None
0 commit comments