aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
...
| | | * | | | Add antispam list in migrationsGravatar mbaruh2022-11-01-0/+52
| | | | | | |
| | | * | | | Add uniques filter list to migrationsGravatar mbaruh2022-10-27-0/+101
| | | | | | |
| | | * | | | Refactors filters serialierGravatar mbaruh2022-10-18-81/+89
| | | | | | |
| | | * | | | Allow char fields to be blankGravatar mbaruh2022-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 emptyGravatar mbaruh2022-10-08-0/+4
| | | | | | |
| | | * | | | Fix categories validationGravatar mbaruh2022-10-08-1/+4
| | | | | | |
| | | * | | | Add infraction channel settingGravatar mbaruh2022-10-08-1/+22
| | | | | | |
| | | * | | | Properly add dm_embed to serializersGravatar mbaruh2022-10-07-0/+1
| | | | | | |
| | | * | | | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-10-07-127/+754
| | | |\ \ \ \
| | | * | | | | Bring back enabled categoriesGravatar mbaruh2022-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 serializersGravatar mbaruh2022-09-30-0/+1
| | | | | | | |
| | | * | | | | Convert the infraction choices to uppercaseGravatar mbaruh2022-09-30-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done to match the values used on the bot.
| | | * | | | | Use the new models.JSONFieldGravatar mbaruh2022-09-27-3/+3
| | | | | | | |
| | | * | | | | Add voice mute to infraction choicesGravatar mbaruh2022-09-27-3/+3
| | | | | | | |
| | | * | | | | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-07-15-2531/+5078
| | | |\ \ \ \ \
| | | * | | | | | Add UniqueConstraint to the Filter modelGravatar D0rs4n2022-03-22-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The UniqueConstraint includes every field, except for id and description.
| | | * | | | | | Sync Filter models with relating migrations, adjust code consistencyGravatar D0rs4n2022-03-12-20/+39
| | | | | | | | |
| | | * | | | | | Remove role validationGravatar mbaruh2022-03-10-49/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Roles can be either IDs or names, so the current validation is not relevant anymore. Furthermore the ping fields can accept user IDs or names.
| | | * | | | | | Change ping fields namesGravatar mbaruh2022-03-09-15/+15
| | | | | | | | |
| | | * | | | | | Refine DM content for domainsGravatar mbaruh2022-03-01-1/+1
| | | | | | | | |
| | | * | | | | | Add invites denylist to the migrationGravatar mbaruh2022-02-26-3/+3
| | | | | | | | |
| | | * | | | | | Create placeholder value for dm embed content in ext listGravatar mbaruh2022-02-24-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some value is needed to signal the bot a message should be sent for a blocked extension. The value itself will be changed at runtime, but this allows avoiding the bot code delving into the exact API response format.
| | | * | | | | | Extensions list is ALLOW, not DENYGravatar mbaruh2022-02-23-1/+1
| | | | | | | | |
| | | * | | | | | Changed channeld fields to char arrays, merged migrationsGravatar mbaruh2022-02-22-206/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The fields concerning channels were changed to contains strings instead of integers in order to allow specifying channels and categories by name. The migrations were merged into a single migration.
| | | * | | | | | Patch a minor issue with FilterList field naming in migrationsGravatar D0rs4n2022-02-15-12/+13
| | | | | | | | |
| | | * | | | | | Use singular nouns for filter list namesGravatar mbaruh2022-02-15-4/+4
| | | | | | | | |
| | | * | | | | | Allow filter descriptions to be nullGravatar mbaruh2022-02-15-2/+2
| | | | | | | | |
| | | * | | | | | Merge migrations and correct filter defaults to be all nullGravatar mbaruh2022-01-01-2/+3
| | | | | | | | |
| | | * | | | | | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-01-01-91/+180
| | | |\ \ \ \ \ \
| | | * | | | | | | Merged infraction and notification settings in JSONGravatar mbaruh2021-12-25-73/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The settings for infracting and notifying the user were merged under one field, which is renamed to "infraction_and_notification". The only place which sends a message in the server by default is the antimalware, the rest try to DM the user first, and antimalware can do the same. This avoids complications which may result from the filtering cog trying to send two messages: one for the defined server message, and another for a failed DM.
| | | * | | | | | | Correct 'Redirect' FilterLists' default values.Gravatar D0rs4n2021-12-24-1/+1
| | | | | | | | | |
| | | * | | | | | | Include 'dm_content ' field under Infraction settings in Filters/FilterListsGravatar D0rs4n2021-12-24-1/+1
| | | | | | | | | |
| | | * | | | | | | Patch Filter/FilterList's default values and add new fieldsGravatar D0rs4n2021-12-22-61/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Patch default values, so that further implementations can be performed on the bot side - Add three new fields: "send_alert", and in settings under the "server_message" field: "send_message_text", and "server_message_embed" fields. - Patch documentation, and validators accordingly. - Perform further patches, and minor corrections.
| | | * | | | | | | Prepare FilterList and Filter models, serializers for the new filter schemaGravatar D0rs4n2021-12-18-96/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename channel scope fields: - "allowed" -> "disabled" eg.: "allowed_channels" -> "disabled_channels" - Rename FilterLists` names: filter_token -> tokens domain_name -> domains guild_invite -> invites file_format -> formats - Patch the docs and validators accordingly.
| | | * | | | | | | Patch Filter and FilterList Serializer validation logic and representationGravatar D0rs4n2021-12-18-24/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This commit patches an error with the FilterListSerializer validation logic, so that it won't raise an error when an optional field is not present. - It also adds the `enabled` and `delete_messages` fields, to the FilterSerializer's representation - Furthermore the commit introduces minor bug patches, regarding DRF Serializer Fields.
| | | * | | | | | | Adjust FilterList Schema to group settings into subcategoriesGravatar D0rs4n2021-12-18-48/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This commit patches the FilterList serializer's schema, and puts the settings into the relevant subcategories.
| | | * | | | | | | Adjust FilterList RepresentationGravatar D0rs4n2021-12-18-6/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From now on the FilterList Serializer will contain a settings field with all the settings that were listed previously, on the model.
| | | * | | | | | | Adjust Filter JSON SchemaGravatar D0rs4n2021-12-18-30/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From now on the Serializer will have a different JSON representation than the table schema itself, conforming to the format needed on the bot-side.
| | | * | | | | | | Fix lintingGravatar ks1292021-12-18-7/+19
| | | | | | | | | |
| | | * | | | | | | Add merge migrationGravatar ks1292021-12-18-0/+14
| | | | | | | | | |
| | | * | | | | | | Move filters validations to serializersGravatar ks1292021-12-18-34/+33
| | | | | | | | | |
| | | * | | | | | | Add validation to filters to not allow duplicates + additional_field -> JSONGravatar ks1292021-12-18-7/+8
| | | | | | | | | |
| | | * | | | | | | Add validation to filters to not allow duplicated channels and categoriesGravatar ks1292021-12-18-0/+29
| | | | | | | | | |
| | | * | | | | | | Add basic validation for infraction fields + use common infraction typesGravatar ks1292021-12-18-11/+8
| | | | | | | | | |
| | | * | | | | | | Update filters API to actually workGravatar ks1292021-12-18-85/+123
| | | | | | | | | |
| | | * | | | | | | Remove old models from migrationGravatar ks1292021-12-18-2/+0
| | | | | | | | | |
| | | * | | | | | | Remove default field from FilterSettingsMixin and migrationGravatar ks1292021-12-18-8/+2
| | | | | | | | | |
| | | * | | | | | | Update filters migrationsGravatar ks1292021-12-18-120/+53
| | | | | | | | | |
| | | * | | | | | | Add AbstractModelMeta mixinGravatar ks1292021-12-18-0/+5
| | | | | | | | | |
| | | * | | | | | | Remove old one-to-one filters relationships serializers, views and URLsGravatar ks1292021-12-18-555/+15
| | | | | | | | | |