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
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/02_repositories.cy.ts'" this starts to run the tests
Your job is to create the routes, handler functions and db changes in order for the test to pass.
Make sure you handle cases where repository_uuid is empty, create a new uuid before saving.
Make sure you handle the logic for created, updated, created_by, updated_by fields for repositories
Before committing your changes make sure the cypress tests pass.
Acceptance Criteria
Tests are run "npx cypress run" and all the tests pass
I have rebased and tested locally before submitting my PR
I can submit a pr within 2 days of taking the bounty
The text was updated successfully, but these errors were encountered:
Context
We have a new requirement for endpoints to manage repositories in workspaces
Design
clone branch features-add-repos-to-workspaces
https://github.com/stakwork/sphinx-tribes/blob/feature-add-repos-to-workspaces-modify-delete
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)
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/02_repositories.cy.ts'" this starts to run the tests
Your job is to create the routes, handler functions and db changes in order for the test to pass.
Before committing your changes make sure the cypress tests pass.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: