aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
* Revert pull request #348Gravatar MarkKoz2020-08-29-82/+41
| | | | | | Revert commit 330a27926a7f2a9bdae56a5928cd81e55ccb38ed to reverse changes made to 6c08da2f3e48db9c9dd452f2e0505c4a61e46592. Migrations were failing when those changes were deployed.
* Fix linting issues on off-topic viewsetGravatar ks1292020-08-29-3/+7
|
* Fix mess with migrationsGravatar ks1292020-08-29-38/+10
|
* Fix off-topic names test docstrings moodGravatar ks1292020-08-29-15/+15
|
* Simplify non-random off-topic names selectionGravatar ks1292020-08-29-22/+17
|
* Merge branch 'master' into off-topic-non-randomGravatar Leon Sandøy2020-08-27-206/+1026
|\
| * Merge pull request #374 from Numerlor/reminder-direct-retrieveGravatar Mark2020-08-20-1/+59
| |\ | | | | | | Allow direct fetching of reminders by id
| | * Update docstring for new fetching behaviourGravatar Numerlor2020-08-20-0/+24
| | |
| | * Allow direct fetching of reminders by idGravatar Numerlor2020-08-20-1/+35
| | |
| * | Update Code Jam 7 to most recent in navbarGravatar Dennis Pham2020-08-13-1/+1
| | |
| * | Update rule 6 for the removal of #show-your-projectsGravatar Dennis Pham2020-08-08-1/+2
| |/
| * Fix bad migration 0059Gravatar Leon Sandøy2020-08-03-0/+85
| | | | | | | | | | This had the wrong data for GUILD_INVITES - it had invites instead of Guild IDs. This new migration solves this problem.
| * Delete FilterList objects for tests.Gravatar Leon Sandøy2020-07-30-0/+10
| | | | | | | | | | | | | | Now that we have a migration that adds data, we can no longer have tests that operate on the assumption that the database is going to be empty. So, we're now clearing that table before these tests run.
| * Add a migration for all the existing data.Gravatar Leon Sandøy2020-07-30-0/+153
| | | | | | | | | | This will populate the table with domain names, guild invites, filter tokens and file formats.
| * Provide callable, not return value.Gravatar Leon Sandøy2020-07-30-1/+1
| | | | | | Co-authored-by: Sebastiaan Zeeff <[email protected]>
| * Add a constraint in the DB model as well.Gravatar Leon Sandøy2020-07-29-0/+15
| | | | | | | | | | | | | | | | | | This really should've been handled automatically by DRF, and in the future, it will be. But for now, we need to have constraints both on the serializer (to get status code 400), and on the model (to prevent direct database constraint violations). See https://github.com/encode/django-rest-framework/issues/7173
| * Fix multiple leafs for migration graph.Gravatar Leon Sandøy2020-07-29-1/+1
| |
| * Merge branch 'master' into whitelist_systemGravatar Leon Sandøy2020-07-29-3/+80
| |\
| | * Fix misleading documentationGravatar kosayoda2020-07-19-1/+1
| | |
| | * Use literal integers for mentions ID in testGravatar kosayoda2020-07-19-14/+2
| | | | | | | | | | | | | | | Since the mentions field stores static IDs and not foreign keys, there is no need to create the objects for the test.
| | * Merge migrationsGravatar kosayoda2020-07-16-0/+14
| | |
| | * Merge branch 'master' of github.com:python-discord/site into role-remindersGravatar kosayoda2020-07-16-2/+60
| | |\
| | * | Add mentions field to valid data testGravatar kosayoda2020-07-16-1/+14
| | | |
| | * | Document more undocumented stuffGravatar kosayoda2020-07-16-2/+6
| | | |
| | * | Document PATCH for remindersGravatar kosayoda2020-07-16-0/+16
| | | |
| | * | Document POSTing mentions in ReminderViewSetGravatar kosayoda2020-07-16-0/+1
| | | |
| | * | Add migration for the mentions field in the Reminder modelGravatar kosayoda2020-07-16-0/+20
| | | |
| | * | Document mentions in ReminderViewSetGravatar kosayoda2020-07-16-0/+5
| | | |
| | * | Return mentions from ReminderSerializerGravatar kosayoda2020-07-16-1/+3
| | | |
| | * | Add mentions field to Reminder modelGravatar kosayoda2020-07-16-0/+14
| | | |
| * | | Add a test for checking duplicates.Gravatar Leon Sandøy2020-07-29-0/+5
| | | |
| * | | 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