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 Endpoints for Workspace Repositories #1624

Closed
3 tasks
fvalentiner opened this issue Apr 30, 2024 · 2 comments · Fixed by #1631
Closed
3 tasks

Add Endpoints for Workspace Repositories #1624

fvalentiner opened this issue Apr 30, 2024 · 2 comments · Fixed by #1631
Assignees
Labels

Comments

@fvalentiner
Copy link
Contributor

Context

We have a new requirement for endpoints to manage repositories in workspaces

New endpoints:
/workspaces/repositories
/workspaces/repositories/{uuid} workspace uuid

Add Table to DB:
workspace_repositories

uuid (text)
workspace_uuid (text)
name (text)
url (text)
created (datetime)
updated (datetime)
created_by (text)
updated_by (text)

Design

  1. clone branch features-add-repos-to-workspaces
    https://github.com/stakwork/sphinx-tribes/tree/feature-add-repos-to-workspaces

  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" 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.

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
@MirzaHanan
Copy link
Contributor

MirzaHanan commented Apr 30, 2024

Hi @fvalentiner,
Could you please assign me a task? I've already completed numerous tasks using Goland. #1584

@AbdulWahab3181
Copy link
Contributor

@fvalentiner Could You 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

Successfully merging a pull request may close this issue.

4 participants