Bases: isEmpty is confusing / not intuitive

Steps to reproduce

obsidian-bases:

  1. Click on filter
  2. filter is:

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Show only the notes with the “promulgation” property “empty”.

Actual result

The notes with the “promulgation” property empty are displayed, but additionally, random notes that do not have the “promulgation” property are also shown.

Environment

SYSTEM INFO:
Obsidian version: v1.9.10
Installer version: v1.9.10
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

1 Like

This is not a bug because that’s what currently isEmpty does for Dates.

However, we may rework this aspect of Bases (Empty means and what isEmpty does) in the future.

Thank you for the quick response. I just noticed that the behavior of “is empty” is the same for the number property type; it shows not only notes but also files, which shouldn’t be displayed!

Now I tried to display all notes with the “promulgation” property using the advanced filter:

note["promulgation:"],

since with simple filtering it seems impossible and only shows notes with a non-empty promulgation property. I intuit that with the advanced filter, all notes with the property, whether empty or non-empty, should be displayed.

You should be able to use, in the filter GUI, something like:

file > has property > promulgation:

This should get all the notes where promulgation is present regardless of the values for that key :blush:

1 Like