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

Add Bounties to Phase [feature-add-bounty-to-phase] #1662

Closed
3 tasks
fvalentiner opened this issue May 21, 2024 · 5 comments
Closed
3 tasks

Add Bounties to Phase [feature-add-bounty-to-phase] #1662

fvalentiner opened this issue May 21, 2024 · 5 comments
Assignees
Labels

Comments

@fvalentiner
Copy link
Contributor

fvalentiner commented May 21, 2024

Context

Bounty: https://community.sphinx.chat/bounty/1980

We have a new requirement to add a property phase_uuid and phase_priority to bounties in order to relate them to phases within features.

Here is an schematic on the object relations:
image

Modify Endpoints:
POST /gobounties/
GET /gobounties/all

New endpoints:
GET /features/{feature_uuid}/phase/{phase_uuid}/bounty

Add columns to bounty Table in DB:

phase_uuid (text) null
phase_priority (int) null

Design

  1. clone branch
    https://github.com/stakwork/sphinx-tribes/tree/feature-add-bounty-to-phase

  2. Make sure you are running posgresql locally

  3. 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)
4. Run "go run ." to run the backend API that connects to the DB and creates the objects
5. Open a new terminal window and run "npx cypress run --spec 'cypress/e2e/07_add_bounty_to_phase.cy.ts' " this starts to run the tests
image

Your job is to create the routes, handler functions and db changes in order for the test to pass. If you find any issues or typos in the cypress tests please let the creator of the issue know.

Before committing your changes make sure the cypress tests pass.

Acceptance Criteria

  • Tests are passing using "npx cypress run --spec 'cypress/e2e/07_add_bounty_to_phase.cy.ts'"
  • I have rebased and tested locally before submitting my PR
  • I can submit a pr within 2 days of taking the bounty
@Vayras
Copy link
Contributor

Vayras commented May 21, 2024

@fvalentiner can you please assign this issue to me?, Thanks

@saithsab877
Copy link
Contributor

saithsab877 commented May 21, 2024

@fvalentiner please assign me? My sphinx name is Abubakar

@MahtabBukhari
Copy link
Contributor

MahtabBukhari commented May 21, 2024

@fvalentiner could you please assign me?

@AbdulWahab3181
Copy link
Contributor

AbdulWahab3181 commented May 21, 2024

@fvalentiner Could you please assign me?

@aliraza556
Copy link
Contributor

Hi @fvalentiner, Please assign me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

No branches or pull requests

6 participants