Use correct name of the tag for filtering tasks#3
Conversation
|
Could you please explain about what usecase do we need this implementation? @joro75 |
|
When a task in TickTick is tagged with a tag that has one or more uppercase characters, the actual Searching for the tag 'AI_TickTick', which is shown in TickTick itself as 'AI_TickTick', will not be found as internally the tasks are tagged as 'ai_ticktick'. There is thus a difference between the This PR will do a check on the available tags and converts a tag-search which corresponds to the |
@joro75 If the lowercase is the problem, how about change label field to lower case? Do we have to check all the fields? |
|
I did some more checks. A 'label' can contain uppercase characters in TickTick, and the corresponding 'name' is (as far as I can see) always the lowercase representation of it. Creating a new tag with the same name and a different casing is not allowed in TickTick, as checks are included during the creation of a new tag to prevent that a duplicate tag name with a different casing is created. I however do not know if the 'name' is always exactly the same as the lowercase of the 'label'. It could be that there is some way to create a difference in this. I for example didn't test and verify this with the Turkish-I problem. |
If a tag is provided to the
ticktick_filter_taskstool, the name of the tag should be used for the actual filtering of the tags.Tags with uppercase letters are only the label of the tag, and is not the (TickTick internal) name of the tag itself.
This PR will lookup the correct name of the tag, based on the tag-string that is provided to the
ticktick_filter_taskstool.This will ensure that filter on the tag is working not matter if the tag-name or the tag-label is provided.