Skip to content

Add authenticated myAssigned bounty filter#2773

Open
newmattock wants to merge 3 commits into
stakwork:masterfrom
newmattock:codex/my-assigned-bounties
Open

Add authenticated myAssigned bounty filter#2773
newmattock wants to merge 3 commits into
stakwork:masterfrom
newmattock:codex/my-assigned-bounties

Conversation

@newmattock
Copy link
Copy Markdown

@newmattock newmattock commented May 15, 2026

Summary

  • require authentication when /gobounties/all?myAssigned=true is requested
  • filter the existing bounty query by the authenticated user pubkey while preserving existing status/search/language/pagination filters
  • add handler coverage for the assigned-to-me result and unauthenticated request path

Closes #2436
Bounty: https://community.sphinx.chat/bounty/3334

Companion PR

Testing

  • go test ./handlers -run 'TestGetAllBounties' -count=1
  • go test ./db -run '^$' -count=1
  • gofmt -w db/db.go handlers/bounty.go handlers/bounty_test.go mocks/Database.go
  • git diff --exit-code -- db/db.go handlers/bounty.go handlers/bounty_test.go mocks/Database.go
  • git diff --check -- db/db.go handlers/bounty.go handlers/bounty_test.go mocks/Database.go

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.

[Feature] Add Assigned to Me Filter Support to /gobounties/all endpoint

1 participant