aminghadersohi commented on code in PR #37183:
URL: https://github.com/apache/superset/pull/37183#discussion_r2706610256


##########
superset/mcp_service/dashboard/tool/get_dashboard_info.py:
##########
@@ -40,6 +41,23 @@
 logger = logging.getLogger(__name__)
 
 
+def _get_permalink_state(permalink_key: str) -> Dict[str, Any] | None:
+    """Retrieve dashboard filter state from permalink.
+
+    Returns the permalink value containing dashboardId and state if found,
+    None otherwise.
+    """
+    from superset.commands.dashboard.permalink.get import 
GetDashboardPermalinkCommand
+
+    try:
+        result = GetDashboardPermalinkCommand(permalink_key).run()
+        # Convert TypedDict to regular dict for type compatibility
+        return dict(result) if result else None
+    except Exception as e:

Review Comment:
   done



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to