-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#97 #105 Study group form #107
Conversation
Seems like travis is mad about something. Let me look at it first. |
Alright the build is passing now. I'm not sure why that one line redirecting the url changed the return value but it did so I removed it. |
I'm not getting any error. What steps are you taking exactly? |
|
its weird because I don't see how addUser is being called? |
perhaps add user is being called instead of addUserStudyGroups |
client/modules/User/UserActions.js
Outdated
|
||
export function createStudyGroupRequest(studyGroup) { | ||
return (dispatch) => { | ||
return callApi('users', 'post', { |
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.
should be 'studyGroups' and not 'users' as discussed on slack
alright ima test it |
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.
OK so I tested it out no more errors and the study group is created correctly in the database, but now you need to add the user to the study group, you can use the endpoint 'users//studyGroups' as a 'put' request to add the user
Approving for sprint 3, we will make a separate issue for what was discussed |
1- Created the study group form
2- Added the necessary routing for the new form
3- Added a navbar button to allow the user to create study groups
3- Modified the registration form to prevent page refresh (makes the website faster)
The validation for the study group only requires the user to have every field filled out. No specific format is required for the group name, teacher name, course tag or description.