You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is the behaviour of the existing verify_resource_properties function exactly what we want here?
be careful which object exactly (package properties vs resource properties on the package) we're updating when we merge the new resource properties into the old ones
The text was updated successfully, but these errors were encountered:
@lwjohnst86@signekb This should have occurred to me sooner but: a package can have multiple resources, so when we update/edit a resource, we only want that specific resource changed and not the others, right? For new resources we would still want to check that the resource doesn't already exist.
For this, we would need something unique to identify resources by. Earlier we decided we don't want to save our resource_id (i.e. the folder name) onto the resources in datapackage.json, so we can't really use that. The spec implies that the name field on resources is unique (it makes up foreign key references), so we could use that. Would we be happy with this?
Signature:
write_resource_properties(path: Path, properties: dict) -> Path:
Context: See diagram in the Core Python functions post.
Things to think about:
verify_resource_properties
function exactly what we want here?The text was updated successfully, but these errors were encountered: