rails-girls-summer-of-code / rgsoc-teams

Teams management and activity
https://teams.railsgirlssummerofcode.org
MIT License
68 stars 140 forks source link

Application process: Make sure a role without a github handle cannot be added #434

Open mkalininait opened 8 years ago

mkalininait commented 8 years ago

One student writes in Slack: "Hi, I'm trying to add another student to my team, but get an error https://teams.railsgirlssummerofcode.org/teams/121 1 error prohibited this team from being saved: Roles there cannot be more than 2 students on a team. Although there is currently only one student (me)"

I looked at it, there is one blank student (without a github handle), and I can’t neither add a github handle, nor delete it from the team.

alicetragedy commented 8 years ago

I tried it locally again, and was able to add a member to my team without github handle. we should probably fix this. thanks for noticing @mkalininait!

alicetragedy commented 8 years ago

Update: since validations are in place to ensure that the github handle isn't blank, this wasn't the problem. A user is required for the role (so, to be added to the team) and if the user is not present in the database, it silently fails (and adds an empty role to the team). Not sure what the fix is, (or if there is one) but we will make extra sure that students know they all have to log in in order to be added to a team.

sainera commented 8 years ago

My team was trying to submit the application the whole day but even after completing the application process, it was getting saved as the draft, By the time we tried looking for the issue and retry he application process,the application got closed. Please tell me how to submit the application as it got closed now. Please help.

alicetragedy commented 8 years ago

@sainera I'm sorry, but this is not the right place for application support. please get in touch with us by email. You can find the contact information on our about page.

mkalininait commented 7 years ago

Tested on Staging: still can add a role without a github handle. "...and I can’t neither add a github handle, nor delete it from the team." <- I still can't add a handle, but I can delete this empty role at least.

alicetragedy commented 7 years ago

just a thought: If you are testing this on staging (where you might have a “student” role as well as an “organiser” role) that might be the reason why you can delete the empty role and a “simple” student might not be able to. have you tried testing locally with a “login as user” feature (or changing your role to student-only)?

mkalininait commented 7 years ago

@alicetragedy I have a special user for testing -- mkalininait-test. It doesn't have any special permissions. PS: I didn't try the “login as user” feature yet.

alicetragedy commented 7 years ago

I'm sorry @mkalininait, I had no idea about that. then it looks like it was magically half-fixed at least 😂 (I think that not being able to remove the role was the more critical/annoying part of the bug, so it might not be an issue that needs an urgent fix after all if students can remove the empty roles themselves). Thanks for testing it again!

emcoding commented 7 years ago

Yeah, removing a role was a separate issue and was solved in #577

carpodaster commented 7 years ago

Can this be closed?

mkalininait commented 7 years ago

@carpodaster We still can add a role without a github handle. It's not a huge deal, and we could live with this. But I'm not sure who on the RGSoC orga team makes (is eligible to make) decisions about product features and bugs.

LuisaAPF commented 7 years ago

I was not able to reproduce this issue. If I try to assign a role to an empty github handle, I get a 500 error and no role is created on the database. I can work instead on fixing the validations.

carpodaster commented 7 years ago

@LuisaAPF thank you for offering to fix this issue! There is an open PR (#796) that could be related. Let's wait until it is merged and see if the problem persists.

LuisaAPF commented 7 years ago

Ok!

emcoding commented 7 years ago

@LuisaAPF I happen to notice that you picked one of the few issues that are labeled beginner friendly, and not rgsoc17. You are very welcome to pick issues with the rgsoc17 label as well. As far as I know, they are not exclusive for the RGSoC team. Am I right, @carpodaster ?

carpodaster commented 7 years ago

As far as I know, they are not exclusive for the RGSoC team. Am I right, @carpodaster ?

@F3PiX @LuisaAPF definitely – everything that's not been assigned (or being commented on that someone's working on it) is up for grabs

LuisaAPF commented 7 years ago

Thanks for the tip, @F3PiX. I wasn't sure I could work on those.

emcoding commented 7 years ago

@LuisaAPF If you have questions, want to check for suitable issues, or could use some help with the setup or anything else that may hold you back, please don't hesitate to ask!! You can put a question in an issue, and someone will answer, and/or 'ping' me ( i.e. add @F3PiX to your comment).