feat: add --producer-list to allow multiple producers TDE-781 #531
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds
--producer-list
argument tocollection_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).