aboutsummaryrefslogtreecommitdiffstats
path: root/postgres/init.sql (unfollow)
Commit message (Collapse)AuthorLines
2022-02-26Add invites denylist to the migrationGravatar mbaruh-3/+3
2022-02-24Create placeholder value for dm embed content in ext listGravatar mbaruh-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.
2022-02-23Extensions list is ALLOW, not DENYGravatar mbaruh-1/+1
2022-02-22Changed channeld fields to char arrays, merged migrationsGravatar mbaruh-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.
2022-02-15Patch a minor issue with FilterList field naming in migrationsGravatar D0rs4n-12/+13
2022-02-15Use singular nouns for filter list namesGravatar mbaruh-4/+4
2022-02-15Allow filter descriptions to be nullGravatar mbaruh-2/+2
2022-01-01Merge migrations and correct filter defaults to be all nullGravatar mbaruh-2/+3
2021-12-31Fix faulty regex filters in migration 59Gravatar Boris Muratov-29/+29
Migration 59 populated the filters table with regex filters, some of which were faulty because the `\b` character wasn't escaped. This is fixed in this PR by making all patterns raw strings.
2021-12-25Merged infraction and notification settings in JSONGravatar mbaruh-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.
2021-12-24Correct 'Redirect' FilterLists' default values.Gravatar D0rs4n-1/+1
2021-12-24Include 'dm_content ' field under Infraction settings in Filters/FilterListsGravatar D0rs4n-1/+1
2021-12-22Patch Filter/FilterList's default values and add new fieldsGravatar D0rs4n-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.
2021-12-18Prepare FilterList and Filter models, serializers for the new filter schemaGravatar D0rs4n-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.
2021-12-18Patch Filter and FilterList Serializer validation logic and representationGravatar D0rs4n-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.
2021-12-18Adjust FilterList Schema to group settings into subcategoriesGravatar D0rs4n-48/+54
- This commit patches the FilterList serializer's schema, and puts the settings into the relevant subcategories.
2021-12-18Adjust FilterList RepresentationGravatar D0rs4n-6/+60
From now on the FilterList Serializer will contain a settings field with all the settings that were listed previously, on the model.
2021-12-18Adjust Filter JSON SchemaGravatar D0rs4n-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.
2021-12-18Fix lintingGravatar ks129-7/+19