aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api (follow)
Commit message (Collapse)AuthorAgeLines
* Add `job`, `jobs` as additional keywords for invoking rule 9Gravatar Matiiss2025-07-22-1/+1
|
* Fix newly added lint rules from new ruff versionformsGravatar Joe Banks2025-07-18-12/+93
|
* Do not activate infractions on partial updatesGravatar Johannes Christ2025-05-27-1/+49
|
* Do not require "active" to be sent in PATCH infraction (#1518)Gravatar jchristgit2025-05-01-1/+2
| | | Regression from the DRF update.
* Mark unique constraint error checks as no coverGravatar Johannes Christ2025-05-01-2/+14
|
* Update tests for DRF 3.16.0Gravatar Johannes Christ2025-05-01-9/+22
| | | | | New error messages are returned, and there appears to be an upstream bug which presently requires us to specify all attributes in the update.
* Give different basenames to duplicate FilterListViewSetGravatar Johannes Christ2025-05-01-2/+4
|
* Remove discriminator from bot logs view (#1424)Gravatar jchristgit2024-11-23-1/+9
| | | | | When a user does not have a discriminator, do not display it anymore. Behaviour for users with discriminators (for historic infractions is unchanged).
* Rename `check` to `condition`Gravatar Johannes Christ2024-08-30-2/+2
|
* Remove unnecessary S310 noqaGravatar wookie1842024-08-02-1/+1
|
* Pleasure the style dictatorGravatar Johannes Christ2024-07-10-1/+1
|
* Allow some bots through the GitHub Webhook FilterGravatar Joe Banks2024-06-16-1/+13
| | | | | | | | | | | This allows the Fast Forward bot and GitHub Actions scripts through the webhook filter. * Fast Forward bot should be allowed as otherwise any event created by this bot (i.e. it's merges to main) are not reported into Discord as it is considered a bot payload * GitHub Actions are generally things we have created ourselves and are not normally high noise, and as such are also worth reporting
* Add alternate accounts to the user modelGravatar jchristgit2024-05-23-14/+784
| | | | | Introduce a way to store alternate accounts on the user, and add the `PATCH /bot/users/<id:str>/alts` endpoint, which allows updating the user's alt accounts to the alt accounts in the request..
* Add reviewed to nomination filterset fieldsGravatar Joe Banks2024-05-21-1/+2
|
* Update reminder tests for new soft-deleted behaviourGravatar Chris Lovering2024-05-10-3/+10
|
* Soft-delete reminders on DELETE instead of removing entirelyGravatar Chris Lovering2024-05-10-0/+18
|
* Merge branch 'main' into set-elidable-on-run-python-operations-in-migrationsGravatar wookie1842024-04-02-15/+132
|\
| * Merge branch 'main' into add-test-case-drf-3.15-regressionGravatar wookie1842024-04-02-14/+86
| |\
| | * Return BytesIO as fp for mocked HTTP errorsGravatar Johannes Christ2024-04-01-0/+3
| | | | | | | | | | | | Prevent spurious test failures on Solaris systems.
| | * Prefetch the filter_list field in the FilterListSerializerGravatar Joe Banks2024-04-01-1/+1
| | |
| | * Make pure-SQL line in api_user.display_name migration elidableGravatar Joe Banks2024-04-01-1/+1
| | | | | | | | | Co-authored-by: jchristgit <[email protected]>
| | * Update user tests with display_name fieldGravatar Joe Banks2024-04-01-4/+9
| | |
| | * Update user viewset docstrings with display_nameGravatar Joe Banks2024-04-01-3/+11
| | |
| | * Add display_name to serializerGravatar Joe Banks2024-04-01-1/+1
| | |
| | * Add display name to API user modelGravatar Joe Banks2024-04-01-0/+23
| | |
| | * Log failed webhook attempts to stderr in GitHub Webhook FilterGravatar Joe Banks2024-04-01-1/+27
| | |
| | * No need to remove headers in GitHub Filter EndpointGravatar Joe Banks2024-04-01-2/+0
| | |
| | * Update GitHub Filter endpoint tests for new responseGravatar Joe Banks2024-04-01-2/+4
| | |
| | * Don't propagate the status received from Discord to GitHub WebhookGravatar Joe Banks2024-04-01-1/+8
| | |
| * | Add test case for DRF 3.15 regressionGravatar Johannes Christ2024-03-31-1/+46
| |/
* / Set elidable on RunPython operations in migrationsGravatar Johannes Christ2024-03-31-10/+11
|/ | | | | | Any RunPython operation that only migrated existing data (that is, did not create data) can be safely elided by Django when we run `squashmigrations`.
* Revert "Bump djangorestframework from 3.14.0 to 3.15.1"Gravatar jchristgit2024-03-31-13/+33
|
* Merge branch 'main' into support-test-keepdbGravatar Xithrius2024-03-30-33/+13
|\
| * Implement adjustments for DRF 3.15Gravatar Johannes Christ2024-03-29-33/+13
| |
* | Support running tests with --keepdb optionGravatar Johannes Christ2024-03-29-4/+11
|/ | | | | | Allow faster local tests by skipping the database re-setup. Only two cases were dependent on hardcoded IDs and already existing data, they have been adjusted appropriately.
* Ensure messages returned for metricity data do not match all excluded channelsGravatar Chris Lovering2024-02-20-3/+3
|
* Merge branch 'main' into mailing-list-modelGravatar Xithrius2024-02-03-15/+11
|\
| * Merge pull request #1186 from python-discord/nplusone-infractions-expandedGravatar jchristgit2023-12-15-8/+7
| |\ | | | | | | Prefetch user and actor in expanded infraction view
| | * Prefetch user and actor in expanded infraction viewGravatar Johannes Christ2023-12-15-8/+7
| | | | | | | | | | | | | | | Prevent N+1 reported by Sentry: https://python-discord.sentry.io/issues/4721126467/?project=2714379&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=90d&stream_index=3
| * | Preload nomination entries in nomination viewsetGravatar Johannes Christ2023-12-15-1/+1
| |/ | | | | | | See https://python-discord.sentry.io/issues/4721508176/?project=2714379&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=90d&stream_index=1
| * insert deleted messages as a BatchGravatar shtlrs2023-12-15-6/+3
| | | | | | | | Sentry is sending an N+1 query alert because of the way we were inserting messages (one by one)
* | Migrate mailing lists to their own API endpointsGravatar Johannes Christ2023-12-17-9/+362
|/ | | | | | Add a new model for the bot to store its mailing list state in, as opposed to the current JSON blob in the BotSetting table. Migrate the existing settings from the BotSetting table into the new model.
* Simplify is_bot_pr_approval logicGravatar Chris Lovering2023-12-12-4/+1
|
* Convert to lower case before checking equalityGravatar Chris Lovering2023-12-12-8/+8
|
* Log a warning when being ratelimtted by GithubGravatar Chris Lovering2023-12-11-0/+25
|
* Unify frozen fields logic into serializer mixin (#1169)Gravatar jchristgit2023-12-11-14/+40
| | | | Additionally, implement frozen fields on the offensive message serializer.
* Implement editing of offensive message records (#1165)Gravatar jchristgit2023-12-11-22/+59
| | | | | | | Allow changing the deletion date of offensive message records in case the bot encounters an error during deletion attempts. Fixes #364. Unblocks python-discord/bot#1013.
* Implement the github-filter worker in the APIGravatar Johannes Christ2023-12-11-1/+161
| | | | | | | | | | | | The current github-filter worker, found at https://github.com/python-discord/workers/blob/main/github-filter/src/index.ts, fails to work at present because Discord's webhook endpoints block Cloudflare's IP ranges from accessing this endpoint. Whilst they use Cloudflare to guard themselves, it seems they do not wish others to use it. Implement it on the site to circumvent IP restrictions and allow to modify the code in Python.
* Add alias "hire" for rule 9Gravatar ~hedy2023-12-08-1/+1
| | | ref: https://discord.com/channels/267624335836053506/429409067623251969/1182407804787626047
* Remove the redirect FilterList on migrationGravatar Chris Lovering2023-09-19-0/+16
| | | | | | | | This redirect filter list does not have any filters, nor does it have a bot implementation. It is something that we were working on, but has been stalled for a while. The presence of this filter list also causes the bot to warn on startup due to it finding a filter list with no implementation. This commit removes the FilterList, which can be added back if/when we support this filter type in bot.