• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bakito / adguardhome-sync / 25547414135
66%

Build:
DEFAULT BRANCH: main
Ran 08 May 2026 09:14AM UTC
Jobs 1
Files 30
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 May 2026 09:13AM UTC coverage: 65.636% (-0.8%) from 66.473%
25547414135

push

github

web-flow
feat(filters): granular sync control for filters (#816)

* feat(filters): granular sync control for blacklist, whitelist, and user rules  Closes #536

feat(filters): granular sync control for blacklist, whitelist, and user rules

Previously, filters were a single boolean feature flag that enabled or
disabled all filter synchronization together. This change breaks it into
three independent sub-flags, allowing users to control blacklist filters,
whitelist filters, and user rules independently.

Changes:
- Add `FiltersType` struct with `BlacklistFilters`, `WhitelistFilters`,
  and `UserRules` fields, replacing the single `Filters bool` field on
  `Features`
- Implement custom `UnmarshalYAML`, `UnmarshalJSON`, and `UnmarshalText`
  on `FiltersType` to maintain full backward compatibility: an existing
  `filters: true/false` scalar config value is automatically expanded to
  set all three sub-fields
- Split `actionFilters` sync logic to respect each sub-flag independently
- Add CLI flags: `--feature-filters-blacklist-filters`,
  `--feature-filters-whitelist-filters`, `--feature-filters-user-rules`
- Deprecate (hide) legacy `--feature-filters` flag; it still works and
  sets all three sub-fields for backward compatibility
- Update `config-schema.json` to accept `filters` as either a boolean
  (legacy) or an object with the three sub-properties
- Fix nil pointer dereference in `ToggleFiltering` call when
  `Enabled`/`Interval` pointers are nil
- Add `documentation` and `env` struct tags to the `Filters` field

Closes #536

* Go Lint Fix

* Repair deprecated flag and catch error

* Update error handling

AI isn't that reliable, huh.

* Add test

* Clarify deprecation message for filters flag

Update the deprecation text for config.FlagFeatureFilters in cmd/run.go to explicitly direct users to the new per-filter flags (--feature-filters-blacklist, --feature-filters-whitelist, --feature-filters-user-rules) instead of the previous vague guidance. This helps user... (continued)

61 of 116 new or added lines in 7 files covered. (52.59%)

2 existing lines in 1 file now uncovered.

1975 of 3009 relevant lines covered (65.64%)

0.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
43
58.82
-32.09% internal/types/features.go
6
65.43
-0.05% internal/config/flags.go
4
71.98
-0.24% internal/sync/action-general.go
2
53.17
-0.48% cmd/docs/main.go

Coverage Regressions

Lines Coverage ∆ File
2
71.98
-0.24% internal/sync/action-general.go
Jobs
ID Job ID Ran Files Coverage
1 25547414135.1 08 May 2026 09:14AM UTC 30
65.64
GitHub Action Run
Source Files on build 25547414135
  • Tree
  • List 30
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b0aa472e on github
  • Prev Build on main (#25302773927)
  • Next Build on main (#25573691747)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc