Add Turk-AdFilter to directory (ABP + Hosts variants)#5718
Merged
Conversation
Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add new list: Turk-AdFilter for Turkish ad blocking
Add Turk-AdFilter to directory (ABP + Hosts variants)
Jul 11, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the Turk-AdFilter blocklist to the Directory seed data and EF Core migrations, introducing both an Adblock Plus list and a Hosts/DNS variant with associated relationships (maintainer, language, syntax, tags, and view URLs).
Changes:
- Add two new
FilterListentries (Turk-AdFilter + Turk-AdFilter (Hosts)) with metadata (home/issues/submission URLs, license). - Add a new
Maintainerand wire up the new lists to language/syntax/tags/maintainer junction tables. - Add
FilterListViewUrlentries (primary GitHub raw + Codeberg mirror for ABP; GitHub raw for hosts) and include an EF Core migration + updated model snapshot.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/QueryDbContextModelSnapshot.cs | Updates model snapshot seed data to include the new lists and relationships. |
| services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20260711222048_AddTurkAdFilter.cs | Adds EF Core migration to seed new lists, maintainer, and junction/view-url rows. |
| services/Directory/data/Maintainer.json | Adds maintainer omerdduran (ID 216). |
| services/Directory/data/FilterListViewUrl.json | Adds view URLs for both variants (including a mirror for the ABP list). |
| services/Directory/data/FilterListTag.json | Adds tag relationships for both lists. |
| services/Directory/data/FilterListSyntax.json | Adds syntax relationships (ABP + hosts). |
| services/Directory/data/FilterListMaintainer.json | Adds maintainer relationships for both lists. |
| services/Directory/data/FilterListLanguage.json | Adds Turkish language relationships for both lists. |
| services/Directory/data/FilterList.json | Adds the two new filter lists with descriptive metadata and URLs. |
Comment on lines
+13318
to
13341
| { | ||
| "filterListId": 2859, | ||
| "tagId": 16 | ||
| }, | ||
| { | ||
| "filterListId": 2860, | ||
| "tagId": 2 | ||
| }, | ||
| { | ||
| "filterListId": 2860, | ||
| "tagId": 3 | ||
| }, | ||
| { | ||
| "filterListId": 2860, | ||
| "tagId": 6 | ||
| }, | ||
| { | ||
| "filterListId": 2860, | ||
| "tagId": 7 | ||
| }, | ||
| { | ||
| "filterListId": 2860, | ||
| "tagId": 16 | ||
| } |
Comment on lines
+61
to
+71
| { 2859, 2 }, | ||
| { 2859, 3 }, | ||
| { 2859, 6 }, | ||
| { 2859, 7 }, | ||
| { 2859, 16 }, | ||
| { 2860, 2 }, | ||
| { 2860, 3 }, | ||
| { 2860, 6 }, | ||
| { 2860, 7 }, | ||
| { 2860, 16 } | ||
| }); |
Comment on lines
+137
to
+140
| migrationBuilder.DeleteData( | ||
| table: "FilterListTag", | ||
| keyColumns: new[] { "FilterListId", "TagId" }, | ||
| keyValues: new object[] { 2859, 16 }); |
Comment on lines
+162
to
+165
| migrationBuilder.DeleteData( | ||
| table: "FilterListTag", | ||
| keyColumns: new[] { "FilterListId", "TagId" }, | ||
| keyValues: new object[] { 2860, 16 }); |
Comment on lines
+62271
to
+62272
| FilterListId = 2859, | ||
| TagId = 16 |
Comment on lines
+62296
to
+62297
| FilterListId = 2860, | ||
| TagId = 16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the community-maintained Turkish regional blocklist Turk-AdFilter by omerdduran, covering Turkey-specific ads, trackers, malware, phishing, and gambling domains not addressed by global lists.
New filter lists
New metadata
omerdduran→ https://github.com/omerddurantr, ID 161)Migration
EF Core migration
AddTurkAdFiltergenerated covering all inserts acrossFilterList,Maintainer,FilterListViewUrl,FilterListMaintainer,FilterListTag,FilterListLanguage, andFilterListSyntax.