Project

General

Profile

action #68839

Show job group properties and template for non-admins

Added by tinita about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2020-07-10
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

It could be useful to show the Job Group Properties and the YAML Template to users without being logged in as admins.
Currently you have to be an admin to get the link, and the link goes directly into the editor.
For the YAML we could use YAML::PP's highlighting feature, which makes block scalars nicely visible (see https://www.yaml.info/learn/quote.html#tldr for example), so it might be a bit more readable than in the editor which has limited YAML highlighting capabilities.

It's possible to go to the link directly, e.g. https://openqa.opensuse.org/admin/job_templates/24
But it's weird that it is under /admin.

History

#1 Updated by tinita about 1 year ago

  • Description updated (diff)

#2 Updated by tinita about 1 year ago

  • Description updated (diff)

#3 Updated by cdywan about 1 year ago

I suspect this is an oversight. When I was working on the YAML editor there was already a notion of a read-only mode but I never touched the view that takes you to the editor. +1 for consistency.

For the YAML we could use YAML::PP's highlighting feature, which makes block scalars nicely visible (see https://www.yaml.info/learn/quote.html#tldr for example), so it might be a bit more readable than in the editor which has limited YAML highlighting capabilities.

This seems like an unrelated point. "Highlight block scalars in the YAML editor" should make a separate ticket.

Also available in: Atom PDF