-
Notifications
You must be signed in to change notification settings - Fork 379
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
Checker summary view #870
Checker summary view #870
Conversation
libcodechecker/libhandlers/cmd.py
Outdated
@@ -594,6 +594,15 @@ def add_arguments_to_parser(parser): | |||
results.set_defaults(func=cmd_line_client.handle_list_results) | |||
__add_common_arguments(results, has_matrix_output=True) | |||
|
|||
results = subcommands.add_parser( | |||
'statistics', |
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.
Why is this a new subcommand instead of CodeChecker cmd sum
redesigned to give this output?
d287779
to
fc354ec
Compare
'dojo/promise/all', | ||
'dojo/store/Memory', | ||
'dojo/store/Observable', | ||
'dojo/data/ItemFileWriteStore', |
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.
Imports are in a strange order here.
907cf30
to
1f6019d
Compare
1f6019d
to
9619b2e
Compare
api/report_server.thrift
Outdated
@@ -42,6 +42,13 @@ struct RunReportCount{ | |||
} | |||
typedef list<RunReportCount> RunReportCounts | |||
|
|||
struct CheckerDataCount { | |||
1: string name, // Checker name |
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.
The nomenclature pull-request will make this file also be formatted as full sentences, this should be so from now on.
api/report_server.thrift
Outdated
@@ -443,7 +450,7 @@ service codeCheckerDBAccess { | |||
// for all of the runs and in compare mode all of the runs | |||
// will be used as a baseline excluding the runs in compare data. | |||
// PERMISSION: PRODUCT_ACCESS | |||
map<string, i64> getCheckerCounts(1: list<i64> runIds, | |||
CheckerDataCounts getCheckerCounts(1: list<i64> runIds, | |||
2: ReportFilter_v2 reportFilter, |
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.
The length of the type changed, please align the arguments to be under each other (introduce a single space).
|
||
this.structure = [ | ||
{ name : 'Checker Name', field : 'checker', width : '100%'}, | ||
{ name : 'Severity', field : 'severity', styles : 'text-align: center;', width : '10%'}, |
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.
Please make this column a bit bigger, so on relatively medium-sized screens the Severity
header is not split.
print(CmdLineOutputEncoder().encode(results_collector)) | ||
print(CmdLineOutputEncoder().encode(all_results)) | ||
else: | ||
header = ['Checker', 'Severity', 'Reports', 'Unreviewed', 'Confirmed', |
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 think this table looks a bit strange, as the "detection status" is too far.
I believe the following format would be better for the eye:
- Checker
- Severity
- All reports (let's emphasise this)
- Resolved
- Unreviewed
- Confirmed
- False positive
- Won't fix
this._runFilter = new RunFilter({ | ||
store: this._runStore, | ||
labelAttr : 'label', | ||
label : 'Get Statistics only for these runs...', |
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.
Get statistics only for runs...
would be better here. Also, if this is a user-string, perhaps "
should be used instead of '
.
For the sake of readability, please align the :
s under each other.
description="Show the count of checker reports per checker for some " | ||
"analysis runs.", | ||
help="Show number of reports per checker.") | ||
description="Show checker statistics for some analysis runs.", |
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.
As the description of this command was changed, the docs/user_guide.md
file should also be updated to reflect the new help.
api/report_server.thrift
Outdated
@@ -42,6 +42,13 @@ struct RunReportCount{ | |||
} | |||
typedef list<RunReportCount> RunReportCounts | |||
|
|||
struct CheckerDataCount { |
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.
Why is Data
part of this type's name?
this.structure = [ | ||
{ name : 'Checker Name', field : 'checker', width : '100%'}, | ||
{ name : 'Severity', field : 'severity', styles : 'text-align: center;', width : '10%'}, | ||
{ name : '<span class="customIcon detection-status-unresolved"></span> Reports', field : 'reports', width : '20%'}, |
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.
Of course the same header layout I proposed applies to the web interface too.
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.
We should note that this will change the command line output format, some scripts might be broken because of the changed output.
@gyorb I added a note to the 6.0 patchnotes. |
Could we changed the tab order to be like |
I think ordering (or viewing) by severity does not work properly (High, Low, Medium) should be (High, Medium, Low) @csordasmarton. |
9619b2e
to
32fbebd
Compare
|
32fbebd
to
9b745b8
Compare
9b745b8
to
9681054
Compare
Closes #826