Project

General

Profile

Actions

action #39917

closed

Remove "Jump to video" icon from "needle view" when video is unavailable

Added by michalnowak over 5 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2018-08-17
Due date:
% Done:

0%

Estimated time:

Description

Observation

When job runs I am able to select "Jump to video" icon in "needle view" but that link leads me to "Page not found" (obviously). I think the icon should not be present, when video file is not present.

Acceptance criteria

  • AC1: The video icon in "needle view" is only shown if a video is available for a job

Suggestions

Take a look in https://github.com/os-autoinst/openQA/blob/bd1d48efe8f696653680c92b07827ee3f795d0b4/lib/OpenQA/WebAPI/Plugin/Helpers.pm#L92 for the method that is called to create the link. Maybe we can know from the job details already available if the video is available, e.g. like in https://github.com/os-autoinst/openQA/blob/master/templates/test/downloads.html.ep#L6 we can apply a similar check in https://github.com/os-autoinst/openQA/blob/bd1d48efe8f696653680c92b07827ee3f795d0b4/templates/step/viewimg.html.ep#L83 . This probably needs $resultfiles passed over some javascript or something.

Actions #1

Updated by coolo over 5 years ago

  • Target version set to future
  • Difficulty set to easy

Doesn't sound like the most pressing issue

Actions #2

Updated by okurz almost 5 years ago

  • Category set to Feature requests
Actions #3

Updated by okurz over 4 years ago

  • Description updated (diff)
  • Status changed from New to Feedback
  • Assignee set to okurz
Actions #4

Updated by okurz over 4 years ago

  • Status changed from Feedback to Resolved
  • Target version changed from future to Done

verified with ppc tests which show no video by default: https://openqa.opensuse.org/tests/1110066# , crosschecked with jobs which should have a video still.

Actions

Also available in: Atom PDF