aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models (follow)
Commit message (Collapse)AuthorAgeLines
* Fix newly added lint rules from new ruff versionformsGravatar Joe Banks2025-07-18-8/+54
|
* Remove discriminator from bot logs view (#1424)Gravatar jchristgit2024-11-23-1/+3
| | | | | 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-1/+1
|
* Add alternate accounts to the user modelGravatar jchristgit2024-05-23-3/+53
| | | | | 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 display name to API user modelGravatar Joe Banks2024-04-01-0/+5
|
* Ensure messages returned for metricity data do not match all excluded channelsGravatar Chris Lovering2024-02-20-3/+3
|
* Migrate mailing lists to their own API endpointsGravatar Johannes Christ2023-12-17-0/+46
| | | | | | 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.
* Use the new datetime.UTC alias over datetime.timezone.utcGravatar Chris Lovering2023-05-13-2/+2
|
* Fix psycopg3 compatibility in metricityGravatar Johannes Christ2023-05-12-7/+8
|
* Add Django-specific rules for ruffGravatar Johannes Christ2023-05-10-36/+36
|
* Switch to ruff for lintingGravatar Johannes Christ2023-05-10-14/+12
|
* Fix contents and descriptions being too long for their field typeGravatar Boris Muratov2023-04-06-3/+2
|
* Make additional_settings non-null with dict defaultGravatar Boris Muratov2023-04-06-1/+1
| | | | This makes sure that the value in the DB is always a valid JSON, ensuring the unique constraint will work properly.
* Rename additional_field to additional_settingsGravatar mbaruh2023-03-26-1/+3
|
* Use consistent quoting styleGravatar mbaruh2023-03-25-2/+2
| | | | Co-authored-by: Johannes Christ <[email protected]>
* Documentation improvements and fixesGravatar mbaruh2023-03-25-2/+3
| | | | Co-authored-by: Amrou <[email protected]>
* Merge branch 'main' into new-filter-schemaGravatar mbaruh2023-03-21-1/+10
|\
| * Merge branch 'main' into mbaruh/timeoutGravatar Boris Muratov2023-03-20-0/+9
| |\
| | * Replace CharField with URLField and set default to NoneGravatar vivekashok12212023-03-10-2/+3
| | |
| | * Add jump_url field to infraction modelGravatar vivekashok12212023-02-17-0/+8
| | |
| * | Migrate infraction type `mute` to `timeout`Gravatar mbaruh2023-03-04-1/+1
| |/
* | Fix documentation and importGravatar mbaruh2023-02-11-3/+2
| | | | | | | | Co-authored-by: wookie184 <[email protected]>
* | Update viewsets, fix lintingGravatar mbaruh2023-01-28-3/+9
| |
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2023-01-27-0/+32
|\|
| * Merge branch 'main' into 2304-link-previous-nomination-threadsGravatar Amrou Bellalouna2022-12-29-0/+28
| |\
| | * Change the endpoint to be a POST not a GETGravatar wookie1842022-11-02-1/+1
| | |
| | * Add metricity query for messages in past n daysGravatar wookie1842022-10-27-0/+28
| | | | | | | | | | | | Takes multiple users for efficiency as we may want to calculate this for many users at once.
| * | remove useless blank constraintGravatar Amrou Bellalouna2022-11-12-1/+0
| | | | | | | | | | | | This updates the migration as well
| * | push forgotten model updateGravatar Amrou Bellalouna2022-11-07-1/+1
| | |
| * | add thread_id column to the nomination tableGravatar Amrou Bellalouna2022-11-06-0/+5
| |/
* | Update testsGravatar mbaruh2023-01-27-1/+0
| |
* | Rename delete_messages to the more generic remove_contextGravatar mbaruh2022-11-09-4/+4
| |
* | Add creation and update timestamps to filtering modelsGravatar mbaruh2022-11-05-3/+4
| | | | | | | | This is to support auto-infractions reporting (bot 7fcec400)
* | Stop using None as a valid setting valueGravatar mbaruh2022-11-04-25/+59
| | | | | | | | See e100ae9b on bot
* | Allow char fields to be blankGravatar mbaruh2022-10-10-1/+4
| | | | | | | | | | | | This is necessary allow filters to define a blank message when the default is not blank. Additionally allows bypass_roles to be empty like the other array fields
* | Add infraction channel settingGravatar mbaruh2022-10-08-0/+11
| |
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-10-07-6/+11
|\|
| * Bump To Django 4.1.1 & Update DependenciesGravatar Hassan Abouelela2022-09-30-6/+5
| | | | | | | | | | | | Update outdated and broken dependencies. Signed-off-by: Hassan Abouelela <[email protected]>
| * Add a field to track the time an infraction was last appliedGravatar Chris Lovering2022-07-27-0/+6
| | | | | | | | A default is set for backwards compatibility with bot version that don't explicitly give a value.
* | Bring back enabled categoriesGravatar mbaruh2022-10-01-5/+9
| | | | | | | | There needs to be a way to only enable a filter in a specific category, so this setting now fulfills that role. Disabled channels can be used to disable a filter in a specific channel within the category.
* | Convert the infraction choices to uppercaseGravatar mbaruh2022-09-30-1/+1
| | | | | | | | This is done to match the values used on the bot.
* | Use the new models.JSONFieldGravatar mbaruh2022-09-27-2/+2
| |
* | Add voice mute to infraction choicesGravatar mbaruh2022-09-27-1/+1
| |
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-07-15-179/+81
|\|
| * Remove embed validators for deleted messagesGravatar Chris Lovering2022-06-30-176/+1
| | | | | | | | These caused more harm than they were worth, as every time Discord updated a behaviour of an embed we would get errors and need ot update the validation. Instead we should just accept whatever discord gives us as correct
| * Add support for BIG SOLIDUS unicode characters for off topic namesGravatar mina2022-04-21-1/+1
| | | | | | | | We must add support for all B I G S O L I D U S. This is necessary.
| * Add support for BumpedThreads to be stored in siteGravatar Chris Lovering2022-03-16-0/+24
| | | | | | | | | | | | Following our move to use Redis as just a cache, this PR allows the site to store a list of threads that need to be bumped. The bot will interact with this within the ThreadBumper cog.
| * Move FilterList imports down so they're sortedGravatar Chris Lovering2022-03-16-2/+2
| |
| * Patch AoC tables to use the Discord user as PK.Gravatar D0rs4n2022-03-09-2/+4
| |
| * Add reason field to AoC completionist block tableGravatar D0rs4n2022-03-09-0/+4
| |