FoxxMD
d9ab81ab8c
Merge branch 'edge'
0.11.5
2022-07-27 09:19:30 -04:00
FoxxMD
d8003e049c
chore(schema): Update schema to reflect ban property max length changes
2022-07-25 16:36:24 -04:00
FoxxMD
b67a933084
feat(ui): Real-time data usage improvements based on visibility
...
Stop or restart real-time data (logs, stats) based on page visibility API so that client does continue to consume data when page is in the background/in a non-visible tab
2022-07-25 16:35:32 -04:00
FoxxMD
d684ecc0ff
docs: Add memory management notes
...
* Document memory management approaches
* Change node args for docker to a better name (NODE_ARGS)
* Implement default node arg for docker `--max_old_space_size=512`
2022-07-25 12:20:02 -04:00
FoxxMD
9efd4751d8
feat(templating): Render content for more actions and properties
...
* Template render Message action 'title'
* Template render Ban action 'reason' and 'note'
2022-07-25 11:56:22 -04:00
FoxxMD
9331c2a3c8
feat(templating): Include activity id and title for all activities
...
* Include reddit thing id as 'id'
* Include 'title' -- for submission this is submission title. For comment this is the first 50 characters of the comment truncated with '...'
* Include 'shortTitle' -- same as above but truncated to 15 characters
2022-07-25 11:41:43 -04:00
FoxxMD
d6f7ce2441
feat(server): Better handling for subreddit invite CRUD
...
* Return 400 with descriptive error when invalid value or duplicate invite requested
* Better value comparison for subreddit invite deletion
2022-07-25 11:24:19 -04:00
FoxxMD
ffd7033faf
feat(server): Add server child logger to requests for easier logging
2022-07-25 11:22:44 -04:00
FoxxMD
df5825d8df
fix(ui): Fix setting style for non-existing element on subreddit invite
2022-07-25 11:13:32 -04:00
FoxxMD
42c6ca7af5
feat(ui): More live stat delta improvements and better stream handling on the browser
...
* More granular delta for nested objects
* Custom delta structure for delayedItems
* Fix abort controller overwrite
* Enforce maximum of two unfocused log streams before cancelling immediately on visible change to reduce concurrent number of requests from browser
2022-07-22 13:50:53 -04:00
FoxxMD
1e94835f97
feat(ui): Reduce data usage for live stats using response deltas
2022-07-22 09:46:01 -04:00
FoxxMD
6230ef707d
feat(ui): Improve delayed activity cancel handling
...
* Fix missing bot param in DELETE call
* Fix missing database removal of canceled activity
* Implement ability to cancel all accessible
2022-07-21 10:11:19 -04:00
FoxxMD
b290a4696d
fix(ui): Use correct auth middleware for api proxy endpoint
2022-07-20 13:04:46 -04:00
FoxxMD
4c965f7215
feat(docker): Expand NODE_FLAGS (ENV) variable in node run command to allow arbitrary flags be passed through docker ENVs
2022-07-20 11:18:13 -04:00
FoxxMD
ce990094a1
feat(config): Gate memory monitoring behind operator config option monitorMemory
2022-07-20 10:20:52 -04:00
FoxxMD
4196d2acb0
feat(influx): Add server memory metrics
2022-07-19 16:28:58 -04:00
FoxxMD
3150da8b4a
feat(influx): Add manager health metrics
2022-07-19 14:26:14 -04:00
FoxxMD
655c82d5e1
fix(filter): Make source filter stricter by requiring exact value rather than "contains"
...
Fixes issue where source that is a shorter version of a longer identifier does not accidentally get run first
2022-07-18 15:55:41 -04:00
FoxxMD
98691bd19c
Merge branch 'edge'
0.11.4
2022-07-15 09:27:22 -04:00
FoxxMD
73302b718e
chore: Bump version for 0.11.4 release
2022-07-15 09:27:04 -04:00
FoxxMD
bbf91ceac0
feat(filter): Implement filtering by upvoteRatio for authorIs
2022-07-14 13:56:12 -04:00
FoxxMD
67b793c2aa
feat: Support parsing filename from non-raw GIST url in editor
...
* Support filename for non-raw gist
* Fix raw gist URL usage by fetching from CDN
2022-07-14 12:48:04 -04:00
FoxxMD
d635e5a65d
feat: Support parsing filename from non-raw GIST url
2022-07-14 11:12:04 -04:00
FoxxMD
8dc140a953
feat(report): Implement filtering reports in itemIs by time
...
* Refactor time parsing and comparison utils to consolidate logic and be more flexible
* Tests for the above
* Fix indexes for ActivityReport (should be unique)
* Fix missing eager load for Activity-Report relationship
* Implement time filtering for reports in itemIs
2022-07-13 13:00:49 -04:00
FoxxMD
eaa9f627e2
refactor(report): Cleanup monitoring in manager
2022-07-13 09:36:33 -04:00
FoxxMD
16cb28cb72
feat(report): Implement report tracking #78
...
* Store reports with likely creation time to DB
* Use some trickery and caching in Manager to get likely report creation time
2022-07-12 17:29:28 -04:00
FoxxMD
fa450f9f8f
docs(database): Add influx/grafana documentation
2022-07-11 13:46:27 -04:00
FoxxMD
1e76ca6c0e
docs(config): Add partial configuration documentation
2022-07-11 13:01:40 -04:00
FoxxMD
25b7ea497f
feat(filter): Implement specifying report reason in report comparison
2022-07-11 12:19:28 -04:00
FoxxMD
2f93774346
fix: Fix unnecessary subreddit fetch call on init
...
Snoowrap doesn't add fetch property to objects from listings so even though subreddit may already be fetched it always re-fetches, using an api call. Do a dirty fetch check here to prevent wasting calls when we are sure the subreddit is fetched.
2022-07-11 12:18:30 -04:00
FoxxMD
e2f6a92a90
fix(filter): Fix logic for assigning number of reports to compare
2022-07-11 10:01:58 -04:00
FoxxMD
0ffddaac9e
Revert "chore: Bump got and sharp versions for dependabot fixes"
...
This reverts commit fbf328d90f .
2022-07-11 08:56:44 -04:00
FoxxMD
4ddf6ddf26
Revert "chore: Bump passport version for dependabot fixes"
...
This reverts commit 7f61c190ea .
2022-07-11 08:56:41 -04:00
FoxxMD
7f61c190ea
chore: Bump passport version for dependabot fixes
2022-07-08 12:34:54 -04:00
FoxxMD
fbf328d90f
chore: Bump got and sharp versions for dependabot fixes
2022-07-08 12:33:03 -04:00
FoxxMD
36c6f7f1b8
feat(ban): Implement templating for ban note/reason
2022-07-08 10:51:47 -04:00
FoxxMD
0379ad17b9
feat: Add more Activity data to templating data #94
...
* Add votes, reports, upvote ratio, nsfw, op, and spoiler
* Update templating documentation
2022-07-08 10:24:10 -04:00
FoxxMD
02ed9f91f9
feat: Improve api health monitoring
...
* Potentially fix #30
* Break out api sampling and output into own function
* Add influx metrics for used calls and sample faster
* Fix default tags inheritance
2022-07-07 13:05:14 -04:00
FoxxMD
9fcc3db7b2
fix(modnote): Use correct activity identifier for reddit_id
2022-07-07 09:43:25 -04:00
FoxxMD
65ea84a69d
refactor(database): Move Event creation to earlier in activity handling function for a more accurate processing time
2022-07-06 17:41:14 -04:00
FoxxMD
a4b8d3a8ef
feat(database): Add api health measurement to influxdb
2022-07-06 17:11:38 -04:00
FoxxMD
2692a5fecb
fix(database): Fix processing/queued time value
2022-07-06 16:48:39 -04:00
FoxxMD
192c1659a0
feat(database): Initial influx db implementation #84
2022-07-06 15:14:58 -04:00
FoxxMD
cc241e41f4
refactor(logging): Improve log retention performance
2022-07-05 12:30:51 -04:00
FoxxMD
4bfb57a6cf
chore: Update connect-typeorm dependency
...
Moved to 2.0.0 b/c it now supports typeorm >= 0.3.0
2022-07-05 09:43:25 -04:00
FoxxMD
b6dedae7a1
fix(usernote): Fix regression with note types
...
Can use a custom note type so don't restrict to only the documented ones
2022-07-01 12:06:48 -04:00
FoxxMD
f2783bd7a4
feat(config): More error handling and internal improvements to config fragment parsing
...
* Refactor config fragment parsing function to always return an array for simpler usage in hydrate function
* Add error handling to all fragment calls so user can get a clear description of which fragment failed, contextually
2022-07-01 11:46:54 -04:00
FoxxMD
2efe41eadd
fix(cache): Use correct cache key and improve external url cache re-use
...
* Fix incorrect variable used for cache key that prevented cache from working at all (oops)
* Don't add subreddit context to ext url cache key so it can be re-used from any subreddit
2022-07-01 11:45:11 -04:00
FoxxMD
ebd60b9abe
feat(config): Support config fragments as array of fragments #76
2022-07-01 10:20:53 -04:00
FoxxMD
2a16df49a4
feat(config): Implement cache control for config fragments #76
2022-06-30 14:44:04 -04:00