New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add untracked metrics to suspiciousMetricsHelper.ts #2962 #2996
Conversation
…s-overlay' into fix/2962/empty-suspicious-metrics-overlay
...codeCharta/ui/artificialIntelligence/artificialIntelligenceHelper/suspiciousMetricsHelper.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have another idea to this issue. All you need is this:
for (const key in metricValuesByLanguages[mainProgrammingLanguage]) {
const keys = Object.keys(languageSpecificMetricThresholds)
if (!keys.includes(key) && !metricAssessmentResults.untrackedMetrics.includes(key)) {
metricAssessmentResults.untrackedMetrics.push(key)
}
}
So we wouldn't need that array in array thing, that is really confusing me :D
But your approch is also good!
…s-overlay' into fix/2962/empty-suspicious-metrics-overlay
@Hall-Ma I agree with you and find your solution more feasible! |
[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed! |
[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed! |
Suspicious Metrics Overlay is empty for maps without known metrics
Issue: #2962
Additionally I suggest adding untracked metrics to the list even though the overlay appears right. This could be useful to inform the user about metrics that could not be tested. For example every metric might be unsuspicious but what about the other metrics that have not been tested. This feature allows the user to be warned about "untracked" metrics.
Next steps: