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

bakito / adguardhome-sync / 24947322682
66%
main: 66%

Build:
Build:
LAST BUILD BRANCH: renovate/github.com-go-faker-faker-v4-4.x
DEFAULT BRANCH: main
Ran 26 Apr 2026 03:33AM 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

26 Apr 2026 03:29AM UTC coverage: 65.591% (-0.9%) from 66.473%
24947322682

Pull #816

github

szhu25
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
Pull Request #816: feat(filters): granular sync control for filters

59 of 112 new or added lines in 5 files covered. (52.68%)

2 existing lines in 1 file now uncovered.

1971 of 3005 relevant lines covered (65.59%)

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.21
-1.02% internal/sync/action-general.go

Coverage Regressions

Lines Coverage ∆ File
2
71.21
-1.02% internal/sync/action-general.go
Jobs
ID Job ID Ran Files Coverage
1 24947322682.1 26 Apr 2026 03:33AM UTC 30
65.59
GitHub Action Run
Source Files on build 24947322682
  • Tree
  • List 30
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #816
  • PR Base - main (#24647973734)
  • 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