aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps (follow)
Commit message (Collapse)AuthorAgeLines
...
| | | * | | | | | 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
| | * | | | | | | | 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.
| | * | | | | | | | Add a readme for the home appGravatar Johannes Christ2023-03-29-6/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit also moves the nested structures for models and views in the home app into a single module, as they were not split up as part of the subpackage, with the goal of making this a bit more overseeable. Part of #674.
| | * | | | | | | | Merge branch 'main' into events-app-readmeGravatar wookie1842023-03-25-30/+29
| | |\ \ \ \ \ \ \ \
| | | * | | | | | | | Register cleanup job after module loadGravatar Johannes Christ2023-03-25-5/+1
| | | | | | | | | | |
| | | * | | | | | | | Drop dependency to pyfakefsGravatar Johannes Christ2023-03-25-30/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a temporary directory to manage our resource tests instead of reyling on pyfakefs to mock it away for us. This also makes the code more portable: all we need now is a way to create a temporary directory. `pathlib` mostly abstracts away the other parts for us. Since we're well-behaved, we clean up the temporary directory at the end of the Python interpreter's life using `atexit` and `shutil.rmtree`. This PR was written and tested with Python 3.9 which required some hacks in `pyproject.toml` to make it work, it may require re-locking if CI throws up. Closes #679.
| | * | | | | | | | | Add a README for the events appGravatar Johannes Christ2023-03-21-0/+19
| | |/ / / / / / / /
| | * | | | | | | | Update mention of the partners channelGravatar Johannes Christ2023-03-21-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #868.
| | * | | | | | | | Subclassing context.md (#703)Gravatar Diabolical57772023-03-21-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Johannes Christ <[email protected]> Co-authored-by: Amrou Bellalouna <[email protected]> Co-authored-by: Bluenix <[email protected]> Co-authored-by: Xithrius <[email protected]> Co-authored-by: wookie184 <[email protected]>
| | * | | | | | | | Update docs for upstream documentation change (#905)Gravatar Johannes Christ2023-03-21-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #900.
| | * | | | | | | | Add Rule 10 for ChatGPT answers (#910)Gravatar brad90four2023-03-21-0/+1
| | | | | | | | | |
| | * | | | | | | | add rule 10 to the listGravatar shtlrs2023-03-21-0/+4
| | | |_|_|_|_|/ / | | |/| | | | | |
| | * | | | | | | Merge branch 'main' into mbaruh/timeoutGravatar Boris Muratov2023-03-20-5/+35
| | |\ \ \ \ \ \ \
| | | * | | | | | | Replace CharField with URLField and set default to NoneGravatar vivekashok12212023-03-10-4/+5
| | | | | | | | | |
| | | * | | | | | | Merge branch 'main' into vivek/add-jump-url-fieldGravatar Vivek Ashokkumar2023-03-10-15/+14
| | | |\ \ \ \ \ \ \