| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
| |
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.
|
| |
|
|\ |
|
| |\
| | |
| | | |
Prefetch user and actor in expanded infraction view
|
| | |
| | |
| | |
| | |
| | | |
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
|
| |/
| |
| |
| | |
See https://python-discord.sentry.io/issues/4721508176/?project=2714379&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=90d&stream_index=1
|
| |
| |
| |
| | |
Sentry is sending an N+1 query alert because of the way we were inserting messages (one by one)
|
|/
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
Additionally, implement frozen fields on the offensive message
serializer.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
ref: https://discord.com/channels/267624335836053506/429409067623251969/1182407804787626047
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* Correct indent for GPT rule
* Add new aliases for rule 4 and 8
See suggestion in #1001.
Closes #1001.
|
|
|
|
|
|
| |
Ignore RUF012, which suggests to add typing.ClassVar to "mutable" class
variables (in our case, it complained about the ordering attribute of
the `Meta` class within models) - annotating this would be a bit noisy.
|
| |
|
|
|
|
| |
This file has non-cp1252 characters, which is the default on windows, so fails to read the file.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
New Filtering System
|
| |
| |
| |
| | |
This makes sure that the value in the DB is always a valid JSON, ensuring the unique constraint will work properly.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Co-authored-by: Johannes Christ <[email protected]>
|
| |
| |
| |
| | |
Co-authored-by: Amrou <[email protected]>
|
| |
| |
| |
| | |
Co-authored-by: Amrou <[email protected]>
|
| |
| |
| |
| | |
Co-authored-by: Amrou <[email protected]>
|
| |
| |
| |
| | |
Co-authored-by: Amrou <[email protected]>
|
| |\ |
|
| | |
| | |
| | |
| | | |
Co-authored-by: GDWR <[email protected]>
|
| | |
| | |
| | |
| | | |
Co-authored-by: wookie184 <[email protected]>
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
The existing constraint was ineffective as null values were considered distinct, and so two filters with the same content and no overrides were considered different.
This change uses a new PSQL 15 feature unsupported in django currently, and so it is added with raw SQL.
|
| |\ \ |
|
| | | | |
|