github-education-resources / teachers_pet

Command line tool to help teachers use GitHub in their classrooms
https://education.github.com/guide
MIT License
187 stars 74 forks source link

Multiple Groups #108

Open univienna-vda opened 9 years ago

univienna-vda commented 9 years ago

Hi,

I was able to use the teachers_pet toll to create "students" and "groups". My students file looks like:

StudentName1 StudentName2 StudentName3 team1 StudentName1 StudentName2 StudentName3

Ok, how can I create more students (StudentName4, StudentName6) and teams (team2) ? Do I have to create a new students file? Or eyerything in one file?

univienna-vda commented 9 years ago

I tried like this: StudentName1 StudentName2 StudentName3 team1 StudentName1 StudentName2 StudentName3 StudentName4 StudentName5 StudentName6 team2 StudentName4 StudentName5 StudentName6

But that was not working out...

tarebyte commented 9 years ago

Hi @PatrickWolfVDA I have my students organized into a couple of different formats. I have files for teams, files for students, and files for different sections of students.

For example I have an all_student_teams file that looks like this: team1 studentname1 studentname2 studentname3 team2 studentname4 studentname5 studentname6

I have a file for all_students which is just: studentname1 studentname2 studentname3 ...

VDAStudent2 commented 9 years ago

Hi @tarebyte,

thanks first. Ok, that sound intuitive for me. Would it than work like:

1) use the create_student_team command with the all_students file 2) use the teachers_pet add_to_team command with the all_students_team.csv file

tarebyte commented 9 years ago

Not quite, let's make this into an example.

Let's assume the method of sandboxing that I want is that there are multiple student teams with several members per team.

My all_student_teams file looks like this:

team1 studentname1 studentname2 studentname3
team2 studentname4 studentname5 studentname6
# more teams etc

I want to invite the students to my organization (my-classroom-org) AND separate them into teams, I would use the create_student_teams command

teachers_pet create_student_teams --organization my-classroom-org --students all_student_teams

Now if I want to add members to my team, I can just add them to my all_student_teams file and then rerun the command above.

Does that make sense @VDAStudent2?

Side Note The method I'm using requires that you have the TEACHERS_PET_GITHUB_TOKEN setup in your ENV.

VDAStudent2 commented 9 years ago

Hi @tarebyte,

yes that looks good. I guess i will try the following:

1) all_students_team to create the team structure 2) a file (single_students) which just contains: Studen1, Student2, ... to create individual accounts 3) teachers_pet create_repos with all_student_teams/single_student to create the repos

Thank's for helping and I write how it works.

By the way: How to create the syntax highlighting in here :)

tarebyte commented 9 years ago

@VDAStudent2 https://help.github.com/articles/github-flavored-markdown/#syntax-highlighting

:smile_cat:

univienna-vda commented 9 years ago

@tarebyte !

I was able to do it. Tank's for yout great help. I created a "students file" with both - names and groups.

tarebyte commented 9 years ago

Wonderful! I'm glad I was able to help :smiley_cat: