Commit Graph
100 Commits
Author SHA1 Message Date
Ske 74e0508065 Increase webhook name limit to 80 2019-08-14 07:16:48 +02:00
Ske 5ef8a9303d Update .gitignore 2019-08-13 23:28:24 +02:00
Ske ec49d10d66 Add .editorconfig 2019-08-13 23:28:03 +02:00
Ske 4e69531103 Ignore invalid colors in member card 2019-08-13 21:49:43 +02:00
Ske 4d2c843442 Handle busy indicator without permission properly 2019-08-12 18:07:29 +02:00
Ske fb7f31d42d Invalidate proxy caches on more editing commands 2019-08-12 17:49:07 +02:00
Ske d8503001eb Show an error when a bad import URL is given 2019-08-12 17:47:35 +02:00
Ske 8396e17a87 Attempt to fix webhook invocation errors 2019-08-12 16:38:34 +02:00
Ske 5f79aaf960 Fix API service injection 2019-08-12 06:54:28 +02:00
Ske 1604500f2a Optimize Docker build files 2019-08-12 06:49:18 +02:00
Ske 5728f94e00 Fix stats command 2019-08-12 06:24:37 +02:00
Ske a48940476c Eagerly discard messages before shard init 2019-08-12 06:10:55 +02:00
Ske 7945603cdb Include invite link in error message 2019-08-12 06:03:20 +02:00
Ske d3f821a266 Send a request ID on error 2019-08-12 05:56:05 +02:00
Ske 145ecb91ad Refactor proxy service 2019-08-12 05:47:55 +02:00
Ske fda98bc25f Lower message cache size 2019-08-12 05:03:18 +02:00
Ske 17c8b7b765 Properly retry client creation on failure 2019-08-12 04:42:16 +02:00
Ske 5b13c1b100 Cache the entire webhook client rather than just the token 2019-08-12 04:32:01 +02:00
Ske 1b32cd8b6d Log webhook send progress 2019-08-12 04:16:17 +02:00
Ske c68ce1bdd3 Log gateway latency to console 2019-08-12 04:05:22 +02:00
Ske aa04d2055e Avoid deleting messages from the store if they're not webhooks 2019-08-12 03:51:54 +02:00
Ske 423d23faf7 Cache account lookup in memory when proxying 2019-08-12 03:48:08 +02:00
Ske 5aa47278cb Revert "Attempt to speed up Docker building"
This reverts commit f5c5291877.
2019-08-12 02:44:48 +02:00
Ske c94c6c1c41 Increase maximum connection pool size to 1000 2019-08-12 02:34:59 +02:00
Ske 213db91ade Report database query stats as tags 2019-08-12 02:33:56 +02:00
Ske f5c5291877 Attempt to speed up Docker building 2019-08-12 02:33:28 +02:00
Ske 99ec3cd355 Instrument and log database queries 2019-08-12 02:05:30 +02:00
Ske ea476d4051 Yield event handlers to task queue before handling 2019-08-12 01:15:55 +02:00
Ske a689d61788 Collect webhook response time and shard latency 2019-08-12 00:57:23 +02:00
Ske 90c6869b00 Collect statistics about shard status 2019-08-12 00:35:30 +02:00
Ske b593c32950 Add more extensive debug-level logging
- Logging of event IDs
- Logging of command invocations (at DEBUG)
2019-08-12 00:07:29 +02:00
Ske 7e92a58c8d Fix API project building 2019-08-11 22:59:05 +02:00
Ske 942022d408 Track database handles over metrics 2019-08-11 22:56:20 +02:00
Ske 3f6a260fac Properly associate trigger events with Sentry errors 2019-08-09 12:47:46 +02:00
Ske 606f48fdb5 Add display name to member card 2019-08-09 10:39:03 +02:00
Ske 7d6c8d46cb Add display names to documentation 2019-08-09 10:34:41 +02:00
Ske 200ba6d84c Add member proxy display names 2019-08-09 10:12:38 +02:00
Ske cf263af44c Fix wraparound on paginated lists 2019-08-04 13:52:41 +02:00
Ske fe22ba4f32 Truncate member profile in long system list 2019-08-04 13:52:41 +02:00
Ske a201ad644e Bump database maximum connections to 1000 in Docker 2019-08-04 13:52:25 +02:00
Ske 59dbc5368b Filter everyone/here pings if the proxy sender doesn't have permission 2019-07-28 15:38:41 +02:00
Ske 24ea11f691 Add docs page for permission check command 2019-07-26 12:18:23 +02:00
Ske 4eb9ee601d Add command to check channel permissions for proxying 2019-07-26 12:05:09 +02:00
Ske a9444fa8c6 Update member creation message with website link 2019-07-26 11:20:30 +02:00
Ske 967b4f9ae0 Add redirect message for member help command 2019-07-26 11:17:42 +02:00
Ske defbf37cfe Fall back to system avatar when no member avatar is set 2019-07-26 11:08:06 +02:00
Ske b14666aa4f Store the ID of the trigger message in the database 2019-07-24 13:38:54 +02:00
Ske 11eabe2e3d Update D.NET version and add bulk deletion support 2019-07-21 17:16:04 +02:00
Ske 4fe80749c4 Fix compiler warnings CS1998 and CS4014 2019-07-21 16:43:28 +02:00
Ske a078fcdf47 Add description as a field at the bottom of member and system embed 2019-07-21 16:29:48 +02:00
Ske 45f468fe21 Properly clean up after proxy operations 2019-07-21 04:27:04 +02:00
Ske 2620d2da9c Collect webhook cache statistics 2019-07-21 04:15:47 +02:00
Ske 3103df856c Only log deleted messages if they were found previously 2019-07-21 03:44:26 +02:00
Ske a674b98c80 Make backup script more robust 2019-07-21 01:05:09 +02:00
Ske 5118a17b84 Undo breaking metric context ID change 2019-07-21 00:11:46 +02:00
Ske bb6378df63 Add more complex process performance tracking 2019-07-21 00:01:02 +02:00
Ske 4f33ed84ac Disable message caching
This will potentially fix the memory leaking issues.
2019-07-20 23:10:26 +02:00
Ske d5c0856abf Fix bounds checking on member patch endpoint 2019-07-19 18:36:47 +02:00
Ske a4f2735c64 Make color set command case-insensitive 2019-07-19 14:54:40 +02:00
Ske 3d073df359 Fix avatar setting by mention 2019-07-19 14:21:16 +02:00
Ske b85c79c57b Expand logging capability 2019-07-19 02:29:08 +02:00
Ske 52962f1b97 Bounds check proxy tags before extracting inner message 2019-07-19 02:14:46 +02:00
Ske 1577eb7041 Log channel ID rather than name 2019-07-18 17:29:09 +02:00
Ske 0b4335ccaa Add logger to API service setup 2019-07-18 17:26:06 +02:00
Ske 961bfe9094 Add basic logging framework 2019-07-18 17:13:42 +02:00
Ske dfbb5cd2d6 Add fronter info to system card 2019-07-18 14:05:02 +02:00
Ske 1ad01703b0 Add system tag to embed card 2019-07-18 14:01:28 +02:00
Ske 63cdb43496 Put member name in code block in lookup error message 2019-07-18 14:00:30 +02:00
Ske 483611702e Fix error when switching with no previous switches 2019-07-18 12:09:19 +02:00
Ske 90ceec61d9 Remove IDE configs 2019-07-17 14:07:06 +02:00
Ske ca73a215c8 Add endpoint for querying messages by ID 2019-07-17 14:05:44 +02:00
Ske e28ed585ce Add endpoint for querying systems by Discord snowflake 2019-07-17 13:45:52 +02:00
Ske a188c64a0e Clean up unused imports 2019-07-17 13:38:23 +02:00
Ske f53344cd89 Fix front percent returning negative percentages and ranges 2019-07-17 13:37:43 +02:00
Ske 548fe09fd4 Fix docker-compose.yml syntax error 2019-07-16 23:47:00 +02:00
Ske 02b41413b3 Add basic InfluxDB reporter 2019-07-16 23:34:22 +02:00
Ske 2d58705e85 Add basic WIP metrics system 2019-07-16 21:59:06 +02:00
Ske a2040f959d Disable GitLab CI for now 2019-07-16 21:19:02 +02:00
Ske d5da3bf004 Clamp frontpercent range to actual switch range 2019-07-16 21:18:46 +02:00
Ske 003f64abbd Allow setting member avatar by mention 2019-07-16 20:17:04 +02:00
Ske e0a93ba608 Enable CORS for the API 2019-07-16 14:20:25 +02:00
Ske d416f39b36 Add .gitlab-ci.yml 2019-07-16 12:34:10 +02:00
Ske 29180bcd2e Fix broken member info endpoint 2019-07-16 12:14:48 +02:00
Ske 51b9afddea Properly format Sentry message breadcrumbs 2019-07-16 01:32:08 +02:00
Ske 2aae92406a Remove Sentry scope setup for now 2019-07-16 01:28:55 +02:00
Ske f5b6ce4587 Exclude index page from nav 2019-07-16 00:57:30 +02:00
Ske 27dc88db11 Fix API documentation tables finally 2019-07-16 00:36:28 +02:00
Ske 073aff82f1 Add better website front page 2019-07-16 00:34:37 +02:00
Ske 5599f0a4a8 Add system avatar command (which I totally forgot) 2019-07-15 23:50:32 +02:00
Ske 6f082de40e Render API endpoint headers in normal font 2019-07-15 22:28:55 +02:00
Ske 8e592eea13 Attempt to fix table rendering on API docs 2019-07-15 22:26:48 +02:00
Ske b2ec1b6079 Add docs page describing command aliases 2019-07-15 22:16:43 +02:00
Ske 2f90e7c050 Show sender account in message card 2019-07-15 22:11:08 +02:00
Ske 99919ea6ea Add member color to card 2019-07-15 22:06:08 +02:00
Ske 66690423e8 Allow calling frontpercent with arguments containing spaces
Closes #113 (for real this time).
2019-07-15 21:53:55 +02:00
Ske b6ba24d171 Show front percent for switches with no fronter
Closes #113.
2019-07-15 21:51:41 +02:00
Ske 05f7ead62e Correctly order members in front percent embed 2019-07-15 21:41:24 +02:00
Ske 206d403526 Ignore proxying messages with no content and no attachment 2019-07-15 21:37:34 +02:00
Ske 6668cd8d2d Swallow 404 when deleting proxied message 2019-07-15 21:36:12 +02:00
Ske d47e7e7a06 Don't process messages until we're fully connected to shard zero 2019-07-15 21:29:45 +02:00