Repository navigation
feat(tickets)!: remove ticketState, it reads open on every ticket - #300
Merged
Merged
Conversation
NF Tickets leaves ticket_state at its default 'open' on every ticket, so the field and its filter misreport resolved and closed tickets. Status lives in statusId and statusName. BREAKING CHANGE: Ticket drops ticketState and GET /api/v1/tickets drops the ticketState filter. Closes #296
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
SyniRon
force-pushed
the
agent/claim-explain-issue-296
branch
from
November 3, 2026 20:18
f9c6f7f to
477cd77
Compare
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.
Closes #296
Summary
NF Tickets leaves
xf_nf_tickets_ticket.ticket_stateat its defaultopenon every ticket. In the xenforo-dev copy that covers all 12,699 tickets, including 5,913 Resolved and 2,418 Closed. The field and its filter misreported status, so both go. Status stays instatusIdandstatusName.queryBinder.stringSliceFieldgoes too, since this filter was its only caller. The testdb schema and fixtures keep the column because they mirror the forum table.Evidence
developagainst the seeded harness database:"ticketState"lines, plus thelist_state_filtercase and its golden.go vet ./...,go test ./...without the harness,go test -v ./testdb ./datastoreswith the MariaDB harness (0 skips), andgo test -race ./...with the harness all pass.Merge Danger
Door: two-way
Releases are a manual step, so merging changes nothing in production. A revert brings the field and filter back unchanged.
Blast Radius: tickets clients
This breaks the wire shape, so the next release is 4.0.0. The tickets scope has one key holder. The tickets MCP is the only client, and it already drops
ticketStatefrom its output (src/compact.ts) and never sends the filter. A caller still sendingticketState=...gets the unfiltered list back, not an error.Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved
Created with Claude Opus 5.5 in T3 Code, reviewed by gpt-6.1-sol.
Note
🤖 Opus 5.5 responding on behalf of SyniRon