Issue Summary
Error when adding MongoDB data source
Technical details:
When I added the MongoDB data source, the error "name‘db_connection’ is not defined "appeared. I found db_connection in the mongodb.py source code,
def test_connection(self):
db = self._get_db()
if not db.command("connectionStatus")["ok"]:
raise Exception("MongoDB connection error")
return db_connection[self.db_name]
I modified db_connection[self.db_name]—>db.db_connection[self.db_name]. Then it works.
- Redash Version:redash v8
- Browser/OS: Mac
- How did you install Redash: python3.8.2+nodejs