publish-org-roam-ui icon indicating copy to clipboard operation
publish-org-roam-ui copied to clipboard

[feature request] tag filtering in generate_graphdata.js

Open hermanhel opened this issue 4 months ago • 0 comments

I think we can add some SQL to filter out some tags. This can prevent some nodes from being published, like personal projects, medical/health records and such.

A proposed solution is to

  1. have a list of filtered tags, probably in an json array such as {"tag-filtered":["private"]}, stored in a file in the repo like config.json.
  2. Said array would be read by generate_graphdata.js, and turned into a SQL filter clause to be inserted in a format function call to assemble some SQL query string now exist in generate_graphdata.js. Or else, depend on how tag filtering works in org-roam's sql database schema

Then as following site generation is based on graphdata.json, there should be no appearance of the filtered node whatsoever.

I have forgotten my SQL but I think it will be a quick one. I can work on it but it will be a while before I can make some time up for it.

hermanhel avatar Oct 12 '24 15:10 hermanhel