Commit message (Collapse) | Author | Age | Lines | ||
---|---|---|---|---|---|
... | |||||
* | Add "pay" alias for rule tag | 2023-08-11 | -1/+1 | ||
| | |||||
* | Pleasure the style dictator | 2023-07-24 | -2/+2 | ||
| | |||||
* | Add new rule aliases (#1007) | 2023-06-26 | -4/+4 | ||
| | | | | | | | | * Correct indent for GPT rule * Add new aliases for rule 4 and 8 See suggestion in #1001. Closes #1001. | ||||
* | Update code for new linter rules | 2023-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.utc | 2023-05-13 | -59/+59 | ||
| | |||||
* | Specify file encoding so tests pass on windows | 2023-05-13 | -1/+1 | ||
| | | | | This file has non-cp1252 characters, which is the default on windows, so fails to read the file. | ||||
* | Fix psycopg3 compatibility in metricity | 2023-05-12 | -7/+8 | ||
| | |||||
* | Add Django-specific rules for ruff | 2023-05-10 | -36/+36 | ||
| | |||||
* | Switch to ruff for linting | 2023-05-10 | -159/+169 | ||
| | |||||
* | Crosscheck rules between API and static rules | 2023-04-21 | -1/+39 | ||
| | |||||
* | update rule 5 (#943) | 2023-04-16 | -3/+3 | ||
| | |||||
* | Fix contents and descriptions being too long for their field type | 2023-04-06 | -5/+4 | ||
| | |||||
* | Merge pull request #861 from python-discord/new-filter-schema | 2023-04-06 | -274/+1774 | ||
|\ | | | | | New Filtering System | ||||
| * | Make additional_settings non-null with dict default | 2023-04-06 | -4/+5 | ||
| | | | | | | | | This makes sure that the value in the DB is always a valid JSON, ensuring the unique constraint will work properly. | ||||
| * | Add maximum auto-timeout duration validation | 2023-04-05 | -6/+27 | ||
| | | |||||
| * | Rename additional_field to additional_settings | 2023-03-26 | -18/+21 | ||
| | | |||||
| * | Use consistent quoting style | 2023-03-25 | -36/+36 | ||
| | | | | | | | | Co-authored-by: Johannes Christ <[email protected]> | ||||
| * | Specify the common elements in the validation errors | 2023-03-25 | -12/+22 | ||
| | | | | | | | | Co-authored-by: Amrou <[email protected]> | ||||
| * | Merge the extra kwargs creation functions | 2023-03-25 | -18/+5 | ||
| | | | | | | | | Co-authored-by: Amrou <[email protected]> | ||||
| * | Documentation improvements and fixes | 2023-03-25 | -5/+6 | ||
| | | | | | | | | Co-authored-by: Amrou <[email protected]> | ||||
| * | Make the unique constraint reversible | 2023-03-25 | -0/+1 | ||
| | | | | | | | | Co-authored-by: Amrou <[email protected]> | ||||
| * | Merge branch 'main' into new-filter-schema | 2023-03-21 | -27/+82 | ||
| |\ | |||||
| * | | Fix filter serializers for false-y values | 2023-02-11 | -1/+1 | ||
| | | | | | | | | | | | | Co-authored-by: GDWR <[email protected]> | ||||
| * | | Fix documentation and import | 2023-02-11 | -9/+8 | ||
| | | | | | | | | | | | | Co-authored-by: wookie184 <[email protected]> | ||||
| * | | Update viewsets, fix linting | 2023-01-28 | -192/+428 | ||
| | | | |||||
| * | | Make filter unique constraint use NULLS NOT DISTINCT | 2023-01-28 | -26/+34 | ||
| | | | | | | | | | | | | | | | | | | 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. | ||||
| * | | Merge branch 'main' into new-filter-schema | 2023-01-27 | -19/+254 | ||
| |\ \ | |||||
| * | | | Update tests | 2023-01-27 | -143/+170 | ||
| | | | | |||||
| * | | | Fix filter serializers validation to account for filterlist settings | 2023-01-27 | -20/+20 | ||
| | | | | |||||
| * | | | Rename delete_messages to the more generic remove_context | 2022-11-09 | -26/+26 | ||
| | | | | |||||
| * | | | Disable everyone filter in code jam categories | 2022-11-07 | -0/+1 | ||
| | | | | | | | | | | | | | | | | This is in line with what already existed. | ||||
| * | | | Add creation and update timestamps to filtering models | 2022-11-05 | -7/+14 | ||
| | | | | | | | | | | | | | | | | This is to support auto-infractions reporting (bot 7fcec400) | ||||
| * | | | Stop using None as a valid setting value | 2022-11-04 | -57/+82 | ||
| | | | | | | | | | | | | | | | | See e100ae9b on bot | ||||
| * | | | Add antispam list in migrations | 2022-11-01 | -0/+52 | ||
| | | | | |||||
| * | | | Add uniques filter list to migrations | 2022-10-27 | -0/+101 | ||
| | | | | |||||
| * | | | Refactors filters serialier | 2022-10-18 | -81/+89 | ||
| | | | | |||||
| * | | | Allow char fields to be blank | 2022-10-10 | -8/+21 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | | | Allow ping arrays to be empty | 2022-10-08 | -0/+4 | ||
| | | | | |||||
| * | | | Fix categories validation | 2022-10-08 | -1/+4 | ||
| | | | | |||||
| * | | | Add infraction channel setting | 2022-10-08 | -1/+22 | ||
| | | | | |||||
| * | | | Properly add dm_embed to serializers | 2022-10-07 | -0/+1 | ||
| | | | | |||||
| * | | | Merge branch 'main' into new-filter-schema | 2022-10-07 | -47/+648 | ||
| |\ \ \ | |||||
| * | | | | Bring back enabled categories | 2022-10-01 | -7/+18 | ||
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | | | | Fix send_alert not being added correctly in serializers | 2022-09-30 | -0/+1 | ||
| | | | | | |||||
| * | | | | Convert the infraction choices to uppercase | 2022-09-30 | -3/+3 | ||
| | | | | | | | | | | | | | | | | | | | | This is done to match the values used on the bot. | ||||
| * | | | | Use the new models.JSONField | 2022-09-27 | -3/+3 | ||
| | | | | | |||||
| * | | | | Add voice mute to infraction choices | 2022-09-27 | -3/+3 | ||
| | | | | | |||||
| * | | | | Merge branch 'main' into new-filter-schema | 2022-07-15 | -1266/+840 | ||
| |\ \ \ \ | |||||
| * | | | | | Add UniqueConstraint to the Filter model | 2022-03-22 | -1/+63 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | - The UniqueConstraint includes every field, except for id and description. | ||||
| * | | | | | Sync Filter models with relating migrations, adjust code consistency | 2022-03-12 | -20/+39 | ||
| | | | | | |