You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to add pagination, filtering and sorting to the get bounties for phase endpoint.
GET /features/{feature_uuid}/phase/{phase_uuid}/bounty
Design
Copy functionality from /gobounties/all
Make sure you handle all this query parameters
limit=10
&sortBy=created
&search=
&page=1
&resetPage=true
&Open=true
&Assigned=false
&Completed=false
&Paid=false
&languages=
The functionality to copy from the endpoint /gobounties/all is in the handler bountyHandler.GetAllBounties
Make sure you are running posgresql locally
Create file .env with the following content
PORT=5005
DATABASE_URL=postgres://postgres:asdf@localhost:5432/ebdb?sslmode=disable
Change DATABASE_URL to connect to your local DB (it could be an empty db)
Run "go run ." to run the backend API that connects to the DB and creates the objects
Your job is to create the routes, handler functions and db changes in order for the test to pass.
Acceptance Criteria
I have created bounties and put them on each of the bounty states [Open], [Assigned], [Completed], [Paid]
I have created bounties in different languages [Golang], [Typescript]
I have tested each of the query parameters [limit], [sortBy], [search], [page], [resetPage], [Open], [Assigned], [Completed], [Paid] and [languages
I have tested several values for each filter parameter
I can submit a pr within 6 hours of taking the bounty
The text was updated successfully, but these errors were encountered:
Context
Bounty: https://community.sphinx.chat/bounty/2008
We need to add pagination, filtering and sorting to the get bounties for phase endpoint.
GET /features/{feature_uuid}/phase/{phase_uuid}/bounty
Design
Copy functionality from /gobounties/all
Make sure you handle all this query parameters
limit=10
&sortBy=created
&search=
&page=1
&resetPage=true
&Open=true
&Assigned=false
&Completed=false
&Paid=false
&languages=
The functionality to copy from the endpoint /gobounties/all is in the handler bountyHandler.GetAllBounties
PORT=5005
DATABASE_URL=postgres://postgres:asdf@localhost:5432/ebdb?sslmode=disable
Change DATABASE_URL to connect to your local DB (it could be an empty db)
Your job is to create the routes, handler functions and db changes in order for the test to pass.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: