This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new c1cbc334ad perf(dashboard): dashboard list endpoint returning large 
and unnecessary data (#29121)
c1cbc334ad is described below

commit c1cbc334ad25afecadbb8551e6e5fd1eb35ba2ea
Author: Stepan <[email protected]>
AuthorDate: Fri Jan 17 19:17:57 2025 +0300

    perf(dashboard): dashboard list endpoint returning large and unnecessary 
data (#29121)
    
    Co-authored-by: Michael S. Molina <[email protected]>
    Co-authored-by: Michael S. Molina 
<[email protected]>
---
 UPDATING.md                | 1 +
 superset/dashboards/api.py | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/UPDATING.md b/UPDATING.md
index 32183aa820..eca1acea29 100644
--- a/UPDATING.md
+++ b/UPDATING.md
@@ -34,6 +34,7 @@ assists people when migrating to a new version.
 - [31173](https://github.com/apache/superset/pull/31173) Modified 
`fetch_csrf_token` to align with HTTP standards, particularly regarding how 
cookies are handled. If you encounter any issues related to CSRF functionality, 
please report them as a new issue and reference this PR for context.
 - [31385](https://github.com/apache/superset/pull/31385) Significant docker 
refactor, reducing access levels for the `superset` user, streamlining layer 
building, ...
 - [31503](https://github.com/apache/superset/pull/31503) Deprecating python 
3.9.x support, 3.11 is  now the recommended version and 3.10 is still supported 
over the Superset 5.0 lifecycle.
+- [29121](https://github.com/apache/superset/pull/29121) Removed the `css`, 
`position_json`, and `json_metadata` from the payload of the dashboard list 
endpoint (`GET api/v1/dashboard`) for performance reasons.
 
 ### Potential Downtime
 
diff --git a/superset/dashboards/api.py b/superset/dashboards/api.py
index f4644e68c2..ab83a01d9d 100644
--- a/superset/dashboards/api.py
+++ b/superset/dashboards/api.py
@@ -193,9 +193,6 @@ class DashboardRestApi(BaseSupersetModelRestApi):
         "status",
         "slug",
         "url",
-        "css",
-        "position_json",
-        "json_metadata",
         "thumbnail_url",
         "certified_by",
         "certification_details",

Reply via email to