Added possibility to filter problems based on Severities independently
ClosedPublic

Authored by apuzio on Jan 18 2016, 7:09 PM.

Details

Summary

Introduced Severities QFlag
Allow setting severities individually in problemmodel, problemstore, filteredproblemstore
Added testSeverities() to test_problemstore.cpp Problem Reporter plugin
Added testing of setSeverities to test_problemmodel.cpp
Added testing of setSeverities to test_filteredproblemstore.cpp
Added problems to test_filteredproblemstore.cpp
Changed problemtreeview.cpp to use the new setSeverities function
Changed from ProblemStore to FilteredProblemStore in probleemreportermodel.cpp

Test Plan

Seams to work on the kdevplatform project (I imported the git repository of kdevplatform to kdevelop, it showed my many errors and warnings as I haven't configured anything).
The new unit tests pass.

Diff Detail

Repository
R33 KDevPlatform
Branch
problem_tool_filtering
Lint
No Linters Available
Unit
No Unit Test Coverage
apuzio updated this revision to Diff 2004.Jan 18 2016, 7:09 PM
apuzio retitled this revision from to Added possibility to filter problems based on Severity independently.
apuzio updated this object.
apuzio edited the test plan for this revision. (Show Details)
apuzio added a reviewer: kfunk.
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptJan 18 2016, 7:09 PM
apuzio updated this revision to Diff 2005.Jan 18 2016, 7:26 PM
  • Fixed bug in problemstore.cpp
apuzio updated this object.Jan 18 2016, 7:31 PM
kfunk added inline comments.Jan 19 2016, 12:20 PM
interfaces/iproblem.h
55

Note: Please get rid off that NoSeverity again. It's not a valid severity after all.

plugins/problemreporter/problemtreeview.cpp
311
IProblem::NoSeverity``` -> ```IProblem::Severities()
apuzio updated this revision to Diff 2024.Jan 19 2016, 9:34 PM
  • Add debug
apuzio updated this revision to Diff 2039.Jan 20 2016, 4:33 PM

FIXED THE PROBLEM (changed from ProblemStore to FilteredProblemStore in probleemreportermodel.cpp)

apuzio marked an inline comment as done.Jan 20 2016, 4:39 PM
apuzio added inline comments.
interfaces/iproblem.h
55–59 ↗(On Diff #2004)

Severity for some problems is sometimes = 0, so I would keep it for now.

apuzio updated this revision to Diff 2040.Jan 20 2016, 4:56 PM
  • Workaround for problems wothout correctly set severity
  • Changed comments and moved around code
apuzio updated this revision to Diff 2041.Jan 20 2016, 5:10 PM
  • Small style change
  • Fixed the dirty hack in test_filteredproblemstore.cpp
apuzio retitled this revision from Added possibility to filter problems based on Severity independently to Added possibility to filter problems based on Severities independently.Jan 20 2016, 5:16 PM
apuzio updated this object.
apuzio edited the test plan for this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.
kfunk added inline comments.Jan 27 2016, 9:00 AM
shell/problemmodel.h
146–161 ↗(On Diff #2004)

Btw: Why's that still here? Can we remove? Care to file a patch for that?

apuzio added inline comments.Jan 27 2016, 11:27 AM
shell/problemmodel.h
146–162 ↗(On Diff #2004)

@kfunk: I can remove the old functions that I left for backward compatibility, if you want.