question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Task metadata inheritance bug

See original GitHub issue

What happened?

Ever since the 0.5 update, my dataviewjs snippet that gives me the list of actionable items returns a different result.

It appears as though the tasks do not inherit metadata from the page nor the parent tasks.

Before, I was able to have the following page:

[defer:: 2022-09-01]
- [ ] (a) this task is deferred till september
- [ ] (b) these though are until the 15th [defer:: 2022-09-15]
    - [ ] (c) pay credit card bill
    - [ ] (d) pay netflix bill

And the following would happen:

  • (a) would have task.defer == ‘2022-09-01’
  • (b), ©, and (d) would have task.defer == ‘2022-09-15’

This happens on all my devices: Windows PC, macbook pro, android phone and iPad.

Screen Shot 2022-06-09 at 9 02 09 AM

DQL

No response

JS

const pages = dv.pages('"todo/dataview test"')
const now = DateTime.now().set({ hour: 0, minute: 0 })
const actionable = pages
	.file
	.tasks
	.filter(t => !t.defer || now > dv.date(t.defer))
	.filter(t => !t.due || (
		!t.defer && now > dv.date(t.due).minus({ day: 7 })
	))
	.filter(t => !t.fullyCompleted)
	.sort(t => t.due || '3000-12-12', 'asc')

dv.taskList(actionable, true)

Dataview Version

0.5.31

Obsidian Version

0.14.6

Device

MacOS, iPad, Android phone

OS

macOS 12.3.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
blacksmithgucommented, Jun 10, 2022

More specifically, task inheritance from the parent file is only a Dataview feature - for DataviewJS, you should use

.mutate(t => t.defer = t.defer ?? dv.page(t.path).defer)
0reactions
AB1908commented, Jun 28, 2022

Seems it’s not an issue then. I’ll go ahead and close it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Migration Manager - Microsoft 365
This article describes how to resolve issues and errors you may experience when using Migration Manager for file share migration. Prerequisites ...
Read more >
Task metadata endpoint version 4 - Amazon Elastic Container ...
Enabling the task metadata endpoint. The environment variable is injected by default into the containers of Amazon ECS tasks launched on Amazon EC2...
Read more >
Refit inheritance misses methods - Stack Overflow
1. Looks like a bug. Interface inheritance works only if all interfaces are located in one project · 2. this is an open...
Read more >
SharePoint Online: PowerShell to Break Folder Permission ...
Breaking permission inheritance is a common task performed on SharePoint Online resources such as sites, lists, and list items.
Read more >
Sharing Inheritance Limits and Considerations - Salesforce Help
The security metadata (predicates and descriptors) of a Salesforce object is subject to the same risk of drift. Did this article solve your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found