Blocks with the same property key as their parent don't show up on queries (advanced and simple)

Reported on Github: Blocks with the same property key (but different value) as their parent don't show up on queries (advanced and simple) that match all values (incl. empty) · Issue #3390 · logseq/logseq · GitHub

  • Describe the bug
    • Blocks with the same property key (but different value) as their parent don’t show up on queries (advanced and simple) that match all values (incl. empty)
  • What steps did you take before seeing the bug? The more specific, the better.
    • Created a block. Set property typee:: book
    • Created a child block. Set property typee::article
    • Created a two queries
      • {{query (property typee)}}
      • #+BEGIN_QUERY
        {:title "All typees"
        :query [
        :find (pull ?b [*])
         :where
          [?b :block/properties ?props]
          [(get ?props :typee) ?typee]
        ]
        }
        #+END_QUERY
        
    • Just one match: the parent
    • If I indent the second block underneath a new´one, so that it becomes a grandchild (or further indent it) of the first block, both queries work.
    • Both queries also work if the blocks are not descendents.
  • What did you expect to happen?
    • Both queries would match 2 results
  • What was the technical context (i.e. what version of software, browser, operating system, etc.)
    • On Widnws 10, using the desktop ap, v. 0.51
  • Please attach any images or files that can help us reproduce (screenshots, screenshares, etc.)