Skip to content

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

@Ariana-B

Description

@Ariana-B

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions