aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | | | | | 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
| | | | | | | | | |
| * | | | | | | | | Remove one-to-one relationships from filters tablesGravatar ks1292021-12-18-90/+63
| | | | | | | | | |
| * | | | | | | | | Correct Filter-FilterList relationship.Gravatar kosayoda2021-12-18-64/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of a many-many relationship, one filterlist has multiple filters. Nested serialization is read-only by default, so not all CRUD methods are implemented yet for the FilterList viewset.
| * | | | | | | | | Migrate misc field names and help text changes.Gravatar kosayoda2021-12-18-0/+44
| | | | | | | | | |
| * | | | | | | | | Improve name of dm sent to triggered user.Gravatar kosayoda2021-12-18-11/+11
| | | | | | | | | |
| * | | | | | | | | Fix faulty model enumeration.Gravatar kosayoda2021-12-18-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also allows us to simplify the str dunder for a FilterList.
| * | | | | | | | | Improve help text message.Gravatar kosayoda2021-12-18-6/+6
| | | | | | | | | |
| * | | | | | | | | Filters: allowed_category -> allowed_categoriesGravatar Matteo Bertucci2021-12-18-11/+11
| | | | | | | | | |
| * | | | | | | | | Filters: update tests to the new schemaGravatar Matteo Bertucci2021-12-18-124/+300
| | | | | | | | | |
| * | | | | | | | | Filters: hook the new models into the REST APIGravatar Matteo Bertucci2021-12-18-116/+773
| | | | | | | | | |
| * | | | | | | | | Filters: Add migration to the new modelGravatar Matteo Bertucci2021-12-18-0/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will take the currently defined filter list and put them inside the new schema while trying to keep defaults similar to our current setup.
| * | | | | | | | | Filters: Add new models to Django AdminGravatar Matteo Bertucci2021-12-18-0/+12
| | | | | | | | | |
| * | | | | | | | | Filter: new schemaGravatar Matteo Bertucci2021-12-18-44/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds new filter schema as described in #479
* | | | | | | | | | Bump sentry-sdk from 1.19.0 to 1.19.1 (#931)Gravatar dependabot[bot]2023-04-06-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.19.0 to 1.19.1. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.19.0...1.19.1) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | | | | | | Add README for the redirects app (#924)Gravatar Johannes Christ2023-04-06-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is kept more minimal than the other apps, as it's mostly for backwards compatibility.
* | | | | | | | | | Merge pull request #927 from python-discord/dependabot/pip/psycopg2-binary-2.9.6Gravatar Johannes Christ2023-04-06-74/+65
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Bump psycopg2-binary from 2.9.5 to 2.9.6