vedantprajapati commented on PR #33040:
URL: https://github.com/apache/superset/pull/33040#issuecomment-2787191403

   > If you select four charts/dashboards with four different owners, does the 
UI here _overwrite_ the existing owners? Or display each of those owners 
(relevant to 1/4 assets) in the UI? Or does it allow you to select and _upsert_ 
owners?
   
   it calls a put request for all of them. You'd have to be an owner and it 
would overwrite the existing owners with what you define. 
   
   ```
      Promise.all(
         selected.map(item => {
           const url = `/api/v1/${resourceName}/${item.id}`;
           const payload = {
             owners: owners.map(owner => owner.id),
           };
           return SupersetClient.put({
             url,
             headers: { 'Content-Type': 'application/json' },
             jsonPayload: payload,
           });
         }),
       )
       ```
   


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