Project

General

Profile

Actions

action #53762

closed

/admin/needles can be misleading in mentioning needle as "never used" when it is referenced from a symlinked needles repo

Added by okurz almost 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2019-07-03
Due date:
% Done:

0%

Estimated time:

Description

Observation

See

Screenshot_20190703_110831.png

showing the search results for a needle "user_settings_root-inst-rootpassword-20190306.json" that appears twice even though it is the same needle. It is reported as correctly used within the directory "opensuse" but "never/never" for "kubic-Tumbleweed". The bigger problem is when I limit using the provided filters which can cause one of the entries to not show at all. This can mislead the user into thinking a needle can be deleted when it is actually actively used by the other "directory" aka. "distri".

This mislead me into deleting quite some needles which caused a lot of tests to fail on o3 and I had to recover all these needles :D

Acceptance criteria

  • AC1: Needles that are recently referenced as in use by any symlinked repo are not reported as "never used" within /admin/needles

Suggestions

  • Dereference symlinks when loading needles for evaluating if they are still used
  • Ensure the same needle files are either only referenced once or shown with the use information regardless of the used "distri"

Files

Screenshot_20190703_110831.png (24.5 KB) Screenshot_20190703_110831.png okurz, 2019-07-03 09:10
before.png (41.5 KB) before.png Xiaojing_liu, 2020-01-23 08:55
after.png (42 KB) after.png Xiaojing_liu, 2020-01-23 08:55
Actions

Also available in: Atom PDF