Skip to content
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

Add privacy mode #258

Merged
merged 7 commits into from
Dec 27, 2016
Merged

Add privacy mode #258

merged 7 commits into from
Dec 27, 2016

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Dec 16, 2016

See https://discourse.pi-hole.net/t/privacy-mode-anonymize-logs/797/6

Changes proposed in this pull request:

  • Add privacy mode (permitted queries are not shown any longer)

@pi-hole/dashboard

@DL6ER DL6ER added this to the v2.1 milestone Dec 16, 2016
@DL6ER DL6ER changed the title [WIP] Add privacy mode Add privacy mode Dec 22, 2016
@PromoFaux PromoFaux closed this Dec 23, 2016
@PromoFaux PromoFaux reopened this Dec 23, 2016
@PromoFaux
Copy link
Member

The info box suggests that all entries will be shown in the query log regardless of wether this setting is toggled or not.

image

if(($status === "Pi-holed" && $showBlocked) || ($status === "OK" && $showPermitted))
// Display blocked queries if $showBlocked is set
// Display permitted queries if $showPermitted is set and $privacyMode is disabled
if(($status === "Pi-holed" && $showBlocked) || ($status === "OK" && $showPermitted && !$privacyMode))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're not showing any queries, it would be faster to immediately return an empty array than to parse through all the queries.

@DL6ER
Copy link
Member Author

DL6ER commented Dec 27, 2016

@PromoFaux I fixed that.

@AzureMarker
Copy link
Contributor

AzureMarker commented Dec 27, 2016

Approved

Approved with PullApprove

@DL6ER
Copy link
Member Author

DL6ER commented Dec 27, 2016

Waiting for codacy

@DL6ER DL6ER merged commit 25f0369 into devel Dec 27, 2016
@DL6ER DL6ER deleted the privacymode branch December 27, 2016 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants