Remove PairProgrammingExerciseFeedback
* Remove view, controller, routes & policy for PairProgrammingExerciseFeedback * Keep model & database table
This commit is contained in:

committed by
Sebastian Serth

parent
2ce5687f53
commit
26552a0682
@@ -6,12 +6,6 @@ module RedirectBehavior
|
||||
def redirect_after_submit
|
||||
Rails.logger.debug { "Redirecting user with score:s #{@submission.normalized_score}" }
|
||||
|
||||
# TEMPORARY: For the pythonjunior2023 course, we want to have a lot of feedback!
|
||||
if @submission.redirect_to_survey?
|
||||
redirect_to_pair_programming_survey
|
||||
return
|
||||
end
|
||||
|
||||
if @submission.normalized_score.to_d == BigDecimal('1.0')
|
||||
if redirect_to_community_solution?
|
||||
redirect_to_community_solution
|
||||
@@ -105,16 +99,6 @@ module RedirectBehavior
|
||||
@community_solution_lock.user == current_user
|
||||
end
|
||||
|
||||
# TEMPORARY: For the pythonjunior2023 course, we introduced a pair programming survey
|
||||
def redirect_to_pair_programming_survey
|
||||
url = new_pair_programming_exercise_feedback_path(pair_programming_exercise_feedback: {exercise_id: @exercise.id, submission_id: @submission.id})
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to(url) }
|
||||
format.json { render(json: {redirect: url}) }
|
||||
end
|
||||
end
|
||||
|
||||
def redirect_to_user_feedback
|
||||
uef = UserExerciseFeedback.find_by(exercise: @exercise, user: current_user)
|
||||
url = if uef
|
||||
|
Reference in New Issue
Block a user