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.
Category:
Regressions/Crashes
Description
Observation¶
See
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
- Priority changed from High to Normal
- Target version set to Ready
I don't think it's high prio as not many people actually bother to delete needles - and those who do learn about this obstacle quickly :(
- Description updated (diff)
- Status changed from New to Workable
I added two picture, does the result shown in after.png work as expected?
yes, that's how it should look like.
- Assignee set to Xiaojing_liu
- Target version changed from Ready to Current Sprint
- Status changed from Workable to In Progress
PR is merged and deployed on o3 but https://openqa.opensuse.org/admin/needles still shows a lot of needles with "Never" which I doubt is true. Do we need to wait for something to update the references? Like only after the next tests make actual use of the needles?
okurz wrote:
PR is merged and deployed on o3 but https://openqa.opensuse.org/admin/needles still shows a lot of needles with "Never" which I doubt is true. Do we need to wait for something to update the references? Like only after the next tests make actual use of the needles?
There is a problem in the PR. I did the symlink convert only in the needles those were queried by the same time. For example, the needle page once loads 10 needles info in one time, the realpath search only in those ten, so there are many "Never" in openqa.opensuse.org. I will give an solution about this. I am sorry that I did not consider this situation.
- Status changed from In Progress to Feedback
- Assignee deleted (
Xiaojing_liu)
- Status changed from Feedback to Resolved
Also available in: Atom
PDF