Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Add voice ban to infraction types and create migration for it | 2020-10-10 | -1/+20 | |
| | ||||
* | Merge pull request #409 from dementati/feat/397-398-metricity-db-and-api | 2020-10-10 | -1/+164 | |
|\ | | | | | Added metricity db connection and user bot API | |||
| * | Merge remote-tracking branch 'upstream/master' into ↵ | 2020-10-10 | -134/+541 | |
| |\ | |/ |/| | | | | | | | | | | | feat/397-398-metricity-db-and-api # Conflicts: # pydis_site/apps/api/tests/test_users.py # pydis_site/apps/api/viewsets/bot/user.py | |||
* | | Merge pull request #378 from RohanJnr/user_endpoint | 2020-10-08 | -132/+543 | |
|\ \ | | | | | | | Add pagination and bulk update support for User(discord user) serializer. | |||
| * | | Move Validation checks to serializer from viewset | 2020-10-09 | -22/+23 | |
| | | | ||||
| * | | Convert ValidationError response value to list from string | 2020-10-08 | -1/+1 | |
| | | | ||||
| * | | Convert error message value from list to string | 2020-10-08 | -1/+1 | |
| | | | ||||
| * | | supress warning: UnorderedObjectListWarning: Pagination may yield ↵ | 2020-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 users | 2020-10-08 | -4/+5 | |
| | | | ||||
| * | | Merge branch 'master' into user_endpoint | 2020-10-08 | -192/+33 | |
| |\ \ | |/ / |/| | | ||||
* | | | Merge pull request #408 from imsofi/master | 2020-10-06 | -2/+2 | |
|\ \ \ | | | | | | | | | Bump links for Effective Python to 2nd edition | |||
| * \ \ | Merge branch 'master' into master | 2020-10-06 | -190/+31 | |
| |\ \ \ | |/ / / |/| | | | ||||
| * | | | Bump links for Effective Python to 2nd edition | 2020-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 ↵ | 2020-10-08 | -1/+2 | |
| | | | | | | | | | | | | | | | | duplicates | |||
| | * | | correct indentation | 2020-10-08 | -10/+10 | |
| | | | | ||||
| | * | | normalize API error responses. | 2020-10-08 | -2/+2 | |
| | | | | ||||
| | * | | use NON_FIELD_ERRORS_KEY for non-field-specific ValidationError response | 2020-10-08 | -1/+4 | |
| | | | | ||||
| | * | | update documentation | 2020-10-08 | -36/+34 | |
| | | | | ||||
| | * | | add testcase: test_returns_400_for_duplicate_request_users | 2020-10-08 | -0/+16 | |
| | | | | ||||
| | * | | raise ValidationError if users have same ID in request data during bulk patch | 2020-10-08 | -9/+15 | |
| | | | | ||||
| | * | | add test case: test_returns_400_for_existing_user | 2020-10-08 | -1/+12 | |
| | | | | ||||
| | * | | fix bug: bulk_patch returns duplicate objects in the response | 2020-10-08 | -1/+1 | |
| | | | | ||||
| | * | | catch IntegrityError and raise ValidationError during user creation. | 2020-10-08 | -0/+8 | |
| | | | | ||||
| | * | | update documentation | 2020-10-07 | -3/+3 | |
| | | | | ||||
| | * | | add test case for insufficient data while bulk updating users. | 2020-10-07 | -0/+14 | |
| | | | | ||||
| | * | | add check for insufficient data in update method of UserListSerializer | 2020-10-07 | -0/+5 | |
| | | | | ||||
| | * | | Document changes made to UserListSerializer in UserViewSet | 2020-10-07 | -0/+3 | |
| | | | | ||||
| | * | | use more efficient code | 2020-10-07 | -4/+6 | |
| | | | | ||||
| | * | | refactor tests to use updated changes and add tests for UserListPagination | 2020-10-06 | -2/+64 | |
| | | | | ||||
| | * | | overhaul create method to ignore conflicts and raise error when duplicates ↵ | 2020-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 ↵ | 2020-10-06 | -4/+5 | |
| | | | | | | | | | | | | | | | | UserListPagination | |||
| | * | | Merge branch 'user_endpoint' of https://github.com/RohanJnr/site into ↵ | 2020-10-05 | -0/+0 | |
| | |\ \ | | | | | | | | | | | | | | | | user_endpoint | |||
| | | * \ | Merge branch 'master' into user_endpoint | 2020-10-04 | -2/+11 | |
| | | |\ \ | | |_|/ / | |/| | | | ||||
| | | * | | Merge branch 'master' into user_endpoint | 2020-09-28 | -51/+617 | |
| | | |\ \ | ||||
| | * | | | | Change test case to use updated code | 2020-10-05 | -1/+1 | |
| | | | | | | ||||
| | * | | | | return next and previous page numbers in paginator instead of links | 2020-10-05 | -11/+30 | |
| | | | | | | ||||
| | * | | | | raise validation error for user not found in UserListSerializer | 2020-10-05 | -6/+11 | |
| | | | | | | ||||
| | * | | | | Merge remote-tracking branch 'upstream/master' into user_endpoint | 2020-10-04 | -53/+628 | |
| | |\ \ \ \ | | |/ / / / | |/| / / / | | |/ / / | ||||
| | * | | | optimize bulk update endpoint by using Model.objects.bulk_update() method | 2020-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_endpoint | 2020-09-09 | -281/+303 | |
| | |\ \ \ | | | | | | | | | | | | | | | | | | | the Pipfile.lock conflict was resolved by re-locking the pipfile. | |||
| | * | | | | remove redundant if clause in update() method in UserListSeriazlier. | 2020-08-28 | -3/+2 | |
| | | | | | | ||||
| | * | | | | re-lcok pipfile | 2020-08-28 | -22/+81 | |
| | | | | | | ||||
| | * | | | | Uninstall djangorestframework-bulk dependency | 2020-08-28 | -183/+121 | |
| | | | | | | ||||
| | * | | | | Add tests for bulk patch for User Model and additional test for bulk ↵ | 2020-08-28 | -0/+116 | |
| | | | | | | | | | | | | | | | | | | | | | | | | creation of User Models. | |||
| | * | | | | Add code to replace restframework_bulk package for bulk create and simplify ↵ | 2020-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 ↵ | 2020-08-26 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | object from database. | |||
| | * | | | | Add reference links in UserListSerializer methods | 2020-08-26 | -2/+7 | |
| | | | | | | ||||
| | * | | | | add support for bulk updates on user model | 2020-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 endpoint | 2020-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 an | 2020-10-08 | -8/+110 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | abstraction and added metricity endpoint unit tests. |