Skip to content
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

Merged
merged 10 commits into from
Mar 9, 2017
Merged

#97 #105 Study group form #107

merged 10 commits into from
Mar 9, 2017

Conversation

ONourry
Copy link
Collaborator

@ONourry ONourry commented Mar 5, 2017

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.

@ONourry
Copy link
Collaborator Author

ONourry commented Mar 5, 2017

Seems like travis is mad about something. Let me look at it first.

@coveralls
Copy link

Coverage Status

Coverage decreased (-30.3%) to 44.681% when pulling 57a0aa8 on studyGroup_form into a5be192 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-30.3%) to 44.681% when pulling 92fa271 on studyGroup_form into a5be192 on master.

@ONourry
Copy link
Collaborator Author

ONourry commented Mar 8, 2017

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.

@coveralls
Copy link

Coverage Status

Coverage decreased (-30.3%) to 44.681% when pulling b4bc707 on studyGroup_form into a5be192 on master.

@simon-bourque
Copy link
Collaborator

simon-bourque commented Mar 8, 2017

I get this error message whenever I try to add a study group
image

Does anyone else get this error?

@ONourry
Copy link
Collaborator Author

ONourry commented Mar 8, 2017

I'm not getting any error. What steps are you taking exactly?

@simon-bourque
Copy link
Collaborator

  1. Log in
  2. Click on the create study group
  3. fill in form with the following
    group name : test
    course: coen346
    teacher: bob bob
    description: asdadadad
  4. click create study group
  5. click ok on alert
  6. observe error message appear on console

@simon-bourque
Copy link
Collaborator

its weird because I don't see how addUser is being called?

@simon-bourque
Copy link
Collaborator

perhaps add user is being called instead of addUserStudyGroups


export function createStudyGroupRequest(studyGroup) {
return (dispatch) => {
return callApi('users', 'post', {
Copy link
Collaborator

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

@simon-bourque
Copy link
Collaborator

alright ima test it

@coveralls
Copy link

Coverage Status

Coverage decreased (-30.3%) to 44.681% when pulling 6c71409 on studyGroup_form into a5be192 on master.

@simon-bourque simon-bourque dismissed their stale review March 8, 2017 01:44

making a new review

@simon-bourque simon-bourque self-requested a review March 8, 2017 01:45
Copy link
Collaborator

@simon-bourque simon-bourque left a 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

@simon-bourque
Copy link
Collaborator

Approving for sprint 3, we will make a separate issue for what was discussed

@ONourry ONourry merged commit 87c72aa into master Mar 9, 2017
@ONourry ONourry deleted the studyGroup_form branch March 9, 2017 03:07
@ONourry ONourry self-assigned this Mar 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants