fix(views): skip checks if value isn't iterable#168
fix(views): skip checks if value isn't iterable#168alpden550 wants to merge 3 commits intomwarkentin:mainfrom
Conversation
|
@alpden550 thanks for the PR, just wanted to let you know that I'm on vacation through august so won't have a chance to merge / release this for a while. |
|
@mwarkentin ok, thank you! |
|
@alpden550 really sorry about not getting back to this after I came back online - I'm working on pulling some things together for a new releases and was wondering if you're still interested in getting this change in? It would be helpful if you'd be available to test a preview release or answer any questions I run into. Let me know! :) |
|
@mwarkentin |
|
@alpden550 just in case I have some trouble trying to reproduce / test the fix, etc. |
|
@mwarkentin of course |
|
@alpden550 I'm trying to reproduce the issue on I'm testing on the sample project which can be run in docker using I added a Redis cache backend, but am not running Redis: ❯ g diff
diff --git a/sample_project/requirements.txt b/sample_project/requirements.txt
index c60fab3..c7472e0 100644
--- a/sample_project/requirements.txt
+++ b/sample_project/requirements.txt
@@ -1,4 +1,5 @@
django<5.0,>=4.0
+redis==4.1.0
# django-watchman
-e /app
diff --git a/sample_project/sample_project/settings.py b/sample_project/sample_project/settings.py
index b4438d6..e257a4c 100644
--- a/sample_project/sample_project/settings.py
+++ b/sample_project/sample_project/settings.py
@@ -108,6 +108,13 @@ AUTH_PASSWORD_VALIDATORS = [
},
]
+CACHES = {
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.redis.RedisCache',
+ 'LOCATION': 'redis://127.0.0.1:6379',
+ }
+}
+When I hit the dashboard I see: And the traceback: Any chance you could provide an example config which can help me reproduce this issue? |
|
@mwarkentin yes, I got it and reproduce for you. I use docker-compose containers, and if all services work, all fine. Example: My services like that, nothing specials But if Redis was stopped, this error happens |
|
Thanks, I'll give it another try to reproduce with what you've provided. |



Fix TypeError at /watchman/dashboard/
for dashboard view, when Redis or something else is down