akashpal-21 / org-roam-utilities

Some utilities to use alongside org-roam
GNU General Public License v3.0
1 stars 1 forks source link

+org-roam-node-list #2

Closed dmgerman closed 2 months ago

dmgerman commented 2 months ago

don't silently remove slots without a mapping

in "cl-remove-if 'null".

raise an error instead. If a column does not exist, it is most likely an error.

akashpal-21 commented 2 months ago

It was originally intended to remove the nil generated from the &optional in the slot list - as a side effect it silently removes any wrongly set slot.

if we have (id &optional file-title) and so on - here id, &optional and file-title will be checked in the mapping -- the &optional will return a nil nevertheless and we should silently remove this. This is just a required processing logic.

We can raise an error for other types of mismatch but this will increase the code complexity - i suspect it is not worth warning the user here - the user would be automatically made aware that they have done a typo when they try to use the required accessor function to access the slot.