aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api (follow)
Commit message (Collapse)AuthorAgeLines
* Update embed description length to 4096Gravatar mbaruh2021-09-07-2/+2
|
* Move base_url field to the endGravatar Numerlor2021-08-30-2/+2
| | | | | In most cases this won't need to be specified, so it makes more sense to move it out of the way
* Allow empty value for inventory url fieldGravatar Numerlor2021-08-30-0/+20
|
* Recreate nitro message length migration and name itGravatar bast2021-06-24-2/+2
|
* Merge remote-tracking branch 'upstream/main' into fix-nitro-messageGravatar bast2021-06-24-6/+21
|\
| * Use BigInt for permissions field and remove max value validatorGravatar Chris2021-06-18-6/+21
| | | | | | | | | | | | BigInt is needed as Discord's permissions number now exceeds that which can be stored in a normal int. I have removed the max value validator, as this just adds maintanence burden for us each time Discord adds new permissions.
* | Add pragma: no cover to mark failure condition of test as known okGravatar bast2021-06-24-1/+1
| |
* | Adjust Message model to support new nitro messages with over 4000 charsGravatar bast2021-06-18-2/+58
|/
* Update `IntegrityError` pattern for PostgreSQL 13.Gravatar Johannes Christ2021-06-04-1/+4
| | | | | | | A more specific error is raised on higher PostgreSQL versions, for example, as with the PostgreSQL version running on my local machine. This commit fixes the error message pattern matching behaviour by adding an optional match to the detailed error message.
* Ensure bot/infractions does not accept both expires and permanent filtersGravatar bast2021-05-30-0/+47
| | | | Expires and permanent=false are permitted and tested for. Expires_before also filters the database for permanent=false explicitly
* Fix bot/infractions after and before filter check being invertedGravatar bast2021-05-30-4/+17
| | | | | The check was backwards, enforcing that no results must ever be returned Relevant tests have been added that actually fetch an infraction with the right times so that I'm sure it's not still broken
* Raise ValidationError for new bot/infractions filter if the types are invalidGravatar bast2021-05-30-0/+35
| | | | If the before time is after the after time, or if both `type` and `types` are specified
* Add tests for failure states of `expires_before` and `expires_after` filtersGravatar bast2021-05-22-0/+14
|
* Add a test for ordering infractions returned from the apiGravatar bast2021-05-22-5/+25
| | | | As this is used in the new bot infraction rescheduler
* Add tests for new filters on bot/infractions endpointGravatar bast2021-05-21-6/+70
|
* Add permanent, types, and expires_at filters to bot/infractions endpointGravatar bast2021-05-21-0/+42
|
* Update rules viewsetGravatar Chris2021-05-15-12/+16
| | | | This is to reflect the recent changes made to the server rules.
* Merge branch 'main' into limit-infraction-resultGravatar Matteo Bertucci2021-04-24-82/+597
|\
| * Merge branch 'main' into doc-validatorGravatar Mark2021-04-19-3/+108
| |\
| | * Add case in query for voice chat activityGravatar Boris Muratov2021-03-12-0/+1
| | |
| | * Split test_no_metricity_user to two tests by endpointsGravatar Boris Muratov2021-03-12-4/+12
| | |
| | * Document endpoint in viewset docstringGravatar Boris Muratov2021-03-12-0/+16
| | |
| | * Merge branch 'master' into mbaruh/channel-activityGravatar Boris Muratov2021-03-11-76/+435
| | |\
| | * | Ignore deleted messaages in message countsGravatar Boris Muratov2021-03-11-1/+1
| | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
| | * | Get rid of stray printGravatar Boris Muratov2021-03-07-1/+0
| | | | | | | | | | | | | | | | Oops.
| | * | Test metricity-review-data when user doesn't existGravatar Boris Muratov2021-03-07-2/+5
| | | |
| | * | Added test for metricity-review-dataGravatar Boris Muratov2021-03-07-3/+25
| | | |
| | * | Amend top_channel_activity return typeGravatar Boris Muratov2021-03-07-1/+3
| | | |
| | * | Add route to get a member's data for helper reviewGravatar Boris Muratov2021-03-07-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | Added route for getting a user's join date, total messages, and top 3 channels by activity. This information will be used to auto-review nominees.
| * | | Update tests to use trailing slashes on valid urlsGravatar Numerlor2021-03-26-2/+2
| | | |
| * | | Ensure the base url ends with a slashGravatar Numerlor2021-03-26-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | URLs without a trailing slash won't get properly joined by the bot Adds compatibility with python-discord/bot@bc25bfdf42cdaaba924a7ad6de1dc06a9b381285's changes The styling of how the regex decorator is constructed was changed to be consisted with the function validator
| * | | Merge branch 'main' into doc-validatorGravatar Numerlor2021-03-15-501/+1958
| |\ \ \ | | | |/ | | |/|
| | * | Fix grammar of unknown actor error and change testsGravatar ks1292021-03-06-2/+2
| | | |
| | * | Fix grammar of nomination viewset command about single entry for userGravatar ks1292021-03-06-1/+1
| | | |
| | * | Change as -> to in nomination viewset docsGravatar ks1292021-03-06-1/+1
| | | |
| | * | Fix grammar of nomination modelsGravatar ks1292021-03-06-5/+5
| | | |
| | * | Fix grammar of error messages and change tests to match with changesGravatar ks1292021-03-05-8/+8
| | | |
| | * | Use double quotes instead apostrophe because string contain "don't"Gravatar ks1292021-03-05-1/+1
| | | |
| | * | Replace double quotes with single quotesGravatar ks1292021-03-05-1/+1
| | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
| | * | Fix grammar of nomination endpoints documentationGravatar ks1292021-03-05-5/+5
| | | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]> Co-authored-by: Joe Banks <[email protected]>
| | * | Add comment about manually defining nomination field of NominationEntry ↵Gravatar ks1292021-02-24-0/+3
| | | | | | | | | | | | | | | | serializer
| | * | Make default value of nomination entry reason to empty stringGravatar ks1292021-02-24-2/+2
| | | | | | | | | | | | | | | | For string fields NULL as default is not suggested, so use empty string instead.
| | * | Remove GET nomination test for entriesGravatar ks1292021-02-24-26/+0
| | | | | | | | | | | | | | | | Entries isn't handled manually anymore so these tests have no point.
| | * | Simplify nominations viewsetGravatar ks1292021-02-24-48/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | After moving entries to nomination serializer we can get rid from GET request handlers and let DRF handle this. Also PATCH and POST handlers got some simplification by removing manual entries setting.
| | * | Add entries field to Nomination serializerGravatar ks1292021-02-24-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | After setting related_name in NominationEntry model nomination field, we can just provide serializer and DRF automatically fetch all related entries.
| | * | Merge nomination migrationsGravatar ks1292021-02-24-18/+3
| | | | | | | | | | | | | | | | | | | | This doesn't make sense to have 3 small migrations for one PR, so I merged 2 existing migrations and 1 new, ordering and related_name adding migrations to one.
| | * | Set default ordering of NominationEntry to inserted_at decreasingGravatar ks1292021-02-24-0/+4
| | | | | | | | | | | | | | | | | | | | Set it here so we don't have to set it every place where we fetch entries.
| | * | Set related_name option of nomination field of NominationEntryGravatar ks1292021-02-24-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | In order to use entries in serializer without manually setting entries key we have to use related_name option to automatically fetch all related entries.
| | * | Update nomination-related tests to cover recent table-splitting changesGravatar ks1292021-02-22-21/+139
| | | |
| | * | Small improvements in nomination viewsetGravatar ks1292021-02-22-31/+31
| | | |