Open brita-sed opened 3 years ago
Reproduction steps are not clear, it should be investigated. Maybe there should be a sorting by Score set before choose a preset.
This could be a relic of a legacy feature since the card ui we never ever see more than 10 methods or entries. Should be discussed.
It happened because the "Show top 10 items" feature works as a simple score filter. It orders the code elements by score (descending), and applies the score of the 10th element from the list as a score filter with a relation of "greater than or equal". Let's say we have 15 code elements with a score of "1.0". Now, if we apply the "Show top 10 items" preset, what happens is that these code elements get ordered by their scores (descending), and the score of the 10th element in that list gets applied as a score filter. Now all 15 elements are shown despite having used the "Show top 10 items" preset. Maybe the feature should be redefined as "Show items whose scores are in the top 10 highest scores in the project".
The feature name could be (if we would like to use a shorter one) "Show top 10 score items" or "Show top 10 scored items".
Precondition
Steps
Expected results
Received results
Environment: