Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 tasks
Ekep-Obasi opened this issue Jan 14, 2025 · 2 comments
Open
5 tasks
Assignees
Labels

Comments

@Ekep-Obasi
Copy link
Contributor

Ekep-Obasi commented Jan 14, 2025

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

@humansinstitute
Copy link
Contributor

@abhishek818
Copy link

@humansinstitute is this open to external contributions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants