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

feat: add --producer-list to allow multiple producers TDE-781 #531

Merged
merged 5 commits into from
Jul 4, 2023

Conversation

ajacombs
Copy link
Contributor

@ajacombs ajacombs commented Jul 3, 2023

Adds --producer-list argument to collection_from_items.py to allow passing multiple producers to the STAC metadata.

There is a slight change to how both --licensor-list and --producer-list are handled, which resolves what I think is an edge case that is currently not handled.

Currently, if --licensor-list is passed a value without ;, and --licensor is not passed, the output STAC file will include { "name": null, "roles": ["licensor"] }. This PR fixes that, so that it will just not be present in the output.

Alternatively, it could be included as a single un-split item by removing the and ";" in arguments.licensor_list checks.

Edit: Which now that I've looked at where it's used in the standardising workflow I see would never eventuate in practice, as --licensor gets a default value of "Unknown" so --licensor is never not passed a value as the script is used in the standardising workflow (though could be if used elsewhere).

@ajacombs ajacombs requested a review from a team as a code owner July 3, 2023 02:24
paulfouquet
paulfouquet previously approved these changes Jul 3, 2023
blacha
blacha previously approved these changes Jul 3, 2023
@amfage amfage added this pull request to the merge queue Jul 4, 2023
Merged via the queue into master with commit 0a28d6f Jul 4, 2023
@amfage amfage deleted the feat/producer-list branch July 4, 2023 03:16
@github-actions github-actions bot mentioned this pull request Jul 4, 2023
github-merge-queue bot pushed a commit to linz/topo-workflows that referenced this pull request Jul 4, 2023
Adds `--producer-list` to the standardising workflow, as implemented by
linz/topo-imagery#531.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants