Commit Graph
100 Commits
Author SHA1 Message Date
spiral 32b41de331 fix: don't try to parse privacy from v1 JSON model as v2 privacy model 2022-04-24 14:39:05 -04:00
spiral 7aaad288e6 chore: remove API v1 2022-04-20 12:20:03 -04:00
spiral 1e86c2d6c4 chore: lint 2022-04-20 10:47:15 -04:00
spiral aa896de3af fix: ignore nirn-proxy timeouts in IsOurProblem 2022-04-20 10:45:35 -04:00
spiral 99e4c9005d fix: generic-ify mgmt API URL in run-clustered.sh 2022-04-20 10:44:43 -04:00
spiral 5d24e86a7e feat(gateway): add Dockerfile and GH Actions build script 2022-04-19 16:19:31 -04:00
spiral a5af6793f8 fix(gateway): make NOMAD_ALLOC_INDEX environment variable optional 2022-04-19 16:17:10 -04:00
spiral 6faed635fa fix: parse some stuff correctly when using Redis gateway 2022-04-13 08:50:04 -04:00
spiral 6be8dd0773 feat(gateway): split out event handler to separate file, remove twilight cache 2022-04-13 08:48:06 -04:00
spiral c2094e3b7a feat(bot): add Redis cache 2022-04-13 08:44:53 -04:00
spiral fadf007abc feat(gateway): initial commit 2022-04-11 15:55:10 -04:00
spiral 8e5b987b2c feat: add Nomad run script 2022-04-10 10:57:51 -04:00
spiral 9314ce672a fix: don't query /gateway/bot if we already have the info from cluster config 2022-04-10 10:41:26 -04:00
spiral 756859ebe6 fix(api): default to not using lookup cache by default for ResolveGroup 2022-04-09 18:04:27 -04:00
spiral fb8249705d feat(api): add Discord OAuth2 login 2022-04-07 09:26:12 -04:00
spiral 6295a1a561 fix(api): allow 'sentry-trace' header in CORS 2022-04-07 09:23:14 -04:00
spiral 8629e38edd feat: API bulk privacy endpoints 2022-04-07 03:49:06 -04:00
spiral 70cf472fb5 fix: better entity resolving in group member endpoints 2022-04-07 03:48:32 -04:00
spiral 36873e08ee chore: PR lint 2022-04-07 03:47:38 -04:00
spiral e0ed5b528e fix: get thread parent from API instead of cache for cross-cluster message edit 2022-03-31 07:23:31 -04:00
spiral 6a213fa694 feat: dispatch new bot status to clusters via Redis 2022-03-30 20:42:57 -04:00
spiral 973d6d883c fix: get guild from REST for pk;proxy across clusters
also closes #330.
2022-03-30 05:54:21 -04:00
spiral dce29ec933 fix: show correct error when mentioned account doesn't have a system 2022-03-30 05:27:15 -04:00
spiral ec6d4865cb fix: show displayname field even when member name is private 2022-03-30 05:21:26 -04:00
spiral 36e242986d fix: fail-fast if we don't have Send Messages permissions in the current channel 2022-03-30 05:11:55 -04:00
spiral 233d0341a2 fix: don't crash in autoproxy status if targeted member was deleted (again) 2022-03-30 05:06:47 -04:00
spiral a23108f24b fix: actually use REST guild instead of returning no permissions 2022-03-30 04:51:33 -04:00
spiral 7afba4ea95 chore: code cleanup (mostly whitespace / remove unused imports) 2022-03-30 04:36:22 -04:00
spiral 56155782c3 fix: don't crash if user tries to add a reaction on a page before the reactions are done filling up
this is kinda a hacky fix since it just ignores the user input, but it's the best that can be done until Paginate is moved to interactions (buttons)
2022-03-30 03:06:21 -04:00
spiral eb4ee2afc1 chore: update packages lock for PluralKit.Tests 2022-03-30 03:01:13 -04:00
spiral a1d8d246c5 refactor: move Database query methods into own file 2022-03-30 03:00:45 -04:00
spiral b25d5f1b67 lint 2022-03-30 02:36:39 -04:00
spiral be89f907a0 feat: block running commands / proxying when system is being deleted
Large systems take way too long to delete, which causes any insert for that system to block a connection, which exhausts the connection pool
2022-03-23 21:32:18 -04:00
spiral 375e650c9e fix build 2022-03-23 20:35:40 -04:00
spiral 81cc1465cd feat: also report database connection count by cluster in scheduled tasks worker 2022-03-23 20:28:56 -04:00
spiral d097436f3e feat: add Prometheus metrics for API 2022-03-23 20:09:25 -04:00
spiral 0bad2e8ff9 Revert "refactor: run InfluxDB reporter through AppMetrics instead of per-minute task"
This reverts commit 38a3683fca.
2022-03-23 19:28:51 -04:00
spiral 38a3683fca refactor: run InfluxDB reporter through AppMetrics instead of per-minute task 2022-03-23 14:41:55 -04:00
spiral 97c14b20b0 fix(api): don't 500 on invalid PATCH body 2022-03-23 14:26:54 -04:00
spiral a20f0916ac feat: add ASP.NET metrics tracking 2022-03-23 14:24:09 -04:00
spiral 062835e0c5 fix: typo in migration 2022-03-21 23:58:25 -04:00
spiral 982812333b feat: rewrite database schema for localized autoproxy 2022-03-21 23:43:33 -04:00
spiral ca108813b7 fix: don't spam errors when postgres is restarting 2022-03-19 21:57:58 -04:00
spiral 6c6cb156d4 fix: temporarily remove message count statistics because postgres locks 2022-03-19 21:57:02 -04:00
spiral 1a38635a12 fix: don't crash when autoproxy member is deleted 2022-03-19 21:55:59 -04:00
spiral 98026dfc7d fix: actually report metrics to influxdb in scheduled tasks runner 2022-03-16 14:28:43 -04:00
spiral 26ef81e47a fix build issue 2022-03-15 00:29:34 -04:00
spiral 8a124c67ae feat(api): expose Discord statistics on /private/meta 2022-03-15 00:09:27 -04:00
spiral 8909330db2 feat: aggregate cluster statistics and send to influx with scheduled tasks worker 2022-03-14 23:33:22 -04:00
spiral 857e20b601 feat: show total shards from cluster configuration if present 2022-03-11 17:51:04 -05:00
spiral ae543b9c18 feat: fetch from REST instead of cache for cross-cluster lookups 2022-03-09 20:06:53 -05:00
spiral d0ad7abb03 feat: add the rest of the Dynos to logclean 2022-03-03 06:01:23 -05:00
spiral fafa62f560 feat(docs): add documentation for new API ratelimiting 2022-02-27 18:53:04 -05:00
spiral 034258f050 feat: add 'prns' alias to pronouns command 2022-02-26 16:32:53 -05:00
spiral 078b5a5bcd feat: log error when globally ratelimited 2022-02-26 16:28:28 -05:00
spiral 32a73eef09 feat: update to Discord API v10 2022-02-26 16:28:20 -05:00
spiral 6a4033b2a9 feat: add blue diamond documentation and 'clear' command to pk;config 2022-02-11 12:25:56 -05:00
spiral d0e9ad7193 fix: PKMessage.Member can be null 2022-02-11 12:09:58 -05:00
spiral c958307698 refactor: rename discord.proto to state.proto 2022-02-07 11:07:45 -05:00
spiral 1ec3663f63 feat: add cluster ID to shard state 2022-02-07 11:05:55 -05:00
spiral f13c60a841 fix(api): 403 instead of 401 on API v1 member routes 2022-02-05 09:37:18 -05:00
spiral 375758206e fix: show correct name in entityReference when base name is private 2022-02-05 09:26:14 -05:00
spiral 47e501da81 fix: update guild cache on GUILD_UPDATE event 2022-02-04 14:54:56 -05:00
spiral 8a9148cd32 fix: remove LastConnection check in shardUpTotal 2022-02-04 14:54:29 -05:00
spiral fc8f1b7cd3 fix: don't require Redis for startup 2022-02-04 14:53:56 -05:00
spiral 8964d7f623 chore: lint 2022-02-04 14:52:06 -05:00
spiral b6a160caef feat: log full Discord error body 2022-01-26 06:21:19 -05:00
spiral efaf814e12 fix: check if system exists in HandleSystemCommandsTargeted 2022-01-26 06:20:26 -05:00
spiral af3702152f fix(api): show full git commit hash in header 2022-01-24 08:18:34 -05:00
spiral c38ca2e7fa feat: add git commit hash to Serilog context 2022-01-24 08:13:59 -05:00
spiral 2e387ecee9 feat(api/private): add disconnection count to shard objects 2022-01-23 02:30:03 -05:00
spiral d948d445ec fix(api): order shards by ID 2022-01-23 02:17:13 -05:00
spiral bd3d9bc0d8 fix Docker build 2022-01-23 01:52:41 -05:00
spiral 8ce7465177 fix: don't crash in lists when searching for a string longer than 256 characters 2022-01-23 01:47:55 -05:00
spiral 84e7e71f88 fix(logclean): use application ID rather than bot user ID when needed 2022-01-23 01:47:04 -05:00
spiral 0419ced0d2 feat: store shard status in Redis 2022-01-22 03:52:52 -05:00
spiral 22faa47d00 refactor: make Help.cs content static 2022-01-22 03:22:15 -05:00
spiral df6a6fcf12 refactor: don't DI IDatabase and ModelRepository into bot command classes 2022-01-22 03:05:01 -05:00
spiral 89c44a3482 feat: cache Discord DM channels in database 2022-01-22 02:47:47 -05:00
spiral ddbf0e8691 Revert "feat: remove 2000-character limit for proxied messages"
This reverts commit 7cc2aab1f0.
2022-01-21 18:24:55 -05:00
spiral 31a129dabf fix: check HasNext after matching message in EditMessage, use PKSyntaxError instead of PKError 2022-01-21 17:10:00 -05:00
spiral 4a739c2d61 feat: better error reporting settings 2022-01-21 00:10:51 -05:00
spiral f9aba1f129 feat: move a couple of commands to MatchToggle 2022-01-21 00:00:54 -05:00
spiral e42002b754 fix: add missing return in pk;debug proxy 2022-01-21 00:00:26 -05:00
spiral aad9f04b6f feat: add 'enabled' phrasing and MatchFlag to MatchToggle, clean up 2022-01-20 23:59:04 -05:00
spiral 84529f6f32 fix: put Serilog event ID / shard ID in same scope as Sentry error ID 2022-01-20 23:38:58 -05:00
spiral 7aae41c080 feat: clean up log cleanup
- fix Carl-bot's user ID
- remove Logger#6278 (has been offline since 2020)
- remove webhook name checks, and rely on application ID instead
- add premium version of some bots
2022-01-20 23:37:32 -05:00
spiral c6e4c862b8 feat: update Discord status only on identify
See <https://github.com/discord/discord-api-docs/issues/4073#issuecomment-1016762755>

