ghclass
ghclass copied to clipboard
org_create_assignment sometimes fails to add students
Hello,
Thank you for this great package! I have an issue I don't know how to replicate because it seems to happen sporadically. I have a class of 50-ish students and I can create repositories as instructed in the vignette using homework number and their user names (no problem here). However, sometimes some students can't see these repositories as expected. I don't see their profiles under GitHub repo settings (collaborators tab) suggesting that something is failing while adding the users to new repos? This seems to happen randomly (same students aren't experiencing the problem consistently)
Sorry, I am not able to describe it more specifically but would you have any ideas at all?
I don't have a good explanation off the top of my head - if you are not seeing an error message that ghclass failed to give the user the desired permission then there are two possibilities that I can think of:
- there is something weird happening with the GitHub API that either the package isn't handling correctly or is misreporting the results
- if the student was not a member of the organization then they would need to accept the invitation to collaborate - but then they should be seeing the invitation
I've just made a small change to the current dev branch that now has org_create_assignment
invisibly returns the results of each step. If you want to try using this version for your next assignment and if you see the same issue you can send along the output which would be helpful for debugging.
Something like the following should work:
res = ghclass::org_create_assignment(...)
saveRDS(res, "ghclass_debug.rds")
This will contain the raw output from the github api so it might contain some basic private information like private repository names and student usernames if that is of concern.