| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
| |
Regression from the DRF update.
|
|
|
|
|
| |
New error messages are returned, and there appears to be an upstream bug
which presently requires us to specify all attributes in the update.
|
|
|
|
|
| |
When a user does not have a discriminator, do not display it anymore.
Behaviour for users with discriminators (for historic infractions is
unchanged).
|
| |
|
|
|
|
|
| |
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..
|
| |
|
|\ |
|
| |
| |
| |
| | |
Prevent spurious test failures on Solaris systems.
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
This file has non-cp1252 characters, which is the default on windows, so fails to read the file.
|
| |
|
| |
|
|
|
|
| |
This makes sure that the value in the DB is always a valid JSON, ensuring the unique constraint will work properly.
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
|\| |
|
| |\ |
|
| | |\ |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | |/
| |/| |
|
| |\|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
# poetry.lock
# pydis_site/settings.py
# pyproject.toml
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | |_|/
| |/| | |
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | |/
| |/|
| | |
| | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The infraction tests checked that the route returned infractions in the
correct order, which is based on insertion time. This can be fragile
however, since the insertion time can be very close (or identical)
during the tests. That became especially more likely with PR #741
(commit 149e67b4) which improved database access speed.
This is fixed by explicitly specifying the insertion time, and spacing
them out properly.
Signed-off-by: Hassan Abouelela <[email protected]>
|