-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Make the tables for TopClients & TopDomains behave like graph for ClientsOverTime #3072
Conversation
…ime depending on Privacy Level Signed-off-by: Michael Woolweaver <[email protected]>
Signed-off-by: Michael Woolweaver <[email protected]>
sorry for the 2 commits not sure how to squash them together from web not very familiar with git via cmd line. these changes have been tested locally and do work as intended. |
Personally, I think that it's fine like it is now after the most recent fix #3069. I seem to recall that it was indeed causing confusion before when the tables just "vanished" - it's now clear what is happening and users were anticipating some API failures. Having it like it is right now allows users to tell the "no data" situation apart from something broken in the API as the tables are neither simply empty or magically vanish altogether. On the contrary, I think the graph shouldn't simply vanish, either. |
Honestly i was just looking to get to some consistency in behavior. The 5 graphs should behave the same whichever is chosen. As it is they do not do this. |
This is a personal point of view, but I don't see why they "should" behave the same (my personal opinion). The previous PR (#3069) actually fixed the "infinity loading wheel", but there is nothing really broken in "Client activity over last 24" behavior. Note: |
my thought was they represent the same data (client activity) so the behavior would be the same. |
also worth noting is the following verbiage in the privacy settings:
i would assume disabled means "showing no data" instead of "not showing at all" there's also no mention of the Client activity over last 24 hours graph being disabled or disappearing |
Exactly. It disables the tables (they don't collect or show data), but it doesn't hide them. |
Thank you for your contribution to the Pi-hole Community!
Please read the comments below to help us consider your Pull Request.
We are all volunteers and completing the process outlined will help us review your commits quicker.
Please make sure you
What does this PR aim to accomplish?:
Make the tables for TopClients & TopDomains behave like graph for ClientsOverTime. Removes tables if there are no results (e.g. new installation or privacy mode enabled)
How does this PR accomplish the above?:
take the behavior found here on Line 28
web/scripts/pi-hole/js/index.js
Lines 26 to 31 in 60ca1c7
and adds it to the functions for TopClients on L296 & TopDomains on L355
Link documentation PRs if any are needed to support this PR:
By submitting this pull request, I confirm the following:
git rebase
)