-
-
Notifications
You must be signed in to change notification settings - Fork 488
Description
What happened?
The implicit tags field on Tasks incorrectly parses some items that follow a # symbol but are not tags, such as the color in <mark style="background: #FFF3A3A6;">, as tags, in operations such as GROUP BY tags. Obsidian does not recognize these items as tags, so dataview should not either.
In fact, if using GROUP BY file.tags instead, the behavior is correct and no erroneous tags are invented, so the parsing error is specific to the implicit tags field on tasks. Does file.tags use some Obsidian API for getting tags that a task's tags field does not?
Found thanks to @claremacrae investigation of a similar issue in the Tasks plugin: obsidian-tasks-group/obsidian-tasks#929
Related: #1268 seems to find the same issue with dataviewjs.
DQL
Test case (found by @claremacrae on obsidian-tasks, wrapped in codeblock to display correctly on Github, remove the codeblock when copying)
- [ ] <mark style="background: #FFF3A3A6;">Make phone call 10:50 today</mark>
- [ ] [Enable preview feature #678](https://github.com/obsidian-tasks-group/obsidian-tasks)
- [ ] [Internal: Better abstraction for grouping of tasks · Discussion #920 · obsidian-tasks-group/obsidian-tasks · GitHub](https://github.com/obsidian-tasks-group/obsidian-tasks/discussions/920)
Incorrect results (test case above is grouped by erroneous items following # that are not tags)
TASK
FROM "path/To/Test/File"
GROUP BY tags
Correct results (all in same group, no tags)
TASK
FROM "path/To/Test/File"
GROUP BY file.tags
JS
/* https://github.com/blacksmithgu/obsidian-dataview/issues/1268 Issue # 1268 seems to have repro this in JS also. I did not test JS. */Dataview Version
0.5.41
Obsidian Version
0.15.8
OS
Windows