Skip to content

Fix #393: NPE prevents reviewing further findings#402

Open
joschli wants to merge 6 commits intomasterfrom
reviewsite-nav-findings
Open

Fix #393: NPE prevents reviewing further findings#402
joschli wants to merge 6 commits intomasterfrom
reviewsite-nav-findings

Conversation

@joschli
Copy link
Collaborator

@joschli joschli commented Jun 25, 2018

No description provided.

@joschli joschli self-assigned this Jun 25, 2018
@joschli joschli requested a review from salsolatragus June 25, 2018 16:39
@@ -41,10 +41,24 @@ public function getReview(Request $request, Response $response, array $args)

$runs = RunsController::getRuns($detector, $experiment, $ex2_review_size);
Copy link
Collaborator

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).

$runs = RunsController::getRuns($detector, $experiment, $ex2_review_size);

$all_misuses = $this->collectAllMisuses($runs);
$limited_all_misuses = $this->collectAllMisuses($runs);
Copy link
Collaborator

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;
}
}
Copy link
Collaborator

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.

@joschli joschli force-pushed the reviewsite-nav-findings branch from c90e3e8 to 3559d19 Compare September 20, 2018 16:22
@salsolatragus salsolatragus force-pushed the master branch 3 times, most recently from 8f1f1a5 to edd7d88 Compare September 20, 2019 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants