-
Notifications
You must be signed in to change notification settings - Fork 4
Feature: Tag templates #164
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
Conversation
This reverts commit 0c579ae.
Codecov Report
@@ Coverage Diff @@
## release/0.1.19 #164 +/- ##
==================================================
+ Coverage 95.01% 95.11% +0.09%
==================================================
Files 55 58 +3
Lines 1626 1679 +53
==================================================
+ Hits 1545 1597 +52
- Misses 81 82 +1
Continue to review full report at Codecov.
|
skip_ci_tests
thclark
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the docstrings ;)
Code is great though!
| bucket_name=<bucket-name>, | ||
| path_in_bucket=<path/to/file/in/bucket>, | ||
| metadata={"tags": ["blah", "glah", "jah"], "cleaned": True, "id": 3} | ||
| metadata={"id": 3, "labels": ["blah", "glah", "jah"], "cleaned": True, "colour": "blue"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't the id a uuid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is for Identifiables but this is just metadata for any given file (this isn't a method of an Identifiable)
🙈 I should refer myself to the docstring doctor 👨⚕️ |
You should refer to yourself as the docstring vortex 🌪️ ;) |
Contents
New Features
Datafiles andDatasets labelableTaggablesTagSetwith key-value pairs in aTagDictTaggablemixin for providing the new tags interfaceFilterDict, allowing filtering of key-value pairs by their valuesFilterSet,FilterListandFilterDictonemethod?FilterContainersBreaking changes
twine.jsonfilesTaggablemixin toLabelablemixinTagclass toLabelclassTagSettoLabelSetFilterablesSerialisableloggerfield inSerialisable^[a-z0-9][a-z0-9_]*(?<!_)$^[a-z0-9][a-z0-9-]*(?<!-)$TagDictandLabelSetfrom filter containerstagsfield of cloud metadata againMinor improvements
filtersfield from manifest strand in twineskwargsinTaggable.add_tags_FILTERSET_ATTRIBUTEclass variablesLabelonstroctue-sdk-pythonversion to datafile metadataFilterContainerabstract classfilterandordermethods intoFilterContainerOctueJSONDecoderinSerialisableandGoogleCloudStorageClientdatetimeobjects to de/encodersGoogleCloudStorageClientmethodssetandUserStringencoding toOctueJSONEncoderOctueJSONDecodersetanddatetimedecoding toOctueJSONDecoderLabelSetadd_labelsmethod and addaddmethod toLabelSetFixes
OctueJSONDecoderLabelSetDependencies
twinedthat distinguishes tags from labelsTesting
Quality Checklist