Closed zelima closed 7 years ago
@zelima looks pretty accurate:
@rufuspollock this confused me a little bit.
PackageTag
at all? all the inf goes into Package
table correct?latest
behind the scenes? should we get rid of this action? PackageTag
table at all @zelima
So unless tag is explicitly set we are not touching PackageTag at all? all the inf goes into Package table correct?
Yes
Are not we actually tagging with latest behind the scenes? should we get rid of this action?
Yes, I'd get rid of this. "latest" is not a tag really. Think of git(hub) - "master" HEAD is not a tag - tags are things you have explicitly created.
I'm loosing the track of why do we need PackageTag table at all
How do you create tags? Read the user story again re tags: they are like git tags - a way to label (and make a copy) of the data package at a given point. We need somewhere to store that info.
BTW: it sounds like adding documentation about Tags/Versions to the main documentation explaining these ideas and the implementation could be useful.
FIXED. tags are explicitly created. Metadata is saved into Package table
Currently we are getting README and datapackage.json for package from
PackageTag
table. We have OneToMany relationship betweenPackage
andPackageTag
tables. We need them to get it directly from Package tableAcceptance Criteria
Tasks
Task list for a non-epic issue
Analysis
We want to have descriptor and readme columns in
Package
table as well,that will by default be same as latest updated tag inPackageTag
table.dpm publish
populates Package table only (with appropriate dp json and README) (tags column remains empty)dpm tag
populates PackageTag table only (tags column in Package table gets populated)dpm publish [tag]
publishes data under the given tag