reynoldmorel opened a new pull request, #37229:
URL: https://github.com/apache/superset/pull/37229

   <!---
   Please write the PR title following the conventions at 
https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   
   This PR improves how metric names are displayed in chart tooltips by 
refining the column name matching logic for forecast series. The changes 
enhance forecast utility functions to better handle field name translation to 
human-readable labels, add clearer documentation for the verbose name 
resolution process, and introduce a lightweight test fixture to reduce test 
maintenance overhead.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   BEFORE
   
   <img width="211" height="247" alt="metric_label_bug" 
src="https://github.com/user-attachments/assets/5fb6ee08-8cd8-447b-8769-dc5a211912a7";
 />
   
   AFTER
   
   
https://github.com/user-attachments/assets/fc4a6032-1170-4034-af55-e37ef7e25c30
   
   ### TESTING INSTRUCTIONS
   
   1. Create a dataset
   2. Create a metric in the dataset
   3. Add a label for the metric
   4. Create a chart with the metric (line chart for example)
   5. Add a time comparison for the chart
   6. Make sure tooltips are enabled for the chart
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [x] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


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