alphapapa / alphapapa/org-ql

Dynamic block columns don't respect property inheritance

Aberta
#476 1 comentário 0 reações 1 responsável Reivindicada por @alphapapa Ver no GitHub
bug
Linguagem predominante
Emacs Lisp
Estrelas
1.6k
Forks
120
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### OS/platform

openSUSE Leap 15.6

### Emacs version and provenance

Emacs version 29.4
Installed via package manager

### Emacs command

KRunner -> "emacs"

### Org version and provenance

9.6.15 (built-in)

### org-ql package version and provenance

20240222.200

### Actions taken

Originally, the problem was noticed in a more complex setup where I am setting up meetings by pulling in a dynamic block with previous tasks per meeting attendee. Following a discussion with alphapapa on reddit, he came up with a simple reprex that I have expanded below to demonstrate the problem.

### Observed results

In the following example the query is respecting property inheritance of the CATEGORY property, but the shown column is not. The category column should show "food" for both filtered items.

```
# Local Variables:
# org-use-property-inheritance: ("CATEGORY")
# End:

#+begin: org-ql :query (property "CATEGORY" "food") :columns (heading ((property "CATEGORY") "category"))
| Heading | category |
|---------+----------|
| Food | food |
| Bread | |
#+end

* TODO Food
:PROPERTIES:
:CATEGORY: food
:END:
** TODO Bread
** TODO Fork
:PROPERTIES:
:CATEGORY: utensils
:END:
```

### Expected results

In the example posted above, the result should show "food" for both items in the category column.

```
#+begin: org-ql :query (property "CATEGORY" "food") :columns (heading ((property "CATEGORY") "category"))
| Heading | category |
|---------+----------|
| Food | food |
| Bread | food |
#+end
```

### Backtrace

_No response_

### Etc.

_No response_

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.