Repository navigation
Restore the global ticket limit - #144
Merged
Merged
Conversation
Expose `ticket_limit` in the guild settings UI with a 0–10 number input and add the field to `GuildSettings` typing. On the backend, enforce the same upper bound in settings validation, fix the panel validation error text to match the actual max (10), and clarify that a panel ticket limit of `0` means no panel-specific limit. The local `database` module replace directive was also enabled in `go.mod`.
Deploying tickets-v2-dashboard with
|
| Latest commit: |
4aae79a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://05533e1a.tickets-v2-dashboard.pages.dev |
| Branch Preview URL: | https://global-limit.tickets-v2-dashboard.pages.dev |
Updates the backend to newer TicketsBot common and database module versions and refreshes the transitive Go dependency checksums in go.mod and go.sum. This also disables the local database replace directive so the build uses the published module version, and bumps related x/* packages such as x/sync, x/net, x/sys, x/term, and x/text to compatible releases.
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