ktmud commented on a change in pull request #11222:
URL: 
https://github.com/apache/incubator-superset/pull/11222#discussion_r504352701



##########
File path: superset/views/core.py
##########
@@ -1645,19 +1645,16 @@ def dashboard(  # pylint: disable=too-many-locals
             request.args.get(utils.ReservedUrlParameters.EDIT_MODE.value) == 
"true"
         )
 
-        # Hack to log the dashboard_id properly, even when getting a slug
-        @event_logger.log_this
-        def dashboard(**_: Any) -> None:
-            pass
-
-        dashboard(
+        event_logger.log_with_context(

Review comment:
       Good catch! Did some refactor and added a couple of unit tests to make 
sure this doesn't slip through the cracks next time.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to