aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/viewsets (follow)
Commit message (Collapse)AuthorAgeLines
* Fix newly added lint rules from new ruff versionformsGravatar Joe Banks2025-07-18-4/+39
|
* Do not activate infractions on partial updatesGravatar Johannes Christ2025-05-27-1/+6
|
* Do not require "active" to be sent in PATCH infraction (#1518)Gravatar jchristgit2025-05-01-0/+1
| | | Regression from the DRF update.
* Mark unique constraint error checks as no coverGravatar Johannes Christ2025-05-01-2/+14
|
* Add alternate accounts to the user modelGravatar jchristgit2024-05-23-8/+175
| | | | | 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
|
* Soft-delete reminders on DELETE instead of removing entirelyGravatar Chris Lovering2024-05-10-0/+18
|
* Update user viewset docstrings with display_nameGravatar Joe Banks2024-04-01-3/+11
|
* Revert "Bump djangorestframework from 3.14.0 to 3.15.1"Gravatar jchristgit2024-03-31-0/+26
|
* Implement adjustments for DRF 3.15Gravatar Johannes Christ2024-03-29-26/+0
|
* Merge branch 'main' into mailing-list-modelGravatar Xithrius2024-02-03-2/+6
|\
| * Merge pull request #1186 from python-discord/nplusone-infractions-expandedGravatar jchristgit2023-12-15-1/+5
| |\ | | | | | | Prefetch user and actor in expanded infraction view
| | * Prefetch user and actor in expanded infraction viewGravatar Johannes Christ2023-12-15-1/+5
| | | | | | | | | | | | | | | 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
* / Migrate mailing lists to their own API endpointsGravatar Johannes Christ2023-12-17-9/+105
|/ | | | | | 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.
* Unify frozen fields logic into serializer mixin (#1169)Gravatar jchristgit2023-12-11-10/+0
| | | | Additionally, implement frozen fields on the offensive message serializer.
* Implement editing of offensive message records (#1165)Gravatar jchristgit2023-12-11-1/+12
| | | | | | | 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.
* Update code for new linter rulesGravatar Johannes Christ2023-06-21-2/+2
| | | | | | 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.
* Use the new datetime.UTC alias over datetime.timezone.utcGravatar Chris Lovering2023-05-13-2/+2
|
* Switch to ruff for lintingGravatar Johannes Christ2023-05-10-9/+7
|
* Rename additional_field to additional_settingsGravatar mbaruh2023-03-26-7/+7
|
* Merge branch 'main' into new-filter-schemaGravatar mbaruh2023-03-21-3/+5
|\
| * Remove typoGravatar vivekashok12212023-02-17-1/+1
| |
| * Add jump_url field to infraction modelGravatar vivekashok12212023-02-17-3/+5
| |
* | Fix documentation and importGravatar mbaruh2023-02-11-2/+2
| | | | | | | | Co-authored-by: wookie184 <[email protected]>
* | Update viewsets, fix lintingGravatar mbaruh2023-01-28-168/+364
| |
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2023-01-27-8/+70
|\|
| * Merge branch 'main' into 2304-link-previous-nomination-threadsGravatar Amrou Bellalouna2022-12-29-1/+56
| |\
| | * Include users with no messages in response, and simplify response formatGravatar wookie1842022-11-17-11/+8
| | |
| | * Change the endpoint to be a POST not a GETGravatar wookie1842022-11-02-3/+3
| | |
| | * Add API endpoint for activity dataGravatar wookie1842022-10-27-1/+59
| | | | | | | | | | | | I really had to work against DRF to get this working. Using the validator manually here isn't ideal but I couldn't see an obvious better way without adding a bunch of boilerplate code. It seems to work.
| * | remove useless coverage related commentedGravatar Amrou Bellalouna2022-11-07-1/+0
| | |
| * | refactor nomination validation flowGravatar Amrou Bellalouna2022-11-07-12/+8
| | |
| * | add validation criteria for thread_id modificationGravatar Amrou Bellalouna2022-11-07-0/+12
| |/
* | Rename delete_messages to the more generic remove_contextGravatar mbaruh2022-11-09-6/+6
| |
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-10-07-16/+13
|\|
| * Bump To Django 4.1.1 & Update DependenciesGravatar Hassan Abouelela2022-09-30-10/+7
| | | | | | | | | | | | Update outdated and broken dependencies. Signed-off-by: Hassan Abouelela <[email protected]>
| * Fix Unittest Deprecation WarningsGravatar Hassan Abouelela2022-09-04-6/+6
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-07-15-16/+266
|\|
| * Adjust filtering settings for the AoC link viewsetGravatar D0rs4n2022-04-18-1/+1
| |
| * Don't return the BumpedThread object when retrieving singleGravatar Chris Lovering2022-03-16-9/+15
| | | | | | | | We only need to check for existence, so sending the full object isn't needed.
| * Only return list of ints when retrieving all BumpedThreadsGravatar Chris Lovering2022-03-16-6/+1
| |
| * Add support for BumpedThreads to be stored in siteGravatar Chris Lovering2022-03-16-0/+67
| | | | | | | | | | | | 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-1/+1
| |
| * Add new filter field, and patch the docs in AoC viewsetsGravatar D0rs4n2022-03-10-13/+12
| | | | | | | | | | - Add the possibility to filter by `is_blocked` in the AoC completionist block viewset. - Patch various tense, and formatting inconsistencies in AoC viewsets
| * Enhance code, documentation consistency in AoC related codeGravatar D0rs4n2022-03-10-3/+5
| | | | | | Co-authored-by: Mark <[email protected]>
| * Patch AoC tables to use the Discord user as PK.Gravatar D0rs4n2022-03-09-3/+5
| |
| * Add reason field to AoC completionist block tableGravatar D0rs4n2022-03-09-2/+5
| |
| * Enhance comments and table structure in AoC related modulesGravatar D0rs4n2022-03-08-4/+4
| | | | | | | | - Set the user reference to be a OneToOne relation, on tables: AocCompletionistBlock and AocAccountLink.
| * Add support for storing AoC related data in siteGravatar D0rs4n2022-03-07-0/+142
| |