Skip to content

Add duration serializer, deserializer #160

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

Closed
wants to merge 6 commits into from

Conversation

bergercookie
Copy link
Contributor

@bergercookie bergercookie commented May 29, 2022

Hi @ralphbean ,

This PR adds serdes functions for the Duration class. I decided to implement them in taskwarrior_syncall so I thought of pushing them to this project ^^

  • The format for the duration field is described albeit briefly, here

Additional changes:

  • fixes some failing doctests in warrior.py and also enabling checking the doctests as part of setup.cfg.
  • disables running pytest on the taskwarrior/ directory which is downloaded automatically during CI.
  • Enables make -j to speed up the CI process

@bergercookie bergercookie force-pushed the develop branch 3 times, most recently from 4991426 to bea58c8 Compare May 29, 2022 13:36
…ests under the cloned taskwarrior/ project during CI
@bergercookie bergercookie force-pushed the develop branch 3 times, most recently from 91e37f2 to 8e63c27 Compare May 29, 2022 14:52
…rk to handle values like "monthly" and "daily
@bergercookie
Copy link
Contributor Author

I hadn't realised that a duration field may be presented in formats other than the ISO8601, e.g., 1mo, daily, etc.

I would suggest that we keep this PR contained and handle these extra fields in a separate PR and line of work. For now I'm keeping the recur field as a StringField instead to avoid having to deal with this.

Unittests pass so it's ready to merge from my side. Thoughts?

@bergercookie
Copy link
Contributor Author

bergercookie commented Jun 1, 2022

@ralphbean, @coddingtonbear do you have some time to skim through this PR?

@bergercookie
Copy link
Contributor Author

Can I please get some eyes on this one ?
I would really like to get this merged as I'm using these features in https://github.com/bergercookie/taskwarrior-syncall/

@bergercookie bergercookie deleted the branch ralphbean:develop January 20, 2024 08:19
@bergercookie bergercookie deleted the develop branch January 20, 2024 08:19
bergercookie added a commit to bergercookie/syncall that referenced this pull request Jan 29, 2024
It's now part of the taskw_ng repo so we shouldn't make the serialization/deserialization twice
Effectively fixes the upstream issue: ralphbean/taskw#160
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.

2 participants