-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Show puppetdb connection error message on homepage #692
Show puppetdb connection error message on homepage #692
Conversation
Codecov Report
@@ Coverage Diff @@
## master #692 +/- ##
==========================================
- Coverage 86.29% 85.93% -0.37%
==========================================
Files 19 19
Lines 1051 1059 +8
==========================================
+ Hits 907 910 +3
- Misses 144 149 +5
Continue to review full report at Codecov.
|
This implementation is definitely an improvement, but if you would use the error handlers feature from Flask then it would work on any view, not just the Overview. Have you thought of that, @ArthurWuTW? |
At first I wanted to make the minimal change to achieve those improvements for Overview only, but the error handler feature looks nice, I will check it out and give it a try :) I'm new to codecov, what is the check of "codecov/project" for? it failed but I'm not really sure what the problem is... |
Oups, I have really forgotten about it... Well, anyway, it's great that we can achieve what we want with the minimal amount of changes that we have in this PR. Can you also just please test if the Query view still behaves like it did? It's the only screen where we expect to return 400 or 404 in a normal day-to-day use, when a user enters an invalid query or it returns zero results. Please see #653 for a reference, if needed. If we still show the user-friendly messages there then I think we can merge and release this. |
before this commit 71afad4, when 0 nodes, Query was like... if we need to be able to query when 0 nodes, we need to add the same condition to skip env_check as Overview, and Query behaves as normal. |
Thanks @ArthurWuTW, I think we are good to go with this now. :) |
Able to show error message on homepage when puppetdb connection failed.

Able to show 0 nodes on homepage without any agents yet.
