Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 9, 2024
1 parent 88489c9 commit 4e2952e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion superset/utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def log_with_context( # pylint: disable=too-many-locals,too-many-arguments

payload = collect_request_payload()
if object_ref:
payload["object_ref"] = str(object_ref)
payload["object_ref"] = object_ref
if payload_override:
payload.update(payload_override)

Expand Down
2 changes: 2 additions & 0 deletions tests/integration_tests/event_logger_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def log(
assert logger.records == [
{
"records": [{"path": "/", "engine": "bar"}],
"database_id": None,
"user_id": 2,
"duration": 15000,
"object_ref": None,
Expand Down Expand Up @@ -192,6 +193,7 @@ def log(
"payload_override": {"engine": "sqlite"},
}
],
"database_id": None,
"user_id": 2,
"duration": 5558756000,
}
Expand Down

0 comments on commit 4e2952e

Please sign in to comment.