aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2022-03-08 20:51:06 +0200
committerGravatar mbaruh <[email protected]>2022-07-16 02:34:04 +0300
commit0c2f567ae0d917b8ace8cfd370cecb1c43c46472 (patch)
tree797ecca762a9b1ff45c2fdbd71c9ea6607b8b453 /tests
parentAdd system description commands (diff)
Add settings display for individual filters and filter lists
The filterlist describe command is changed to include the default settings it contains. The filters group can now take a filter ID, and it will display embed detailing the filter data and settings. The mechanic is similar to how individual infractions can be displayed with `!infraction <id>`. - To be able to quickly find whether the filter with the provided ID is in a specific list, the data structure was changed to a dictionary. - To be able to mark which settings have the default values and which are overrides, resolving the full actions of a filter is deferred to when the filter is actually triggered. This wasn't possible in the beginning of development, but now that each filterlist can resolve the action to be taken with its own internal logic, it is. - Some attribute names of SettingsEntry subclasses were changed to match the name under which they're stored in the DB. This allows displaying the settings with the names that need to be used to edit them. - Each filterlist now contains all settings, even if they're empty, so that they can be displayed. While this is slightly less efficient, I considered it too negligible to make displaying the settings messier than it already is. - Some additional refactoring in the cog was done to avoid code repetition.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions