Open Trikolon opened 1 year ago
How do we divide the giant JSON file? I would imagine that we separate rules by Domains or CMPs and each domain or CMP will have one dedicated file.
I fear this might actually cause more issues because the sync script has to manually call and read the rules file. This approach would mean we need a batch way to get all rules or we would need to ping the repo over 1000 times a night which means we could get individual rules not loading or get flagged for repeatedly hitting github
It could simply clone the repo at that tag. The only info we need from the API is the latest tag.
I am using the rules list also in my FREE Browser (https://github.com/woheller69/browser) which ia available on F-Droid Banner blocking works great !
The big json is quite convenient. Just one download from a fixed URL... So if files are split for better maintenance - maybe the file with all rules could still be compiled by GitHub actions?
Currently the entire rule list is in one big JSON file. Moving rules to individual files would make reviewing and handling rules easier. This would require updating our sync-script and our validation CI.