Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Update embed description length to 4096 | 2021-09-07 | -2/+2 | |
| | ||||
* | Move base_url field to the end | 2021-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 field | 2021-08-30 | -0/+20 | |
| | ||||
* | Recreate nitro message length migration and name it | 2021-06-24 | -2/+2 | |
| | ||||
* | Merge remote-tracking branch 'upstream/main' into fix-nitro-message | 2021-06-24 | -6/+21 | |
|\ | ||||
| * | Use BigInt for permissions field and remove max value validator | 2021-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 ok | 2021-06-24 | -1/+1 | |
| | | ||||
* | | Adjust Message model to support new nitro messages with over 4000 chars | 2021-06-18 | -2/+58 | |
|/ | ||||
* | Update `IntegrityError` pattern for PostgreSQL 13. | 2021-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 filters | 2021-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 inverted | 2021-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 invalid | 2021-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` filters | 2021-05-22 | -0/+14 | |
| | ||||
* | Add a test for ordering infractions returned from the api | 2021-05-22 | -5/+25 | |
| | | | | As this is used in the new bot infraction rescheduler | |||
* | Add tests for new filters on bot/infractions endpoint | 2021-05-21 | -6/+70 | |
| | ||||
* | Add permanent, types, and expires_at filters to bot/infractions endpoint | 2021-05-21 | -0/+42 | |
| | ||||
* | Update rules viewset | 2021-05-15 | -12/+16 | |
| | | | | This is to reflect the recent changes made to the server rules. | |||
* | Merge branch 'main' into limit-infraction-result | 2021-04-24 | -82/+597 | |
|\ | ||||
| * | Merge branch 'main' into doc-validator | 2021-04-19 | -3/+108 | |
| |\ | ||||
| | * | Add case in query for voice chat activity | 2021-03-12 | -0/+1 | |
| | | | ||||
| | * | Split test_no_metricity_user to two tests by endpoints | 2021-03-12 | -4/+12 | |
| | | | ||||
| | * | Document endpoint in viewset docstring | 2021-03-12 | -0/+16 | |
| | | | ||||
| | * | Merge branch 'master' into mbaruh/channel-activity | 2021-03-11 | -76/+435 | |
| | |\ | ||||
| | * | | Ignore deleted messaages in message counts | 2021-03-11 | -1/+1 | |
| | | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]> | |||
| | * | | Get rid of stray print | 2021-03-07 | -1/+0 | |
| | | | | | | | | | | | | | | | | Oops. | |||
| | * | | Test metricity-review-data when user doesn't exist | 2021-03-07 | -2/+5 | |
| | | | | ||||
| | * | | Added test for metricity-review-data | 2021-03-07 | -3/+25 | |
| | | | | ||||
| | * | | Amend top_channel_activity return type | 2021-03-07 | -1/+3 | |
| | | | | ||||
| | * | | Add route to get a member's data for helper review | 2021-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 urls | 2021-03-26 | -2/+2 | |
| | | | | ||||
| * | | | Ensure the base url ends with a slash | 2021-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-validator | 2021-03-15 | -501/+1958 | |
| |\ \ \ | | | |/ | | |/| | ||||
| | * | | Fix grammar of unknown actor error and change tests | 2021-03-06 | -2/+2 | |
| | | | | ||||
| | * | | Fix grammar of nomination viewset command about single entry for user | 2021-03-06 | -1/+1 | |
| | | | | ||||
| | * | | Change as -> to in nomination viewset docs | 2021-03-06 | -1/+1 | |
| | | | | ||||
| | * | | Fix grammar of nomination models | 2021-03-06 | -5/+5 | |
| | | | | ||||
| | * | | Fix grammar of error messages and change tests to match with changes | 2021-03-05 | -8/+8 | |
| | | | | ||||
| | * | | Use double quotes instead apostrophe because string contain "don't" | 2021-03-05 | -1/+1 | |
| | | | | ||||
| | * | | Replace double quotes with single quotes | 2021-03-05 | -1/+1 | |
| | | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]> | |||
| | * | | Fix grammar of nomination endpoints documentation | 2021-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 ↵ | 2021-02-24 | -0/+3 | |
| | | | | | | | | | | | | | | | | serializer | |||
| | * | | Make default value of nomination entry reason to empty string | 2021-02-24 | -2/+2 | |
| | | | | | | | | | | | | | | | | For string fields NULL as default is not suggested, so use empty string instead. | |||
| | * | | Remove GET nomination test for entries | 2021-02-24 | -26/+0 | |
| | | | | | | | | | | | | | | | | Entries isn't handled manually anymore so these tests have no point. | |||
| | * | | Simplify nominations viewset | 2021-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 serializer | 2021-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 migrations | 2021-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 decreasing | 2021-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 NominationEntry | 2021-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 changes | 2021-02-22 | -21/+139 | |
| | | | | ||||
| | * | | Small improvements in nomination viewset | 2021-02-22 | -31/+31 | |
| | | | |