New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gravity: Check suitablility of sourced lists #3150
Conversation
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/encountered-non-critical-sql-warnings/28543/113 |
I'm not for this. It's not what we should be doing. |
|
I have to agree with Dan, but quality of the list is a user issue. There is no way intelligently policing a list of suspect sites for quality. Syntax checking I guess but validity that’s subjective. I’ve had to unblock sites because key tools use sites on blocked list so one persons garbage is another persons gold and is subjective. You cannot expect pi team to police these. “You” do it not them. Open source is about choice so choose wisely. |
I think perhaps just a |
Signed-off-by: DL6ER <dl6er@dl6er.de>
… as importing does only happen a bit later. Only show the number of invalid domains if there are invalid domains. Signed-off-by: DL6ER <dl6er@dl6er.de>
Okay, I changed it to
(that is: all importable)
(that means crap on the list, this is not really true in this example, just showcasing here) |
Code + PR description updated, what is your opinion @dschaper @PromoFaux @roja6969 ? |
The only changes I could see would be to say “# lines invalid” instead of “# domains” since it’s possible the bad entries won’t be domains. For things like Adblock lists that are css or html. |
@dschaper Do you want me to change this? Lists that are added should only contain domains. And these lines are invalid as domains so they can also be understood as invalid domains ;-) |
No, no need to change it and dismiss the approvals. Looks good to me. |
By submitting this pull request, I confirm the following:
git rebase
)What does this PR aim to accomplish?:
Improve gravity.
How does this PR accomplish the above?:
This all has been done in a performant way so I refrained from adding a switch for enabling it.
Exemplary output provided by a user on Discourse:
What documentation changes (if any) are needed to support this PR?:
None