-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
Query Log: Remember last selected "Show X entries" #764
Conversation
Signed-off-by: DL6ER <[email protected]>
Signed-off-by: DL6ER <[email protected]>
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/load-blacklist-from-network-drive-set-querylog-to-all/10030/9 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/ftl-always-show-all-in-the-query-log/2580/5 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/recent-queries-remember-number-of-entries-to-show/4220/3 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/web-interface-settings-for-the-query-log-page/6114/6 |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/save-settings-in-adminpanel/34364/2 |
This does not work with Chrome Browser. You can set the Query Log to show 100 entries, but after a couple hours of not visiting the Pi-hole web interface it is reset to its default value 10. I checked the localStorage in Chrome and it seems to be set correctly. I don't know why it gets lost... An option in the Pi-hole web interface to set this value (or better for all possible locations where you can alter the amount of visible lines) would be really nice. Or at least set the default to 100. Only 10 entries is today really not useful if you have more than 2 DNS clients on your network. |
Thanks for your report. I could verify the behavior. I guess the reason is that we don't set |
Could you try if
fixes the issue for you? You can go back to master anytime by |
Thanks! I'll try it. |
Hmm, I am using the Docker image. This unfortunately not work there:
|
Yes, this does not work on docker. |
Seems to be working now with this version. Finally! :-) |
That tag is for a specific fix in FTL, and will be deleted - so keep that in mind! It works because that tag also pulls in the |
By submitting this pull request, I confirm the following:
git rebase
)git commit --signoff
)What does this PR aim to accomplish?:
See title and animation:
How does this PR accomplish the above?:
We use the
localStorage
API of HTML5 to store the last configuration (number of entries to be shown, etc.) in the local storage of the client's browser. ThelocalStorage
object stores the data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or yearDifferent users can use the same Pi-hole with different preferred settings as their settings are stored by the user's browser locally. This information is never transferred to the server (unlike, e.g., cookie).
What documentation changes (if any) are needed to support this PR?:
None