Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHG modify format for new repos to use netid instead of github username #281

Closed
wabscale opened this issue Oct 24, 2021 · 0 comments
Closed

Comments

@wabscale
Copy link
Collaborator

wabscale commented Oct 24, 2021

This will be an easy change to implement, but very very difficult to handle. New repos are named based off of: https://github.com/GusSand/Anubis/blob/6717f3bd1c8ec4ad9415aa3a4390d8739bf86e28/api/anubis/utils/github/repos.py#L63-L70

We will need to be super careful to make sure that all of the existing repos, and assignments will still work. Mainly the logic for handling webhooks will need to be revisited and rewritten: https://github.com/GusSand/Anubis/blob/6717f3bd1c8ec4ad9415aa3a4390d8739bf86e28/api/anubis/views/public/webhook.py#L50-L203

We'll also need to make sure that assignment repo collaborators are updated when a user updates their github username: https://github.com/GusSand/Anubis/blob/6717f3bd1c8ec4ad9415aa3a4390d8739bf86e28/api/anubis/views/public/auth.py#L187-L219

One thing that is possible is that we could rename all existing assignment repos (like a migration on github) and update the assignment repo database entries. We can rename repos using the github rest api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant