107 Commits

Author SHA1 Message Date
FoxxMD
a6e72dc79d Add rule ordering and api caching to advanced concepts 0.2.1 2021-06-11 19:35:25 -04:00
FoxxMD
962e44bf57 Fix some more links wtf 2021-06-11 19:20:16 -04:00
FoxxMD
2189d92725 Update recent activity examples descriptions 2021-06-11 19:17:09 -04:00
FoxxMD
14711efeb3 Use better link for example 2021-06-11 19:13:48 -04:00
FoxxMD
774b41c2a3 Add readmes for all sections 2021-06-11 19:12:11 -04:00
FoxxMD
4928b8b57a Add examples 2021-06-11 18:30:30 -04:00
FoxxMD
4b39794e2f Normalize named rule value 2021-06-11 18:29:19 -04:00
FoxxMD
c0ede0561c Add general percentages to history result data 2021-06-11 16:40:51 -04:00
FoxxMD
d7cea1f705 Add totalCount threshold property for recent activity rule 2021-06-11 16:00:17 -04:00
FoxxMD
3e29d7eb9f Remove noisy poll logging
Duh
2021-06-11 14:17:10 -04:00
FoxxMD
48ea60f886 Move heartbeat to app-level config 2021-06-11 14:15:54 -04:00
FoxxMD
1897d96a8f Add dryrun setting to help with testing
Can be configured at action, check, subreddit, or app level
2021-06-11 12:38:01 -04:00
FoxxMD
1279975a8a Add verbose log statements to log rule results and comment/report action contents 2021-06-11 11:56:55 -04:00
FoxxMD
7d0f7e8714 Decode content in render util instead of in each action 2021-06-11 11:44:36 -04:00
FoxxMD
f6b3f02e05 unescape content before report/comment 2021-06-11 10:36:37 -04:00
FoxxMD
1f439dc290 Re-add report length enforcement
Reddit returns 200 for longer content but then never actually makes the report
2021-06-11 10:28:51 -04:00
FoxxMD
0a299308fb Make history summary more succinct 2021-06-11 10:28:29 -04:00
FoxxMD
a84b39cc5a Wrap snoowrap logger function so arguments can be passed correctly to winston 2021-06-10 15:57:04 -04:00
FoxxMD
f64c6e0df5 Fix default for boolean option 2021-06-10 15:56:41 -04:00
FoxxMD
250313b6a8 Add separator between check name and description 2021-06-10 14:27:27 -04:00
FoxxMD
e4be9ed4e6 Display api limit on startup 2021-06-10 14:27:02 -04:00
FoxxMD
788af401b3 Support JSON5 for parsing configuration 2021-06-10 13:20:11 -04:00
FoxxMD
6bc74b383f Implement resource caching
User-configurable global/subreddit-level caching for author activities, wiki pages, and author checks
2021-06-10 13:13:57 -04:00
FoxxMD
51825a594d Handle errors from check iteration 2021-06-10 10:18:26 -04:00
FoxxMD
186d9ac4b7 Implement History rule 2021-06-09 17:09:33 -04:00
FoxxMD
ac02fdabfd Log link to invalid wiki page on error 2021-06-09 14:56:16 -04:00
FoxxMD
0eeb204371 Update ajv and fix schema generation issues
* Update ajv to fix #ref warning
* Consolidate ajv instantiation so config is always the same
* Remove propOrder flag for schema generation since its out of spec
2021-06-09 14:39:23 -04:00
FoxxMD
64a97ee048 Logging improvements
* Insert activity identifier into logging labels after subreddit using dynamic labels
* Simplify logger creation (don't need shuffle using improvements from above)
* Add logging to Actions
* Make check logging clearer and more succinct
* Log more information on startup
2021-06-09 13:36:32 -04:00
FoxxMD
318a1d3326 Set heroku url to default branch 0.2.0 2021-06-08 16:16:58 -04:00
FoxxMD
08db50426b Show check details and summary by default (info level) 2021-06-08 16:15:36 -04:00
FoxxMD
77f7a0167c Wiki value typo 2021-06-08 16:10:44 -04:00
FoxxMD
23a9f9d652 Remove potentially problematic heroku env 2021-06-08 16:09:00 -04:00
FoxxMD
72ed72ce4a Add heroku quick deploy button 2021-06-08 16:07:53 -04:00
FoxxMD
8cea19c7f2 Remove default env vars 2021-06-08 16:01:18 -04:00
FoxxMD
8eeaac2d53 Update heroku app file 2021-06-08 15:41:57 -04:00
FoxxMD
3cf838ba9f Create heroku app file 2021-06-08 15:39:14 -04:00
FoxxMD
16f3c2268b Create heroku file 2021-06-08 15:31:34 -04:00
FoxxMD
3be20b910d Fix missing return on activity filter 2021-06-08 14:03:49 -04:00
FoxxMD
78aed4321a Add support for reddit permalink when running check command 2021-06-08 13:55:03 -04:00
FoxxMD
0fe2fa8934 Add submission from comments convenience method 2021-06-08 13:46:45 -04:00
FoxxMD
37ba1dc1bf Fix default value when reference submission has no repeats 2021-06-08 13:46:08 -04:00
FoxxMD
5905c910b0 Implement name references for actions and rules
Action/Rule objects they can now be referenced by name from anywhere in the configuration
2021-06-08 12:40:00 -04:00
FoxxMD
d239d3c6cc Update dockerfile to use default run command 2021-06-08 00:52:23 -04:00
FoxxMD
16d0eebac6 Some small fixes for attribution 2021-06-08 00:35:34 -04:00
FoxxMD
1a393944c0 Refactor AttributionRule to be more robust and handle multiple window/thresholds
It's more useful to be abel to check thresholds for multiple windows to get a more holistic idea of attribution percents
2021-06-08 00:32:25 -04:00
FoxxMD
9f270010b7 Add trace to winston log levels so it can be used with snoowrap 2021-06-08 00:31:31 -04:00
FoxxMD
2548cff367 Friendly print schema validation errors 2021-06-08 00:30:57 -04:00
FoxxMD
c7acda46a0 Implement AttributionRule 2021-06-07 17:45:08 -04:00
FoxxMD
530675179b Refactor activity window
* Truncate items to window length when too many retrieved
* Correctly compare dates
2021-06-07 17:44:20 -04:00
FoxxMD
7960423678 Fix missing bold format character 2021-06-07 14:09:11 -04:00