| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Merge migrations and correct filter defaults to be all null | 2022-01-01 | -2/+3 | |
| | | ||||
| * | Merge branch 'main' into new-filter-schema | 2022-01-01 | -91/+180 | |
| |\ | ||||
| | * | Merge pull request #637 from python-discord/mbaruh-patch-1 | 2021-12-30 | -29/+29 | |
| | |\ | | | | | | | Fix faulty regex filters in migration 59 | |||
| | | * | Fix faulty regex filters in migration 59 | 2021-12-31 | -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. | |||
| | * | Merge pull request #508 from RohanJnr/otn_softdel | 2021-12-28 | -37/+149 | |
| | |\ | | | | | | | offtopicnames active attribute and support for PUT and PATCH request | |||
| | | * | Merge branch 'main' into otn_softdel | 2021-12-28 | -110/+126 | |
| | | |\ | | |/ | |/| | ||||
| | * | | Merge pull request #636 from python-discord/revert-metricity-change | 2021-12-20 | -25/+2 | |
| | |\ \ | ||||
| | | * | | Always include metricity message blocks | 2021-12-16 | -25/+2 | |
| | |/ / | | | | | | | | | | Thanks to a recent database maintenance (https://pythondiscord.freshstatus.io/incident/139811) querying out metricity message data is far cheaper. So there is no longer a reason to only fetch blocks if the member has a low message count. | |||
| | | * | Merge migrations to avoid conflicts. | 2021-12-13 | -0/+14 | |
| | | | | ||||
| | | * | Merge branch 'main' into otn_softdel | 2021-12-13 | -82/+365 | |
| | | |\ | ||||
| | | * | | Remove get_queryset() and add new class variable . | 2021-11-06 | -7/+7 | |
| | | | | | ||||
| | | * | | Use framework defination of method. | 2021-11-05 | -2/+2 | |
| | | | | | ||||
| | | * | | Eliminate usage of typing module and update docstrings. | 2021-11-05 | -6/+4 | |
| | | | | | ||||
| | | * | | Update test cases to adhere to recent changes made that removed hosts. | 2021-11-05 | -2/+2 | |
| | | | | | ||||
| | | * | | Fix: Conflicting migrations. | 2021-11-05 | -0/+14 | |
| | | | | | ||||
| | | * | | Pull from upstream/main and resolve conflicts. | 2021-11-05 | -828/+1921 | |
| | | |\ \ | ||||
| | | * \ \ | Merge branch 'main' into otn_softdel | 2021-08-20 | -35/+522 | |
| | | |\ \ \ | ||||
| | | * | | | | fix CommandError: Conflicting migrations detected. | 2021-07-24 | -0/+14 | |
| | | | | | | | ||||
| | | * | | | | Merge branch 'main' into otn_softdel | 2021-07-24 | -202/+829 | |
| | | |\ \ \ \ | ||||
| | | * | | | | | Update docstring. | 2021-07-22 | -1/+1 | |
| | | | | | | | | ||||
| | | * | | | | | Use sets to compare 2 un-ordered lists. | 2021-06-10 | -9/+10 | |
| | | | | | | | | ||||
| | | * | | | | | Merge branch 'main' into otn_softdel | 2021-06-10 | -83/+363 | |
| | | |\ \ \ \ \ | ||||
| | | * | | | | | | Use assertListEqual where applicable instead of assertEqual. | 2021-06-10 | -8/+10 | |
| | | | | | | | | | ||||
| | | * | | | | | | fix conflicts?. | 2021-06-10 | -0/+0 | |
| | | |\ \ \ \ \ \ | ||||
| | | | * | | | | | | Return a list of ot-names only for GET request only to ↵ | 2021-05-31 | -2/+17 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bot/off-topic-channel-names | |||
| | | * | | | | | | | Add tests for active params. | 2021-06-10 | -4/+34 | |
| | | | | | | | | | | ||||
| | | * | | | | | | | Fix bug: Do not force active param. | 2021-06-10 | -6/+9 | |
| | | | | | | | | | | ||||
| | | * | | | | | | | Lint file and remove update() method declaration from ↵ | 2021-06-10 | -2/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OffTopicChannelNameListSerializer. | |||
| | | * | | | | | | | Query off topic names based on Active attribute. | 2021-06-04 | -6/+10 | |
| | | | | | | | | | | ||||
| | | * | | | | | | | Return a list of ot-names only for GET request only to ↵ | 2021-06-04 | -2/+19 | |
| | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | bot/off-topic-channel-names | |||
| | | * | | | | | | Use ModelViewSet to add support for PUT and PATCH request. | 2021-05-19 | -8/+5 | |
| | | | | | | | | | ||||
| | | * | | | | | | Serialize name and active attribute. | 2021-05-19 | -12/+1 | |
| | | | | | | | | | ||||
| | | * | | | | | | Add active field to OffTopicChannelName model. | 2021-05-19 | -1/+29 | |
| | | | | | | | | | ||||
| * | | | | | | | | Merged infraction and notification settings in JSON | 2021-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. | 2021-12-24 | -1/+1 | |
| | | | | | | | | | ||||
| * | | | | | | | | Include 'dm_content ' field under Infraction settings in Filters/FilterLists | 2021-12-24 | -1/+1 | |
| | | | | | | | | | ||||
| * | | | | | | | | Patch Filter/FilterList's default values and add new fields | 2021-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 schema | 2021-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 representation | 2021-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 subcategories | 2021-12-18 | -48/+54 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This commit patches the FilterList serializer's schema, and puts the settings into the relevant subcategories. | |||
| * | | | | | | | | Adjust FilterList Representation | 2021-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 Schema | 2021-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 linting | 2021-12-18 | -7/+19 | |
| | | | | | | | | | ||||
| * | | | | | | | | Add merge migration | 2021-12-18 | -0/+14 | |
| | | | | | | | | | ||||
| * | | | | | | | | Move filters validations to serializers | 2021-12-18 | -34/+33 | |
| | | | | | | | | | ||||
| * | | | | | | | | Add validation to filters to not allow duplicates + additional_field -> JSON | 2021-12-18 | -7/+8 | |
| | | | | | | | | | ||||
| * | | | | | | | | Add validation to filters to not allow duplicated channels and categories | 2021-12-18 | -0/+29 | |
| | | | | | | | | | ||||
| * | | | | | | | | Add basic validation for infraction fields + use common infraction types | 2021-12-18 | -11/+8 | |
| | | | | | | | | | ||||
| * | | | | | | | | Update filters API to actually work | 2021-12-18 | -85/+123 | |
| | | | | | | | | | ||||
| * | | | | | | | | Remove old models from migration | 2021-12-18 | -2/+0 | |
| | | | | | | | | | ||||