teammates icon indicating copy to clipboard operation
teammates copied to clipboard

Instructor: enroll students: allow same team name across sections

Open damithc opened this issue 11 years ago • 4 comments

'team 1' in tutorial 1 should be considered different from 'team 1' in tutorial 2

damithc avatar Oct 07 '14 02:10 damithc

@damithc this would change the following method https://github.com/TEAMMATES/teammates/blob/30a7659784b62567836476375f26187492550c0c/src/main/java/teammates/logic/core/StudentsLogic.java#L423-L449

In that case, what would constitute an invalid team info?

Haozhe321 avatar Mar 15 '18 17:03 Haozhe321

In that case, what would constitute an invalid team info?

Nothing I guess. However, note that we need to tweak our UI (and the logic) in many place to distinguish multiple teams with the same name but in different sections. e.g., show sec1/team1 instead of showing team1 only.

damithc avatar Mar 16 '18 01:03 damithc

Should a new variable be added in TeamDetailsBundle class, i.e. the sectional this team belongs to? One consideration of this is backwards compatibility with students created before this change takes place.

Since this is a big change, I want to be clear of the steps taken. Here are some of the areas that would be affected by the change. Let me know if there are other considerations. Right now I have

  1. UI of team name for feedback result (every time a team name needs to be displayed, it has to be accompanied with the section name as well)
  2. Feedback path to own team and other teams(a team name cannot uniquely determine the team of the student anymore, the section name would be needed)

How should I proceed to solve this issue systematically i.e. which part of the code base should be changed before the others?

@wkurniawan07 would love to have your input on this as well!

Haozhe321 avatar Mar 18 '18 04:03 Haozhe321

@Haozhe321 TeamDetailsBundle is not persisted to DB; modifying it should not have any backward-incompatibility issue.

I'm not familiar with this feature myself, but if anything, the result should be the last of all the worries (i.e. worry about the POST before the GET), so the first thing to loosen the criteria for team name uniqueness when adding new teams. Afterwards all code which retrieve team information by name only should be changed to retrieving by name and section name.

wkurniawan07 avatar Mar 18 '18 07:03 wkurniawan07