Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't assume dataset.product.id exists when adding a new dataset #5

Open
Ariana-B opened this issue Sep 2, 2024 · 0 comments
Open

Comments

@Ariana-B
Copy link

Ariana-B commented Sep 2, 2024

Dataset insertion depends on dataset.product.id to retrieve the metadata type id. But Product.id is optional and might be none, making the insert fail even if the product is valid and exists in the database. datacube.index.datasets.add should account for this and not error if the product can be found by name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant