Skip to content
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

task info shows tag_.. properties #3607

Closed
djmitche opened this issue Aug 27, 2024 · 3 comments · Fixed by #3619
Closed

task info shows tag_.. properties #3607

djmitche opened this issue Aug 27, 2024 · 3 comments · Fixed by #3619
Labels
good first issue Good for newcomers type:bug Something isn't working

Comments

@djmitche
Copy link
Collaborator

Taskwarrior stores tags as tag_<tagname> properties with a nonempty value x. The task info command should filter those out and just show the tags, but it does not.

✺ sofia ~/p/taskwarrior ⸨issue3605⸩
⸩ task add task with a tag +thetagvalue
TASKRC override: /home/dustin/p/taskwarrior/.taskrc
Created task 6.
✺ sofia ~/p/taskwarrior ⸨issue3605⸩
⸩ task 6
TASKRC override: /home/dustin/p/taskwarrior/.taskrc

Name             Value                                 
ID               6                                     
Description      task with a tag                       
Status           Pending                               
Entered          2024-08-26 21:49:35 (2s)
Last modified    2024-08-26 21:49:35 (2s)              
Tags             thetagvalue
Virtual tags     LATEST PENDING READY TAGGED UNBLOCKED 
UUID             f06b2b7f-a80c-4b79-bf4c-58a0d43d80dc
Urgency          0.8                                   
[tag_thetagvalue x]

    tags    0.8 *    1 =    0.8
                         ------
                            0.8

The [tag_thetagvalue x] line is the one that shouldn't be there. Just omtting properties beginning with tag_ should be sufficient to fix this issue.

@gagankonana
Copy link
Contributor

gagankonana commented Sep 9, 2024

@djmitche I raised a PR for this issue. Had a quick question, do we also want to omit properties beginning with "tags_"?

This is going to be my first-ever contribution to OSS!

@djmitche
Copy link
Collaborator Author

djmitche commented Sep 9, 2024

Oops, I just saw this question. My review on the PR answers it :)

@djmitche
Copy link
Collaborator Author

djmitche commented Sep 9, 2024

This is going to be my first-ever contribution to OSS!

😍

@github-project-automation github-project-automation bot moved this from Backlog to Done in Taskwarrior Development Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type:bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants