codecharta icon indicating copy to clipboard operation
codecharta copied to clipboard

Auto detect percentage metrics and their direction

Open BridgeAR opened this issue 4 years ago • 0 comments

Feature request

Description

As a a user, I want metric directions automatically be defined as expected so that I do not have to configure those manually.

Acceptance criteria

  • Percentage metrics are detected and automatically use the proper direction in "all" cases

Assumptions & Exclusions

This heuristic might fail under specific circumstances. That should be a rare exception.

Development notes (optional Task Breakdown)

  • [ ] Add a direction to the metrics that are generated with our parsers. The cc.json has to be changed due to that. The new field is optional. Use that direction in the UI as default after loading the cc.json file.
  • [ ] Detect percentage metrics by their name in case the direction is not hardcoded (use a default list of known words that indicate a specific metric type. Use English and German words. Matching should be case insensitive and may be at the start or the end of the name)
  • [ ] Check that all values are in the range [0, 100]
  • [ ] (Optional for now) Implement an auto detection for metrics where all values are below 100 without matching names. This may be done by comparing known percentage metrics with historic data (ask @ce-bo for the data). Identify the direction of the percentage metric by using the projects metric data points and build a bubble. Compare that bubble with historic metric bubbles. If one matches a direction, use that direction.

Open questions

Likely more than one. Please ask away!

BridgeAR avatar Nov 08 '21 14:11 BridgeAR