Skip to content

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

@Ekep-Obasi

Description

@Ekep-Obasi

Description

Add support for filtering bounties by current authenticated user's assignments in the /gobounties/all endpoint.

Technical Details

  • Add new query parameter to filter bounties assigned to authenticated user
  • Extend existing GetAllBounties function to handle new filter
  • Ensure proper authentication validation
  • Unit tests for GetAllBounties with assignedToMe parameter

Implementation Notes

  • Add new query parameter myAssigned=true to existing endpoint
  • Update SQL query to include condition: AND assignee = [current_user_id] when filter is active
  • Maintain compatibility with existing filter combinations

Acceptance Criteria

  • /gobounties/all endpoint accepts new myAssigned parameter
  • Returns only bounties assigned to authenticated user when filter is active
  • Maintains proper interaction with existing filters
  • Returns appropriate error for unauthenticated users
  • Maintains existing pagination functionality

Dependencies

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions