-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix #393: NPE prevents reviewing further findings #402
base: master
Are you sure you want to change the base?
Conversation
@@ -41,10 +41,24 @@ public function getReview(Request $request, Response $response, array $args) | |||
|
|||
$runs = RunsController::getRuns($detector, $experiment, $ex2_review_size); |
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.
Move misuse filtering logic to an accessor on Run::getMisuses($experiment, $max_review_site)
.
@@ -41,10 +41,24 @@ public function getReview(Request $request, Response $response, array $args) | |||
|
|||
$runs = RunsController::getRuns($detector, $experiment, $ex2_review_size); | |||
|
|||
$all_misuses = $this->collectAllMisuses($runs); | |||
$limited_all_misuses = $this->collectAllMisuses($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.
collectMisuses
if($limited_all_misuses->where('id', $next_reviewable_misuse->id)->isEmpty()){ | ||
$next_reviewable_misuse = null; | ||
} | ||
} |
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.
Try to reimplement determineNavigationTargets
by starting from the current misuse and walking forward/backward to determine the targets.
c90e3e8
to
3559d19
Compare
8f1f1a5
to
edd7d88
Compare
No description provided.