Closed fvalentiner closed 5 months ago
I can help
I can help
Great! What's you user here? https://community.sphinx.chat/p
@jordan-ae
@fvalentiner its Mandela on Sphinx
Hi @fvalentiner, may I handle this task if @jordan-ae doesn't wish to work on it?
Hi @jordan-ae are you working on this task? @fvalentiner if @jordan-ae working on it then its great otherwise I am awailable for this task as i have no any other task.
@fvalentiner Could i take this one if @jordan-ae not want to continue with that?
Hi @fvalentiner @elraphty Could you please confirm is this enpoint is in used at frontend side
Becuase Cypress tests are going to be pass only this endpoint as I change the url cypress tests are going to be failed.
@fvalentiner @elraphty Could you please update from frontend side becuase this endpoint is used at frontend side due to which when i change this url then cypress are going to be failed "/features/forworkspace/{workspace_uuid}"
@MahtabBukhari leave the old endpoint for now
@fvalentiner I have implemented the new endpoint and old one is also present. The benefit is that when we update the url from front-end then no cypress issue Will accor and we can delete the old endpoint when needed later.
Context
Step 1 Modify the endpoint url from
/features/forworkspace/{workspace_uuid}
to
workspaces/{workspace_uuid}/features
Step 2 Add endpoint for
DELETE /features
Design
clone branch https://github.com/stakwork/sphinx-tribes/tree/feature-add-features-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)
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
The bounty for this is: https://community.sphinx.chat/bounty/1926