Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Add option to use Roster ID for Assignment-Repo suffix #1722

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

ReshefElisha
Copy link

What

What does your pull request propose?
This PR implements a way to use the existing roster to organize student assignment-repos. A checkbox is added to assignment creation enabling the instructor to specify the use of the student's roster-id instead of their github-username as assignment-repo suffix.

This applies to #630 and partially to #1626

Heads up

app/views/assignment_invitations/show.html.erb still uses "#{current_assignment.slug}-#{current_user.github_user.login}" for the displayed repo name. This has no bearing on functionality but may confuse users as the final repo name will not be the one displayed. I'm unfamiliar with RoR so I'm not sure what the visibility of the generate_github_repository_name function is to the view. If possible, it should be used anywhere the repo-name needs to be used or shown. Please advise how to proceed.

@ReshefElisha
Copy link
Author

re: the assignment_invitation issue: It's also inaccurate in case a repo needs a suffix. This is a larger scope so may warrant a different PR? Currently in that view the AssignmentRepo current_submission is nil, until the user chooses to accept the invitation. This may mean the generate_github_repo_name method needs to be reimplemented in the assignment_invitation controller to remove depending on having a current_submission.

Copy link
Contributor

@BenEmdon BenEmdon left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, I agree that this is good idea and I want to see this happen.

Notes

  • Your commit history seems to overwrite some commits I made:

    You would have to clean that up for us to consider this PR.
  • Please separate the schema migration into a separate PR so we can run the migration with 0 downtime.
  • You need to add a test to spec/models/assignment_repo/creator_spec.rb to test this new functionality.

@stale
Copy link

stale bot commented Mar 31, 2019

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Mar 31, 2019
@andrewbredow andrewbredow added this to In progress in GitHub Classroom via automation Sep 11, 2019
@stale stale bot removed the stale label Sep 20, 2019
@andrewbredow andrewbredow removed the request for review from srinjoym September 20, 2019 13:41
@andrewbredow andrewbredow moved this from In progress to Icebox in GitHub Classroom Sep 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
GitHub Classroom
  
Icebox
Development

Successfully merging this pull request may close these issues.

None yet

3 participants