mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: improve event logging for queries + refactor (#27943)
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
This commit is contained in:
committed by
GitHub
parent
83fedcc9ea
commit
cfc440c56c
@@ -144,8 +144,9 @@ class TestEventLogger(unittest.TestCase):
|
||||
assert logger.records == [
|
||||
{
|
||||
"records": [{"path": "/", "engine": "bar"}],
|
||||
"database_id": None,
|
||||
"user_id": 2,
|
||||
"duration": 15000.0,
|
||||
"duration": 15000,
|
||||
}
|
||||
]
|
||||
|
||||
@@ -191,6 +192,7 @@ class TestEventLogger(unittest.TestCase):
|
||||
"payload_override": {"engine": "sqlite"},
|
||||
}
|
||||
],
|
||||
"database_id": None,
|
||||
"user_id": 2,
|
||||
"duration": 5558756000,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user