pepkit / pepdbagent

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

Adding a "Description" field #28

Closed nleroy917 closed 1 year ago

nleroy917 commented 1 year ago

This might belong in the anno column, but for the purposes of pephub and the pephub UI, it would be nice to give people the option to add a description to the PEP describing the data it describes (that's odd to think about - very meta). Maybe something about pipelines its compatible with, etc.

Example form: image

khoroshevskyi commented 1 year ago

you can use it like that

conn.upload_project(name="b12321", anno={"description": "..."}

And if you want to retrieve this description:

get_project_annotation_by_registry(reg="fff")["anno_info"]["description"]

Thoughts: We can create new class that will work only with annotations, so It will be easier to change everything there and retrieve the data

khoroshevskyi commented 1 year ago

Fixed

nleroy917 commented 1 year ago

Fantastic