[swatbot] [PATCH] swatapp: Display build start and complete dates


Alexandre Belloni
 

Also switch the changelog timestamp format to be more readable

[YOCTO #14650]
Signed-off-by: Alexandre Belloni <alexandre.belloni@...>
---
swatapp/templates/swatapp/changelog.html | 2 +-
swatapp/templates/swatapp/index.html | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/swatapp/templates/swatapp/changelog.html b/swatapp/templates/swatapp/changelog.html
index f28abaefe187..5011e469c451 100644
--- a/swatapp/templates/swatapp/changelog.html
+++ b/swatapp/templates/swatapp/changelog.html
@@ -5,7 +5,7 @@
{% if changes %}
<ul>
{% for change in changes %}
- <li>{{ change.user.username }} changed {{ change.failure.build.targetname }}:{{ change.failure.stepname }} <a href="/collection/{{ change.failure.build.buildcollection.id }}/">{{ change.failure.build.buildid }}:{{ change.failure.id }}</a> from {{ change.get_oldstatus_display }} to {{ change.get_newstatus_display }} on {{ change.timestamp }}: {{ change.newnote }}</li>
+ <li>{{ change.user.username }} changed {{ change.failure.build.targetname }}:{{ change.failure.stepname }} <a href="/collection/{{ change.failure.build.buildcollection.id }}/">{{ change.failure.build.buildid }}:{{ change.failure.id }}</a> from {{ change.get_oldstatus_display }} to {{ change.get_newstatus_display }} on {{ change.timestamp|date:"Y-m-d H:m:s" }}: {{ change.newnote }}</li>
{% endfor %}
</ul>

diff --git a/swatapp/templates/swatapp/index.html b/swatapp/templates/swatapp/index.html
index a015e60b7bbf..0e331a9882d7 100644
--- a/swatapp/templates/swatapp/index.html
+++ b/swatapp/templates/swatapp/index.html
@@ -45,6 +45,9 @@ function togglefailures(source) {
<br>
<b>Owner:</b> {{ collection.owner }}
<b>Reason:</b> {{ collection.reason }}
+ <br>
+ <b>Started:</b> {{ mainbuild.started|date:"Y-m-d H:m:s" }}
+ <b>Completed:</b> {{ mainbuild.completed|date:"Y-m-d H:m:s" }}

</td>
<td></td>
@@ -88,6 +91,7 @@ function togglefailures(source) {
<td>
<a href="{{ build.url }}">{{ build.targetname }}</a>
{{ build.workername }}
+ {{ build.completed|date:"U" }}
({{ build.get_status_display }})
</td>
<td></td>
--
2.35.1

Join swat@lists.yoctoproject.org to automatically receive all group messages.