aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
* Fix wrong exception nameGravatar ks1292020-10-10-1/+1
|
* Cover metricity voice ban status with testsGravatar ks1292020-10-10-0/+23
|
* Include voice ban status on metricity dataGravatar ks1292020-10-10-0/+13
|
* Don't allow voice ban to be hidden infractionGravatar ks1292020-10-10-1/+1
|
* Add voice ban to infraction types and create migration for itGravatar ks1292020-10-10-1/+20
|
* Merge remote-tracking branch 'upstream/master' into ↵Gravatar dementati2020-10-10-15/+424
|\ | | | | | | | | | | | | | | feat/397-398-metricity-db-and-api # Conflicts: # pydis_site/apps/api/tests/test_users.py # pydis_site/apps/api/viewsets/bot/user.py
| * Move Validation checks to serializer from viewsetGravatar RohanJnr2020-10-09-22/+23
| |
| * Convert ValidationError response value to list from stringGravatar RohanJnr2020-10-08-1/+1
| |
| * Convert error message value from list to stringGravatar RohanJnr2020-10-08-1/+1
| |
| * supress warning: UnorderedObjectListWarning: Pagination may yield ↵Gravatar RohanJnr2020-10-08-1/+1
| | | | | | | | inconsistent results with an unordered object_list: <class 'pydis_site.apps.api.models.bot.user.User'> QuerySet.
| * return empty list as response for bulk creation of usersGravatar RohanJnr2020-10-08-4/+5
| |
| * Merge branch 'master' into user_endpointGravatar Rohan Reddy Alleti2020-10-08-192/+33
| |\
| | * Merge branch 'master' into masterGravatar Dennis Pham2020-10-06-190/+31
| | |\
| | * | Bump links for Effective Python to 2nd editionGravatar imSofi2020-10-05-2/+2
| | | | | | | | | | | | Updated and expanded book for Python 3. Has 30 new major guidelines added compared to the 1st edition.
| * | | fix bug with bulk create: response includes objects for users which were ↵Gravatar RohanJnr2020-10-08-1/+2
| | | | | | | | | | | | | | | | duplicates
| * | | correct indentationGravatar RohanJnr2020-10-08-10/+10
| | | |
| * | | normalize API error responses.Gravatar RohanJnr2020-10-08-2/+2
| | | |
| * | | use NON_FIELD_ERRORS_KEY for non-field-specific ValidationError responseGravatar RohanJnr2020-10-08-1/+4
| | | |
| * | | update documentationGravatar RohanJnr2020-10-08-36/+34
| | | |
| * | | add testcase: test_returns_400_for_duplicate_request_usersGravatar RohanJnr2020-10-08-0/+16
| | | |
| * | | raise ValidationError if users have same ID in request data during bulk patchGravatar RohanJnr2020-10-08-9/+15
| | | |
| * | | add test case: test_returns_400_for_existing_userGravatar RohanJnr2020-10-08-1/+12
| | | |
| * | | fix bug: bulk_patch returns duplicate objects in the responseGravatar RohanJnr2020-10-08-1/+1
| | | |
| * | | catch IntegrityError and raise ValidationError during user creation.Gravatar RohanJnr2020-10-08-0/+8
| | | |
| * | | update documentationGravatar RohanJnr2020-10-07-3/+3
| | | |
| * | | add test case for insufficient data while bulk updating users.Gravatar RohanJnr2020-10-07-0/+14
| | | |
| * | | add check for insufficient data in update method of UserListSerializerGravatar RohanJnr2020-10-07-0/+5
| | | |
| * | | Document changes made to UserListSerializer in UserViewSetGravatar RohanJnr2020-10-07-0/+3
| | | |
| * | | use more efficient codeGravatar RohanJnr2020-10-07-4/+6
| | | |
| * | | refactor tests to use updated changes and add tests for UserListPaginationGravatar RohanJnr2020-10-06-2/+64
| | | |
| * | | overhaul create method to ignore conflicts and raise error when duplicates ↵Gravatar RohanJnr2020-10-06-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | present in request data. Raising NotFound exception instead of ValidatoinError in update method
| * | | Update docstring of UserViewSet and correct function annotation on ↵Gravatar RohanJnr2020-10-06-4/+5
| | | | | | | | | | | | | | | | UserListPagination
| * | | Change test case to use updated codeGravatar RohanJnr2020-10-05-1/+1
| | | |
| * | | return next and previous page numbers in paginator instead of linksGravatar RohanJnr2020-10-05-11/+30
| | | |
| * | | raise validation error for user not found in UserListSerializerGravatar RohanJnr2020-10-05-6/+11
| | | |
| * | | Merge remote-tracking branch 'upstream/master' into user_endpointGravatar RohanJnr2020-10-04-53/+614
| |\| |
| * | | optimize bulk update endpoint by using Model.objects.bulk_update() methodGravatar RohanJnr2020-09-22-1/+7
| | | | | | | | | | | | | | | | The Model.objects.bulk_update() method greatly reduces the number of SQL queries by updating all required instances in 1 query.
| * | | Merge branch 'master' into user_endpointGravatar rohanjnr2020-09-09-214/+179
| |\ \ \ | | | | | | | | | | | | | | | the Pipfile.lock conflict was resolved by re-locking the pipfile.
| * | | | remove redundant if clause in update() method in UserListSeriazlier.Gravatar rohanjnr2020-08-28-3/+2
| | | | |
| * | | | Add tests for bulk patch for User Model and additional test for bulk ↵Gravatar rohanjnr2020-08-28-0/+116
| | | | | | | | | | | | | | | | | | | | creation of User Models.
| * | | | Add code to replace restframework_bulk package for bulk create and simplify ↵Gravatar rohanjnr2020-08-28-58/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UserListSerializer `to_internal_value()` function is not longer overriden in UserListSerializer, this is due to explicitly stating the `id` field in UserSerializer as mentioned in the documentation. Override `create()` method in UserListSerializer and override `get_serializer()` method in `UserViewSet` to support bulk creation.
| * | | | Except AttributeError when self.instance is None and while fetching User ↵Gravatar rohanjnr2020-08-26-1/+1
| | | | | | | | | | | | | | | | | | | | object from database.
| * | | | Add reference links in UserListSerializer methodsGravatar rohanjnr2020-08-26-2/+7
| | | | |
| * | | | add support for bulk updates on user modelGravatar rohanjnr2020-08-26-1/+136
| | | | | | | | | | | | | | | | | | | | implemented a method to handle bulk updates on user model via a new endpoint: /bot/users/bulk_patch
| * | | | add pagination for GET request on /bot/users endpointGravatar rohanjnr2020-08-26-6/+24
| | | | | | | | | | | | | | | | | | | | Pagination is done via PageNumberPagination, i.e, each page contains a specific number of `user` objects.
* | | | | Broke out metricity connection into anGravatar Lucas Lindström2020-10-08-8/+109
| | | | | | | | | | | | | | | | | | | | | | | | | abstraction and added metricity endpoint unit tests.
* | | | | Reduce metricity db setup script and API response to the bare necessities.Gravatar Lucas Lindström2020-10-06-25/+4
| | | | |
* | | | | Added total message count to metricity data response.Gravatar Lucas Lindström2020-10-06-1/+8
| | | | |
* | | | | Merge branch 'feat/397-398-metricity-db-and-api' of ↵Gravatar Lucas Lindström2020-10-06-190/+31
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | https://github.com/dementati/site into feat/397-398-metricity-db-and-api
| * \ \ \ \ Merge branch 'master' into feat/397-398-metricity-db-and-apiGravatar dementati2020-10-06-190/+31
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |