r/ContextModBot • u/FoxxMD • Mar 08 '22
Release Release 0.10.13 (Flow Control and Runs)
This release includes two new major features Flow Control and Runs
Flow Control allows a subreddit to arbitrarily control in what order Checks are executed and what happens after a Check is triggered (or not triggered).
Runs provide an additional high-level grouping of Checks to help logically separate groups of independent Checks from each other. Runs leverage Item/Author filters as well as being able to provider filter merge defaults and post-Check behavior defaults.
Full Changelog
Bug Fixes
(check) Correctly get run actions for notification payload
(comment) Fix the target of the lock intention
(docs) Replace colon causing issues with mermaid diagram rendering
(docs) Mermaid issue was being inside closed detail block
(errors) Better check for response headers on error transform
(errors) Another better check for respsone headers
(errors) Try-catch on transform for good measure
(logging) Better data shape checking for error transformer
(migrations) Fix missing TTL for cache migration
(ui) Fix run summary typo
(ui) Fix filter numbering in events page
(ui) Don't strip urls from body when previewing comment in events
(user flair) Fix dry check
(usernote) Fix user note instantiation and link handling
(usernotes) Better handle missing moderators (no more errors thrown)
(No Category) Set process result error property with easier-to-read error message and include "not enabled"
(No Category) Fix bug where submission identifier was accessed via 'id' instead of 'name' property
Documentation
(No Category) Refactor docs to use runs syntax
(No Category) Add overview for runs and flow control #73
(No Category) Some clarifications in flow control wording
Features
(actioned event) Add more context for ui and search
(cache) Implement cache migrations
(filter) Refactor itemIs to use FilterCriteriaResult
(filter) Add filters to all result data
(flow) Implement basic flow control structures #73
(flow) Implement basic flow control structures #73
(flow) Implement max goto depth configuration
(migration) Update cache migration for new actioned event structure
(recent activity) Implement ability to compare distinct subreddits found
(ui) Implement run context for actioned events
(ui) Implement displaying author/item filters for actioned events
(ui) Make submission context in actioned event more succinct
(No Category) Add restricts on flow control to prevent endless loops
Refactor
(check) Refactor structure for storing check/action result for runs
(filter) Better handling for submissionState item criteria
(No Category) Refactor manager/run/check handling for better single responsibility