-
Notifications
You must be signed in to change notification settings - Fork 570
Fix ensure_submission_repository_exists for import_resiliency beta #1413
Conversation
…when import_resiliency_enabled?
.github_repository | ||
.present?(headers: GitHub::APIHeaders.no_cache_no_store) | ||
.github_repository | ||
.present?(headers: GitHub::APIHeaders.no_cache_no_store) |
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.
Layout/MultilineMethodCallIndentation: Align .present? with current_submission on line 96.
@@ -94,13 +94,17 @@ def join_roster | |||
def ensure_submission_repository_exists | |||
return not_found unless current_submission | |||
return if current_submission | |||
.github_repository | |||
.present?(headers: GitHub::APIHeaders.no_cache_no_store) | |||
.github_repository |
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.
Layout/MultilineMethodCallIndentation: Align .github_repository with current_submission on line 96.
.github_repository | ||
.present?(headers: GitHub::APIHeaders.no_cache_no_store) | ||
.github_repository | ||
.present?(headers: GitHub::APIHeaders.no_cache_no_store) |
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.
Layout/MultilineMethodCallIndentation: Align .present? with current_submission on line 96.
@@ -94,13 +94,17 @@ def join_roster | |||
def ensure_submission_repository_exists | |||
return not_found unless current_submission | |||
return if current_submission | |||
.github_repository | |||
.present?(headers: GitHub::APIHeaders.no_cache_no_store) | |||
.github_repository |
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.
Layout/MultilineMethodCallIndentation: Align .github_repository with current_submission on line 96.
What
This PR changes the behavior in
ensure_submission_repository_exists
such that if anAssignmentRepo
is created it redirects to#setupv2
when in theimport_resiliency
beta is enabled.How
This behavior was happening in a
before_action
:https://github.com/education/classroom/blob/cd1d7e63bd6dada2f7f76a79d7c447147c9ac8f1/app/controllers/assignment_invitations_controller.rb#L8
Didn't catch this when I made the original change in #1385