We still update status when restarting cluster, because it doesn't really matter if the session dies in that case (we're already restarting / going to reidentify)
2022-01-20 05:52:40 -05:00
spiral b586ef5d0a feat: add true/false to MatchToggle 2022-01-20 05:24:28 -05:00
spiral 9f7c47b78e feat(api): separate private endpoints from public API versioning 2022-01-19 19:29:51 -05:00
spiral eb4f53c69e refactor: remove asp.net versioning 2022-01-19 19:25:04 -05:00
spiral 1626e0f548 feat: better command parsing for pk;config 2022-01-19 18:59:44 -05:00
spiral 426d753827 feat: tweak durations in Redis gateway ratelimiter 2022-01-19 18:01:42 -05:00
spiral db3d436ef5 fix: update target schema version in DatabaseMigrator 2022-01-19 17:59:53 -05:00
spiral c7851f6f5a fix: merge system/group frontpercent code, fix flags 2022-01-19 17:59:01 -05:00
spiral bf122f1046 feat: update command help for pk;autoproxy 2022-01-19 17:40:27 -05:00
spiral d19242b89d feat: add 'sa' alias to serveravatar command 2022-01-19 17:23:10 -05:00
spiral 2e17522de6 refactor: reorganize a few lines in Misc.cs 2022-01-19 17:18:31 -05:00
spiral a16903037f fix: don't try to re-send stickers and activity invites 2022-01-14 23:22:12 -05:00
spiral 2639989183 fix git merge from #412 2022-01-14 23:16:10 -05:00