aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
* Handle unique validator in DRF, not Django.Gravatar Leon Sandøy2020-07-29-15/+15
| | | | | | | | | I was handling this in a Django vanilla kind of way, which was causing the constraint to return a 500 instead of a 400. This changes the approach to use the DRF way, and makes it return 400. It doesn't actually change the way anything behaves, other than returning the right status code.
* Rename AllowDenyList to FilterListGravatar Leon Sandøy2020-07-27-48/+47
|
* Minor changes to tests, use subTest.Gravatar Leon Sandøy2020-07-19-9/+4
|
* Document the get_types endpoint.Gravatar Leon Sandøy2020-07-19-0/+14
|
* Simplify AllowDenyListType names.Gravatar Leon Sandøy2020-07-19-4/+4
| | | | | GUILD_INVITE_ID -> GUILD_INVITE WORD_WATCHLIST -> FILTER_TOKEN
* Add another AllowDenyList field, 'comment'.Gravatar Leon Sandøy2020-07-19-1/+9
| | | | | | | | This will be used to describe or justify the entries in the blacklist or whitelist, for example for the guild name in the case of guild invite IDs, so that we have some context when we're displaying the list. https://github.com/python-discord/site/issues/305
* Add an endpoint for getting AllowDenyList types.Gravatar Leon Sandøy2020-07-17-0/+16
| | | | https://github.com/python-discord/site/issues/305
* Merge branch 'master' into whitelist_systemGravatar Leon Sandøy2020-07-16-1/+1
|\
| * Bump jQuery versionGravatar MarkKoz2020-07-15-1/+1
| | | | | | | | | | The Django wiki updated the jQuery version, so our reference needs to be updated too. Otherwise, we will get a 404 for the script.
* | 100% branch coverage for account.pyGravatar Leon Sandøy2020-07-16-4/+9
| | | | | | | | https://github.com/python-discord/site/issues/305
* | 100% coverage for account.pyGravatar Leon Sandøy2020-07-16-29/+30
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Rename AllowList to AllowDenyList.Gravatar Leon Sandøy2020-07-16-55/+48
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Fix some broken tests.Gravatar Leon Sandøy2020-07-16-8/+7
| | | | | | | | | | | | | | | | | | | | The test_utils_account.py tests were never running, because the folder they were in had no __init__.py file. The test_models.py file was failing because it had an outdated import of the ModelReprMixin, which has moved to a new file. https://github.com/python-discord/site/issues/305
* | Improve some docstrings.Gravatar Leon Sandøy2020-07-16-6/+26
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Add tests for the AllowList model.Gravatar Leon Sandøy2020-07-16-0/+104
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Fix a bug in an old migration.Gravatar Leon Sandøy2020-07-16-2/+2
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Return id from the AllowListSerializer.Gravatar Leon Sandøy2020-07-15-8/+15
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Add a UniqueConstraint to prevent duplicates.Gravatar Leon Sandøy2020-07-15-0/+21
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Add a migration for the new AllowList model.Gravatar Leon Sandøy2020-07-15-0/+29
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Set up url forwarding for the viewset.Gravatar Leon Sandøy2020-07-15-14/+23
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Minor fixes for imports and __init__ files.Gravatar Leon Sandøy2020-07-15-12/+13
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Allowlist viewset.Gravatar Leon Sandøy2020-07-15-0/+54
| | | | | | | | https://github.com/python-discord/site/issues/305
* | Merge branch 'master' into whitelist_systemGravatar Leon Sandøy2020-07-15-32/+67
|\|
| * Merge remote-tracking branch 'origin/master' into feat/deps/344/django-3.0Gravatar MarkKoz2020-07-14-31/+8
| |\
| | * Fix linting issues caused by refactor.Gravatar Leon Sandøy2020-07-15-1/+2
| | |
| | * Removes django_crispy_forms dependency, too.Gravatar Leon Sandøy2020-07-15-30/+6
| | |
| | * Removes django_crispy_bulma dependency.Gravatar Leon Sandøy2020-07-14-5/+5
| | |
| * | Allow empty list for user rolesGravatar MarkKoz2020-07-14-0/+22
| | | | | | | | | | | | | | | This is the same issue as 145beb37fcb4fa2f487f18b234dd72bc4e10c279. See that commit for more information.
| * | Merge migrationsGravatar MarkKoz2020-07-14-0/+14
| | |
| * | Merge branch 'master' into feat/deps/344/django-3.0Gravatar MarkKoz2020-07-14-99/+181
| |\|
| * | Allow empty list for message embedsGravatar MarkKoz2020-03-21-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, blank=False for ArrayFields but allow_empty=True for ListField. Before DRF 3.10 there was a bug that ListField didn't respect the default value of blank=False and thus created a ListField in the serialiser with the default of allow_empty=True. We were relying on the behaviour of that bug. See encode/django-rest-framework#6597.
| * | Use basename instead of base_name with DRF routerGravatar MarkKoz2020-03-21-1/+1
| | | | | | | | | | | | base_name was deprecated in 3.9 and finally removed in 3.11.
* | | Add the AllowList model and serializer.Gravatar Leon Sandøy2020-07-14-1/+41
| | | | | | | | | | | | | | | | | | | | | This is the model which we will use for items that are either blacklisted or whitelisted. https://github.com/python-discord/site/issues/305
* | | Add a mixin for adding created and updated times.Gravatar Leon Sandøy2020-07-14-1/+13
| | | | | | | | | | | | https://github.com/python-discord/site/issues/305
* | | Rename utils.py to mixins.py. More precise.Gravatar Leon Sandøy2020-07-14-16/+16
| |/ |/| | | | | https://github.com/python-discord/site/issues/305
* | Catch ConnectionError when trying to get updated repository dataGravatar Dennis Pham2020-06-22-1/+1
| | | | | | This will prevent a 500 server error on our homepage when GitHub's API is down, allowing us to use the cached data we have instead.
* | Fix broken github api test dataGravatar Leon Sandøy2020-06-07-1/+1
| |
* | Replace django-crispy-bulma -> flake8-annotationsGravatar Leon Sandøy2020-06-07-1/+1
| |
* | Add Summer Code Jam image on landing page.Gravatar Leon Sandøy2020-06-07-2/+2
| |
* | Remove very generous newline in role validatorGravatar Joseph Banks2020-06-05-3/+1
| | | | | | Co-authored-by: Sebastiaan Zeeff <[email protected]>
* | Merge branch 'master' into joseph/change-roles-field-to-postgres-arrayGravatar Sebastiaan Zeeff2020-06-05-2/+2
|\ \
| * | Update navbar for Code Jam 7Gravatar Dennis Pham2020-06-04-2/+2
| | | | | | | | | Changed `Most Recent: Game Jam 2020` to `Upcoming: Code Jam 7`
* | | Alter import order in user modelGravatar Joseph Banks2020-06-02-1/+1
| | |
* | | Alter signal tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-5/+5
| | |
* | | Alter staff tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-1/+1
| | |
* | | Alter account utils test to use new user roles formatGravatar Joseph Banks2020-06-02-4/+6
| | |
* | | Alter API tests to use new user roles formatGravatar Joseph Banks2020-06-02-2/+2
| | |
* | | Alter account utilities to check list length instead of queryset lengthGravatar Joseph Banks2020-06-02-1/+1
| | |
* | | Alter signals to handle OAuth2 with groups and role mappingsGravatar Joseph Banks2020-06-02-5/+5
| | |
* | | Remove primary key from user serializerGravatar Joseph Banks2020-06-02-2/+0
| | |