[results feed] Fix log link for tests whose outcome is "flaky".
Change-Id: I4e2ffaf3dee2102db958677a3efa82409596c11c
Reviewed-on: https://dart-review.googlesource.com/c/dart_ci/+/367260
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
diff --git a/results_feed/lib/src/components/results_panel.html b/results_feed/lib/src/components/results_panel.html
index 8c111ed..3eb58e2 100644
--- a/results_feed/lib/src/components/results_panel.html
+++ b/results_feed/lib/src/components/results_panel.html
@@ -78,11 +78,16 @@
target="_blank">
history
</a>
- <a *ngIf="buildbucketID(change.patchset, configuration) != null"
+ <a *ngIf="buildbucketID(change.patchset, configuration) != null && change.result != 'flaky'"
target="_blank"
href="https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/{{buildbucketID(change.patchset, configuration)}}/+/u/test_results/new_test_failures__logs_">
log
</a>
+ <a *ngIf="buildbucketID(change.patchset, configuration) != null && change.result == 'flaky'"
+ target="_blank"
+ href="https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/{{buildbucketID(change.patchset, configuration)}}/+/u/find_ignored_flaky_test_failure_logs/raw_io.output_text">
+ log
+ </a>
<a href="{{getTestSource(change, true)}}" target="_blank">source</a>
</div>
</div>