Repository navigation
Restore the global ticket limit - #151
Merged
Merged
Conversation
Refactors ticket limit checks to evaluate panel and guild limits independently in both open and reopen flows, and reuses a shared reply/helper path when limits are reached. Updates user stats and welcome-message substitutions to show effective limits (including unlimited) instead of hardcoded defaults, and enables the local database module replace in go.mod.
Refresh the worker module for the current dependency set: upgrade the Go toolchain to 1.26, update TicketsBot-cloud/common and database to newer revisions, and bump the transitive x/* library versions in go.mod/go.sum. This also comments out the local database replace directive so the module resolves against the published dependency instead of the local path.
Contributor
Author
|
@BenHall-1 Bumped!! |
BenHall-1
approved these changes
Sep 12, 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.
Description
Restore the global ticket limit with a slight rework.
The limits now work simultaneously instead of as an overwrite, so you can set a global limit, give a specific panel a lower one, and still have the global total apply everywhere. Before, a panel with its own limit ignored the global one completely, so its allowance stacked on top of the total.
A limit of 0 turns that check off, so a user is only unlimited when both are 0.
The default global limit is 10.
Example with a global limit of 6, panel A on 1, and panels B and C on 0:
REQUIRED: TicketsBot-cloud/database#43
Type of Change
Testing
Follow the example should be pretty good
Checklist