Skip to content

Conversation

@meisterT
Copy link
Member

@meisterT meisterT commented Apr 2, 2021

Fixes #639.

@codecov
Copy link

codecov bot commented Apr 2, 2021

Codecov Report

Merging #1040 (c33faf1) into master (f9b5f87) will decrease coverage by 0.01%.
The diff coverage is 11.76%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1040      +/-   ##
============================================
- Coverage     36.62%   36.61%   -0.02%     
- Complexity     5347     5351       +4     
============================================
  Files           249      249              
  Lines         19176    19188      +12     
============================================
+ Hits           7024     7025       +1     
- Misses        12152    12163      +11     
Impacted Files Coverage Δ Complexity Δ
webapp/src/Controller/API/JudgehostController.php 0.00% <0.00%> (ø) 129.00 <0.00> (ø)
webapp/src/Controller/Jury/RejudgingController.php 4.63% <0.00%> (-0.02%) 119.00 <0.00> (+1.00) ⬇️
webapp/src/Entity/JudgeTask.php 0.00% <0.00%> (ø) 34.00 <3.00> (+3.00)
webapp/src/Form/Type/RejudgingType.php 0.00% <0.00%> (ø) 5.00 <0.00> (ø)
webapp/src/Service/RejudgingService.php 3.31% <0.00%> (-0.02%) 30.00 <0.00> (ø)
webapp/src/Service/DOMJudgeService.php 51.99% <100.00%> (+0.07%) 132.00 <7.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9b5f87...c33faf1. Read the comment docs.

$builder->add('priority', ChoiceType::class,
[
'choices' => [
'low' => 'low',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not set the keys (or values, I always forget) to the actual prio numbers? Symfony will validate you actually pass a valid value so you can’t “hack” the form and specify something else (well technically because we have the Ajax in between you could but 🤷‍♂️)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also use curl or httpie, and I don't want to accept arbitrary priorities.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point

@meisterT meisterT merged commit 69e4caf into DOMjudge:master Apr 3, 2021
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.

Set rejudgings as lower priority for pickup by a judgehost

2 participants