Skip to content

Commit 184ecfa

Browse files
committed
chore: adjust the information display for not available target in the HTML report
Signed-off-by: Trong Nhan Mai <[email protected]>
1 parent 0ee5bb4 commit 184ecfa

File tree

2 files changed

+1
-34
lines changed

2 files changed

+1
-34
lines changed

src/macaron/output_reporter/results.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ def get_dict(self) -> dict:
119119
result = {
120120
"metadata": {
121121
"timestamps": datetime.now().isoformat(sep=" ", timespec="seconds"),
122-
"component": {
123-
"config_target_path": self.pre_config.options.get("path", ""),
124-
"summary": self.get_summary(),
125-
},
126122
},
127123
"target": self.context.get_dict() if self.context else {},
128124
"dependencies": self.get_dep_summary(),

src/macaron/output_reporter/templates/macaron.html

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -115,30 +115,6 @@
115115
{% endcall %}
116116
{%- endmacro -%}
117117

118-
{#
119-
Render the status for the target.
120-
#}
121-
{%- macro render_target_metadata(target_metadata) -%}
122-
{% call macaron_macros.render_table(class="target_info", has_header=false) %}
123-
{% for key, value in target_metadata.summary | items %}
124-
<tr>
125-
<th>
126-
{{ key | replace("_", " ") | capitalize }}
127-
</th>
128-
{% if key == "status" %}
129-
<td class={{ value | get_dep_status_color }}>{{ value.value }}</td>
130-
{% elif key == "report" %}
131-
{# We ignore this field. #}
132-
{% else %}
133-
<td>
134-
{{ value }}
135-
</td>
136-
{% endif %}
137-
</tr>
138-
{% endfor %}
139-
{% endcall %}
140-
{%- endmacro -%}
141-
142118
{# -------------------------------------------- #}
143119

144120
{#
@@ -193,13 +169,8 @@
193169
{% else %}
194170

195171
<div id= "prov_justification">
196-
{% if metadata.component.config_target_path == "" %}
197-
The analysis cannot complete because the target is not available.
198-
{% else %}
199-
The analysis for the target at {{ metadata.component.config_target_path }} is not successful.
200-
{% endif %}
172+
The results for the main target component is not available.
201173
</div>
202-
{{ render_target_metadata(metadata.component) }}
203174

204175
{% endif %}
205176

0 commit comments

Comments
 (0)