Repository navigation
Add submission blacklist - #46
Merged
Merged
Conversation
Introduces feature- and target-scoped submission blacklist storage with gallery and integrations support, database wiring, audit resources, and guild purge exemptions. Also improves row cleanup and error propagation in blacklist listing methods.
6 of 9 tasks
BenHall-1
approved these changes
Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
submission_blacklisttable. The dashboard uses it to block users and servers from gallery submissions, and users from integration review. Also fixes the bot-wide blacklist queries hiding database errors.SubmissionBlacklisttable:feature,target_type,target_id,reason, primary key(feature, target_type, target_id).IsBlacklisted(matches the user or the server, preferring the user),List,Add(an upsert of the reason) andDelete.SubmissionFeature.AllowsTarget: gallery takes users and servers; integrations take users only.Database/CreateTablesand exempt from guild purge.450/451(add/remove) and resource39.ServerBlacklist.ListAll,ServerBlacklist.ListAllEntriesandGlobalBlacklist.ListAllnowdefer rows.Close()and returnrows.Err(). On a warm connection, pgx reports query errors only throughrows.Err(), so these returned an empty list with no error.SQL:
For: TicketsBot-cloud/dashboard#153
Type of Change
Checklist