youngkermit8-coder opened a new issue, #1670:
URL: https://github.com/apache/rocketmq-dashboard/issues/1670

   ### Description
   
   The Settings UI lets an administrator select `instanceIds` for a metrics 
data source, and the frontend sends those IDs to both create and update 
endpoints. `DataSourceVO` also persists the field, and metrics queries enforce 
it.
   
   However, `DataSourceDTO` does not declare or copy `instanceIds`. Jackson 
drops the submitted bindings before `SettingsService` receives the data source. 
A supposedly instance-scoped source is therefore stored as globally available.
   
   ### Reproduction
   
   1. Create or edit a metrics data source and select one or more applicable 
instances.
   2. Submit the form; the request body contains `instanceIds`.
   3. Inspect the `DataSourceVO` passed from `SettingsController` to 
`SettingsService`.
   4. Observe that `instanceIds` is `null`.
   
   ### Expected behavior
   
   Create and update requests must preserve the selected instance IDs in the 
`DataSourceVO` passed to persistence.
   
   ### Scope
   
   This issue only restores the missing request-to-domain mapping for existing 
instance bindings. It does not change binding enforcement or the globally 
available behavior of an empty list.
   


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

Reply via email to