-
Notifications
You must be signed in to change notification settings - Fork 28
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
Serialize tags as list #78
base: develop
Are you sure you want to change the base?
Conversation
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.
Hey @xerus2000! I'd love to get this merged, though it really needs some tests before we can do so. Could you also check out my comment below?
Thanks so much!
tasklib/serializing.py
Outdated
@@ -173,12 +173,14 @@ def deserialize_annotations(self, data): | |||
return [TaskAnnotation(self, d) for d in data] if data else [] | |||
|
|||
def serialize_tags(self, tags): | |||
return ','.join(tags) if tags else '' | |||
return list(tags) |
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.
The point of the serialization is to turn the object into a string representation, so this should be cast as a string.
That said, I am not yet entirely convinced this would work (i.e. with older versions of the TW). Maybe we can revive travis @robgolding ?
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.
I have been using this branch for weeks with the latest taskwarrior version. The only issue that arose (#83) was due to me not knowing python well and is now fixed.
Why would we need to support old taskwarrior versions with new releases?
Reviving travis sounds good anyways though.
As detailed in tbabej/taskpirate#19 and #77 the bug this PR is fixing is biting people by silently corrupting data. What can we do to help land this fix? |
Fixes #77