Add a fork relationship to the db seed #550
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Projects have a forking relation to each other in the DB, that is any project can refer to the a project it was forked from. however this relationship is not leverage in our seed data.
Edit
app/api/db/seed.jsto add a project that is "forked" from another to our seed data. For an example of how this is created see the functionforkProjectinapp/api/src/services/projects/projects.ts.For context the Primsa dosc might be useful and the schema that defines the forking relation ship is in
app/api/db/schema.prismaFollow the instructions in CONTRIBUTING.md but also running
yarn rw prisma db seedand than checking the data created when runningyarn rw prisma studioat http://localhost:5555/ is how you can check your work.Follow the instructions in CONTRIBUTING.md to get setup, and of course ask for help here or in the dev-help discord channel.
If you'd like to contribute the CadHub but this issue is taken or you'd prefer something else, have a look at #535 to see if there's something else you would like
Hi @Irev-Dev! I would like to take this one, if that's ok