-
Notifications
You must be signed in to change notification settings - Fork 0
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
prevent tags from being separated inbetween #34
Conversation
@felixschurk Thanks for the contribution, however, there are some issues with the test suite that need to be addressed before merging. Also, I was not able to reproduce your issue with a test, unfortunately. Can you provide more information on that?
|
@lauft $ task add testtask +new
Created task 78.
$ task 78 start
Starting task ea8efca9 'testtask'.
Started 1 task.
on-modify.dump
Tracking e n testtask
Started 2023-12-01T09:36:56
Current 56
Total 0:00:00
You have more urgent tasks. where the corresponding dump with the original script then looks like {"description":"testtask","entry":"20231201T083449Z","modified":"20231201T083558Z","status":"pending","uuid":"ea8efca9-97d3-42e5-8cf3-dfff34a30924","tags":["new"]}
{"description":"testtask","entry":"20231201T083449Z","modified":"20231201T083558Z","status":"pending","uuid":"ea8efca9-97d3-42e5-8cf3-dfff34a30924","tags":"new","start":"20231201T083656Z"} when adding another tag such as {"description":"testtask","entry":"20231201T083449Z","modified":"20231201T084520Z","status":"pending","uuid":"ea8efca9-97d3-42e5-8cf3-dfff34a30924","tags":["new","test"]}
{"description":"testtask","entry":"20231201T083449Z","modified":"20231201T084520Z","status":"pending","uuid":"ea8efca9-97d3-42e5-8cf3-dfff34a30924","tags":"test,new","start":"20231201T084525Z"} |
tbabej/taskpirate#19 I now also stumbled that this is not a new issue, so the links are mainly for reference. |
@felixschurk Is the |
@lauft Hooks
System: Enabled
Location: /home/felix/.task/hooks
Active: on-add-pirate (executable)
on-modify-pirate (executable)
on-modify.timewarrior (executable)
Inactive: on-modify.dump (not executable) where the So my $ tree -L 2
.
├── default-time
│ ├── LICENCE
│ ├── pirate_add_default_time.py
│ ├── pirate_mod_default_time.py -> pirate_add_default_time.py
│ ├── __pycache__
│ └── README.md
├── on-add-pirate
├── on-modify.dump
├── on-modify-pirate
└── on-modify.timewarrior But to your question, at least when they are all working as I guess, when I modify a task only the |
@felixschurk Thanks for your reply and the references.
Of course, we should add tests for this as well: 🙂
At least until tbabej/taskpirate#19 and GothenburgBitFactory/tasklib#77 are resolved. |
Yes, that seems like the proper way of doing and dealing with it. Should I incorporate the changes from your last comment to update that PR, or should we delete this PR and you create one with the changes? |
@felixschurk Feel free to incorporate those changes 👍🏻 |
@lauft How can I locally set up the test and run them, based on the This is mainly as I would like to verify that it is running properly, before I push it online. |
@felixschurk To run the unit tests locally, do
If you want to run the end-2-end test as well, you will have to create a GitHub token first.
After that you can run an end-2-end test with the following command:
Although you could also let GitHub actions take over this part. 🙂 |
Thank you a lot for the detailed explanation, I managed to set it locally up and now also the GitHub actions are happy. |
I experienced that tags such as
+next
where separated as+n e x t
and thus the time tracking integration was not properly working.The PR just adds the brackets around the parsed output from task warrior and thus is able to iterate over the list as a whole and not over the independent characters.