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

   ## SUMMARY
   
   Add the `datasource` field to the `form_data` returned by 
`generate_explore_link` for consistency with `generate_chart`.
   
   This field (e.g., `"1__table"`) is needed by external clients (chatbots, 
etc.) to properly render charts using the form_data.
   
   ### Changes
   - Add `datasource` field to `generate_explore_link` response's `form_data`
   - Format: `"{dataset_id}__table"` (e.g., `"1__table"`)
   
   ### BEFORE/AFTER
   
   **Before:**
   ```json
   {
     "form_data": {
       "viz_type": "echarts_timeseries_bar",
       "x_axis": "ds",
       "metrics": [...]
     }
   }
   ```
   
   **After:**
   ```json
   {
     "form_data": {
       "viz_type": "echarts_timeseries_bar",
       "x_axis": "ds",
       "metrics": [...],
       "datasource": "1__table"
     }
   }
   ```
   
   ### TESTING INSTRUCTIONS
   
   1. Call `generate_explore_link` MCP tool with a valid dataset and chart 
config
   2. Verify the response `form_data` contains a `datasource` field with format 
`"{dataset_id}__table"`
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration
   - [x] 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