InteractiveFaultLocalization / iFL4Eclipse

iFL for Eclipse is an Eclipse plug-in for supporting interactive fault localization for Java projects developed in this environment.
Eclipse Public License 2.0
3 stars 1 forks source link

Choose preset, Show top 10 suspicious items: more then 10 item appeared #193

Open brita-sed opened 3 years ago

brita-sed commented 3 years ago

Precondition

Steps

  1. Select a project.
  2. Click iFL button.
  3. Load scores.
  4. Select an item.
  5. Right click > Context based feedback.
  6. Set context to high values, to 1.000
  7. Click OK button.
  8. Click Show filters button.
  9. Choose preset button.
  10. Select Show top 10 suspicious items.
  11. Click Apply preset.

Expected results

Received results

top_10_suspicious

Environment:

brita-sed commented 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.

ordering_by_score

geryxyz commented 3 years ago

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.

Dhorvath1294 commented 3 years ago

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".

brita-sed commented 3 years ago

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".