Project

General

Profile

Actions

action #162218

closed

coordination #154768: [saga][epic][ux] State-of-art user experience for openQA

coordination #162215: [epic] Interactive log viewer

interactive log viewer: Generic filtering size:M

Added by okurz 6 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2024-06-13
Due date:
% Done:

0%

Estimated time:
Tags:

Description

Motivation

openQA test reviewers work with logs like https://openqa.opensuse.org/tests/4270404/logfile?filename=autoinst-log.txt often. The log viewer should provide features to ease common reviewing tasks. We already provide separate downloads of the raw file so now we can enhance the in-place log viewer. We should start with generic filtering to only show lines matching a search expression similar to how we filter table rows in pages like /admin/products based on expressions in the search field. Based on a discussion of okurz with asmorodskyi.

Acceptance criteria

  • AC1: Users can filter matching lines of autoinst-log.txt text interactively on /tests/$id/logfile?filename=autoinst-log.txt
  • AC2: By default no filter is applied and all text is shown
  • AC3: The URL can be shared applying the same filter

Suggestions

  • Consider discussing the use case and possibilities and alternatives with asmorodskyi who came up with this approach
  • Maybe ace-editor can be used for that as we already use it for the code display?
  • Take look how we filter in data tables on other pages, e.g. /admin/products or /tests, and apply an equivalent approach on the logfile page
  • Provide a text field in the row next to "< Back to job …" and "Raw" with explanation text in the box when no text is there yet
  • Update the URL dynamically with the applied filter

Related issues 1 (1 open0 closed)

Copied to openQA Project (public) - action #165360: Improve interactive log viewer: Various suggestionsNew

Actions
Actions #1

Updated by okurz 6 months ago

  • Tags set to ux, log, ui
  • Description updated (diff)
  • Target version changed from future to Tools - Next
Actions #2

Updated by okurz 6 months ago

  • Target version changed from Tools - Next to Ready
Actions #3

Updated by okurz 6 months ago

  • Target version changed from Ready to Tools - Next
Actions #4

Updated by okurz 6 months ago

  • Target version changed from Tools - Next to Ready
Actions #5

Updated by mkittler 5 months ago

  • Subject changed from interactive log viewer: Generic filtering to interactive log viewer: Generic filtering size:M
  • Description updated (diff)
  • Status changed from New to Workable
Actions #6

Updated by livdywan 5 months ago

We should start with generic filtering to only show lines matching a search expression similar to how we filter table rows in pages like /admin/products based on expressions in the search field

Looking at ACE there is Multiple cursors and selections, and you can see it on https://ace.c9.io/ - is this what the idea is about? Or is this really about hiding parts of the editor like we hide rows in the data table-based UI on /admin/products?

Actions #7

Updated by okurz 5 months ago

livdywan wrote in #note-6:

[…] is this what the idea is about? Or is this really about hiding parts of the editor like we hide rows in the data table-based UI on /admin/products?

Let me quote the first suggestion: "Consider discussing the use case and possibilities and alternatives with asmorodskyi who came up with this approach"

Actions #8

Updated by tinita 5 months ago

  • Status changed from Workable to In Progress
  • Assignee set to tinita
Actions #10

Updated by openqa_review 5 months ago

  • Due date set to 2024-08-22

Setting due date based on mean cycle time of SUSE QE Tools

Actions #11

Updated by tinita 4 months ago

Updated the PR with some changes. It now adds the search to the URL fragment, e.g. #string. Maybe it should be #search=string as we might want to add other links later, like a link to a line number

Also some tests still failing, probably because those javascript functions are called on several other pages as well.

Actions #12

Updated by tinita 4 months ago

I think I got it working how it is supposed to be; existing tests are fixed.
Can't find an existing test for the logfile view though, so I will add one.

Actions #13

Updated by tinita 4 months ago

Actions #14

Updated by tinita 4 months ago

  • Status changed from In Progress to Feedback
Actions #15

Updated by tinita 4 months ago

  • Status changed from Feedback to Resolved
Actions #16

Updated by tinita 4 months ago · Edited

Gathering feedback:

  • Highlight matches
  • Raw download should only download filtered lines
  • Link to certain line and show line numbers
  • Convert source references to links, e.g. tests/rspec_webui_tests.pm:11
  • Some synchronized view of video + log files. There are already timestamps in the video, if it could show the video at the point of an autoinst.log entry (and vice versa)
Actions #17

Updated by tinita 4 months ago

  • Status changed from Resolved to Feedback

A minor improvement:
https://github.com/os-autoinst/openQA/pull/5860 Immediately search when clearing search field

Actions #19

Updated by tinita 4 months ago

  • Copied to action #165360: Improve interactive log viewer: Various suggestions added
Actions #20

Updated by tinita 4 months ago

  • Status changed from Feedback to Resolved

I created #165360 as a followup

Actions #21

Updated by okurz 4 months ago

  • Due date deleted (2024-08-22)
Actions

Also available in: Atom PDF