pepkit / pepdbagent

Database for storing sample metadata
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Project versioning #23

Closed khoroshevskyi closed 2 years ago

khoroshevskyi commented 2 years ago

Do we want to allow pephub to host different versions/tags of the same project? It's quite late question, but still possible to add this functionality.

khoroshevskyi commented 2 years ago

After discussion with @nsheff , we have decided that it would be good to add tagcoulumn do db and PEPagent should handle it. Now table projects will have Composite Key: [namespace, name, tag]. If tag is not specified, default tag will be set. If composite key already exists, there will be two options: 1) update project(if update argument is True) 2) Thraw error (if update argument is False)

@nleroy917,right now I am working on it. If you will have any other suggestions let me know. Additionally, this changes can influence PEPhub.