Giter Club home page Giter Club logo

Comments (10)

ralphbean avatar ralphbean commented on August 16, 2024

Yup. We should do that ;)

Instead of implementing this in bugwarrior, can we implement the changes in taskw so that everyone benefits? (There are other users of taskw out there).

Maybe we introduce it as an 'experimental' mode for taskw that we switch to the default some day.

from bugwarrior.

kostajh avatar kostajh commented on August 16, 2024

That seems like a good idea.

In using TW 2.2.0, it occurs to me that we might be able to use task merge to good effect. In theory, bugwarrior-pull could have its own TW task database at, for example, ~/.bugwarrior-tasks. bugwarrior-pull would add tasks to this database, and after adding tasks, could call task merge to merge the BW tracked tasks with the users local tasks. We could then call task push to push from the local tasks back to ~/.bugwarrior-tasks to keep everything in sync.

This may be simpler than a bunch of calls to task import and task export.

from bugwarrior.

linuxcaffe avatar linuxcaffe commented on August 16, 2024

That sounds like a clever approach. I suggested something similar for he
taskopen project, which I called "utility tasks". (see the examples folder
of the taskopen github)

from bugwarrior.

kostajh avatar kostajh commented on August 16, 2024

FYI I've started work on this here https://github.com/kostajh/bugwarrior/tree/task-merge.

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

Awesome!

FYI, there is one test failing for taskw. I updated the test suite to run the same set of tests for both the normal implementation and the experiemental implementation. Try pulling the latest there on the develop branch, run python setup.py test, and you'll see.

The old "normal" implementation and the new experimental implementation return dates formatted in an inconsistent way. That might need a patch.

from bugwarrior.

kostajh avatar kostajh commented on August 16, 2024

Yeah, I've noticed that. How do you think this should be handled?

On Apr 8, 2013, at 12:16 PM, Ralph Bean [email protected] wrote:

Awesome!

FYI, there is one test failing for taskw. I updated the test suite to run the same set of tests for both the normal implementation and the experiemental implementation. Try pulling the latest there on the develop branch, run python setup.py test, and you'll see.

The old "normal" implementation and the new experimental implementation return dates formatted in an inconsistent way. That might need a patch.


Reply to this email directly or view it on GitHub.

from bugwarrior.

kostajh avatar kostajh commented on August 16, 2024

Another problem I've noticed: if using TaskWarriorExperimental, the key for an annotation on an upstream_issue will never match a local task, because with TaskWarriorExperimental the timestamp for an annotation will be the time that the annotation was added, while Bugwarrior expects to be able to add precise annotation names (see __init__.py line 105).

This means that BW will always report that it is updating a task, because the annotation keys never match.

I'm not quite sure of the best way to handle this.

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

Yeah, I'm not sure. I tried messing with task annotate entry:some_date foo, but that modifies the entry date of the task (not the annotation like we need).

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

Just got confirmation from @pbeckingham that taskwarrior 2.2 can't do this yet. It will hopefully be included in taskwarrior 2.3.

In the meantime, maybe taskw can just ignore the annotation date in our 'experimental' mode.

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

Since we merged #67, I think we can close this issue. Please re-open if you disagree.

from bugwarrior.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.