YA-MSH opened a new issue, #24525:
URL: https://github.com/apache/superset/issues/24525

   When I open a dashboard in "EDIT" mode and make a change, "SAVE" function 
doesn't work.
   
   #### How to reproduce the bug
   
   1. From Home, create a new dashboard
   2. At this time "SAVE" button is unavailable (-> grey)
   3. Do any change (rename title, add a chart or layout element)
   4. "SAVE" button becomes available (-> blue)
   5. Clic on "SAVE" button
   
   ### Expected results
   
   The modified dashboard is saved and a success message is displayed.
   
   ### Actual results
   
   Dashboard is not saved and an error message is displayed :
   "Sorry, there was an error saving this dashboard: [object Object]"
   
   In Flask logs:
   ```
   --Logs after "SAVE" in "EDIT DASHBOARD" mode => warning + response code 400
   2023-06-26 15:35:26,358:DEBUG:superset.stats_logger:[36m[stats_logger] 
(incr) DashboardRestApi.put.warning[0m
   2023-06-26 15:35:26,358:DEBUG:superset.stats_logger:[36m[stats_logger] 
(timing) DashboardRestApi.put.time | 6.051858072169125 [0m
   2023-06-26 15:35:26,358:INFO:werkzeug:127.0.0.1 - - [26/Jun/2023 15:35:26] 
"[31m[1mPUT /api/v1/dashboard/1 HTTP/1.1[0m" 400 -
   
   --Logs after renaming title" from "Dashboard properties" panel => success + 
response code 200
   2023-06-26 15:48:22,248:DEBUG:superset.stats_logger:[36m[stats_logger] 
(incr) DashboardRestApi.put.success[0m
   2023-06-26 15:48:22,248:DEBUG:superset.stats_logger:[36m[stats_logger] 
(timing) DashboardRestApi.put.time | 16.117947991006076 [0m
   2023-06-26 15:48:22,249:INFO:werkzeug:127.0.0.1 - - [26/Jun/2023 15:48:22] 
"PUT /api/v1/dashboard/1 HTTP/1.1" 200 -
   ```
   
   #### Screenshots
   
   
![Superset_save_dashboard_error](https://github.com/apache/superset/assets/137871159/c1eab4a2-1ad9-45da-bf40-2cc6dd77cbc0)
   
   ### Environment
   
   - browser type and version: Firefox 102.12.0esr or Edge 114.0.1823.58
   - superset version: Superset 2.1.0
   - python version: Python 3.10.6
   - node.js version: v12.22.9
   - any feature flags active: none
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [X] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [X] I have reproduced the issue with at least the latest released version 
of superset.
   - [X] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   Issue occurs only with "EDIT DASHBOARD" mode, after opening an existing 
dashboard or directly next creation of new dashboard from home.
   Some other actions on dashboards work fine:
   - Rename dashboard in "Dashboard properties" panel from home or dashboard 
list (without "EDIT DASHBOARD" mode)
   - Add a chart to a dashboard (existing or new) in "Save chart" panel
   


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