-
Notifications
You must be signed in to change notification settings - Fork 0
Move is_tech_lead to team_members and misc improvements #85
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like the loss of the tech-lead level permissioning is a bit disappointing - can that still be implemented with this setup?
As an administrative tool, especially re: #84, I think it's pretty important that there is one level of permissions beneath admin.
# e.g: $ make migration MIGRATION=6_add_is_tech_lead | ||
.PHONY: migrate | ||
migrate: | ||
@docker-compose exec postgres bash -c \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
@@ -13,7 +13,7 @@ import ( | |||
func NewAddUserCmd(ch cmd.CommandHandler) *cmd.Command { | |||
return &cmd.Command{ | |||
Name: "add-user", | |||
HelpText: "Add a user to a team (admins and tech leads only)", | |||
HelpText: "Add a user to a team (admins only)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we removing all tech-lead level permissions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just took it out for now because I didn't want to write the extra code to check if a given member is a tech lead, since that would require an extra DB query each time we check the user's privilege level. But I was just lazy so I'll add it back in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be great!
} | ||
return names, noParams | ||
if len(msg) == 0 { | ||
msg = "There are currently no admins :feelsbadman:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
@@ -17,17 +16,20 @@ func NewTechLeadsCmd(ch cmd.CommandHandler) *cmd.Command { | |||
} | |||
} | |||
|
|||
// listAdmins displays Launch Pad admins | |||
// listTechLeads displays Launch Pad tech leads |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops 😛
Changes
is_tech_lead
frommembers
toteam_members
relation table. Now a member can be a lead of multiple teams and teams can have multiple leads.toggle-tech-leads
andtech-leads
accordingly.