vddavydova opened a new issue, #32835:
URL: https://github.com/apache/superset/issues/32835

   ### Bug description
   
   ### Description:  
   When switching between different chart types in Superset, duplicate measures 
are added unexpectedly. This issue occurs specifically when switching between a 
Line Chart and a Waterfall Chart.  
   
   ### Steps to reproduce:  
   1. Create a Line Chart and set up the X-Axis and a Measure (e.g., 
`SUM(goods_services_export)`).  
   
![Image](https://github.com/user-attachments/assets/ac8f49a5-2d19-4e2d-99a0-5cc6cc88105f)
   
   2. Change the chart type to Waterfall Chart. The selected measure is 
sometimes removed.  
   
![Image](https://github.com/user-attachments/assets/24b281de-b19b-4264-a9a4-cae31080ee31)
   
   3. Re-add the same measure (`SUM(goods_services_export)`) and build the 
chart successfully.  
   
![Image](https://github.com/user-attachments/assets/4453cfd4-6037-4bbb-a4a3-e618ee2892c9)
   
   4. Switch the chart type back to Line Chart. Now, the measure appears twice 
in the settings.
   
![Image](https://github.com/user-attachments/assets/6ae18ec9-ecb1-403b-b171-ccb13f28e192)
   
   5. If you continue switching between chart types (Line Chart → Waterfall 
Chart → Line Chart), new duplicate measures keep appearing. 
   
![Image](https://github.com/user-attachments/assets/e7e6ae22-9e75-4f2f-b7e2-a2f5dbdc7b9e)
    
   ### Expected behavior:  
   Switching between chart types should not result in duplicate measures. The 
selected measures should persist without being reset or duplicated.  
   
   ### Actual behavior:  
   - Measures are removed when switching to a Waterfall Chart.  
   - When switching back to a Line Chart, the measure is duplicated.  
   - Repeating the switch process keeps adding more duplicates.
   
   ### Environment:  
   - Database backend: ClickHouse
   
   ### Possible Cause:  
   It seems like the UI is not correctly handling measure persistence when 
switching chart types. Measures might not be properly reset or are being 
re-added instead of being retained.  
   
   ### Additional context:  
   This issue happens inconsistently, but once it starts, it continues with 
every switch between chart types.  
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   4.1.1
   
   ### Python version
   
   I don't know
   
   ### Node version
   
   I don't know
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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: notifications-unsubscr...@superset.apache.org.apache.org

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