Skip to content

feat: filter public events by member - #238

Merged
m1ngsama merged 1 commit into
mainfrom
feat/public-events-member-filter
Nov 8, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
feat/public-events-member-filter

Conversation

@m1ngsama

@m1ngsama m1ngsama commented Nov 7, 2026

Copy link
Copy Markdown
Member

card.nbtca.space wants to show each member's repairs on their member page and in their yearly recap. The public GET /events cannot filter by member, so finding one member's tickets means downloading all of them, about 760 tickets and 520 KB.

GET /events now takes an optional memberId query parameter and returns only the tickets assigned to that member, with X-Total-Count counting the same set. Member IDs and assignments are already in the public responses, so this exposes nothing new.

The status and member conditions are now built in one filterEvents function, which the list and count queries share. New tests cover it without a database.

@m1ngsama
m1ngsama merged commit 4c29f40 into main Nov 8, 2026
5 checks passed
@m1ngsama
m1ngsama deleted the feat/public-events-member-filter branch November 8, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant