Coder Social home page Coder Social logo

Comments (2)

JosteinLindhom avatar JosteinLindhom commented on May 29, 2024 2

The problem this issue references is as follows:

  • Student wants to enroll in a course
  • Teacher accepts student enrollment
  • QuickFeed creates personal repository for student: Student-labs
  • QuickFeed adds student as outside collaborator for assignment, info and Student-labs
  • QuickFeed accepts outside collaborator invites on behalf of the user

At a later point, the student creates a group:

  • Student creates a group studentgroup
  • Teacher accepts group
  • QuickFeed creates group repository studentgroup
  • QuickFeed creates a GitHub team studentgroup for the group
  • Student is added to the studentgroup GitHub team
    • Student is automatically invited by GitHub to the organization as a member
  • QuickFeed does not accept the member invite on behalf of the user

In order for the student to see their group repository they need to be part of the studentgroup team.
For a GitHub user to be able to join a GitHub team, the user has to be a member of the organization.

To make matters worse, GitHub invites expire after 7 days. This may cause invites to expire before the student starts working on group related stuff. In these cases teachers currently have to manually re-send invites.

#1081 introduces a much simpler fix than the proposed webhook solution.
In #1081 we simply edit organization membership to member upon enrolling a student. This will invite the student to the organization as a member, and we will accept the invite on behalf of the user.

This way the student will already be a member when added to a team as part of group creation, and will be able to see their group repository without requiring further action.

from quickfeed.

meling avatar meling commented on May 29, 2024

Maybe the GitHub app manifest needs to be updated to select organization.

from quickfeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.