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

use a dictionary of labels instead of a string for identifying sets #48

Merged
merged 1 commit into from
Oct 8, 2018

Conversation

bmabey
Copy link
Owner

@bmabey bmabey commented Oct 5, 2018

I'm not sure why we didn't think of this sooner. Instead of munging useful data into a string an artifact set now is identified by a label dictionary. This is a breaking API change but some convenience was added to still allow strings to be passed in and a {'name': string_passed_in} is used as the labels.

To see this and the related provenance_set decorator in action see the new tests:

https://github.com/bmabey/provenance/blob/set-labels/tests/provenance/test_core.py#L377-L386

https://github.com/bmabey/provenance/blob/set-labels/tests/provenance/test_core.py#L601-L617

@bmabey bmabey requested a review from scizo October 5, 2018 01:36
@bmabey bmabey merged commit 5091909 into master Oct 8, 2018
@bmabey bmabey deleted the set-labels branch October 8, 2018 21:14
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

Successfully merging this pull request may close these issues.

1 participant