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

Merging Google Code-in work into develop branch #440

Merged
merged 28 commits into from
Feb 16, 2020
Merged

Conversation

isabelcosta
Copy link
Member

@isabelcosta isabelcosta commented Feb 16, 2020

Description

This pull request intends to merge the work from Google Code-in (GCI) participants.

Check here the list of GCI tasks

Fixes # [ISSUE]

Type of Change:

  • Code
  • Quality Assurance
  • Documentation

Code/Quality Assurance Only

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update (software upgrade on readme file)
  • New feature (non-breaking change which adds functionality pre-approved by mentors)

How Has This Been Tested?

Mentors performed some manual testing over crucial features of the app.

Checklist:

  • My PR follows the style guidelines of this project
  • I have performed a self-review of my own code or materials
  • I have commented my code or provided relevant documentation, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged
  • Update Postman API at /docs folder
  • Update Swagger documentation and the exported file at /docs folder
  • Update requirements.txt

Code/Quality Assurance Only

  • My changes generate no new warnings
  • My PR currently breaks something (fix or feature that would cause existing functionality to not work as expected)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been published in downstream modules

asawesome07 and others added 28 commits January 30, 2020 21:24
A test to validate whether 'delete_task' will throw a TASK_DOES_NOT_EXIST error upon an invalid task.
Working:
1. New query string parameter 'search' added for GET /users route. If 'search' is empty then show all users, otherwise search for the query.
2. 'flask_whooshalchemyplus' module installed for search functionality. It creates search index for fields specified in '__searchable__'. Woosh index created for 'name' and 'username'.
3. search_users() function created in dao/user.py. It searches for the specified query in database. This function is called by GET /users route.

References:
https://www.youtube.com/watch?v=bAPcmGNsulc
https://github.com/Revolution1/Flask-WhooshAlchemyPlus
- 400, 401, 402, 403, 404 error codes added
- Responses taken from messages.py

Fixes issue #345
Unauthorized user simulated using auth_header. Two tests created for admin_user and second_user. This will resolve issue #227.
…310)

Three test cases created:
1. User not involved in mentorship relation tries to create a task (FAIL)
Gives 400 and UNACCEPTED_STATE_RELATION response. Test case created using
```mentorship_relation_without_first_user```

2. Valid user tries to create task without description in the body (FAIL)
Gives 400 and DESCRIPTION_FIELD_IS_MISSING response. Test case created by
keeping description empty.

3. Valid user tries to create a task with authentication token expired (FAIL)
gives 401, TOKEN_HAS_EXPIRED response. Expired token generated using
token_expiration_delta property. Delta set to -10 seconds

Resolves issue #305
feat: Add comment task database table and endpoints
Add ability to comment tasks and identify them by task_id and relationship_id
The models/user.py has 2 typos that I supposingly fixed.

On line 60, I removed the extra "
On line 112, I removed the extra id.
feat:Send email when mentorship relation accepted.
@isabelcosta isabelcosta merged commit 3fb1a21 into develop Feb 16, 2020
@isabelcosta isabelcosta deleted the gci-dev branch March 15, 2020 15:07
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.