-
Notifications
You must be signed in to change notification settings - Fork 449
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Resolves issue #266
…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.
annabauza
approved these changes
Feb 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 Only
How Has This Been Tested?
Mentors performed some manual testing over crucial features of the app.
Checklist:
Code/Quality Assurance Only