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

   ### Bug description
   
   Essentially when re-importing chart (owned by Superset Admin) as gamma role 
user, gamma user can take complete ownership of the admin owned chart. Seems 
like a bug because it doesnt allow gamma user to change ownership in Edit 
properties for the admin chart. Explained the steps to reproduce below. 
   
   ### How to reproduce the bug
   
   1. Following charts show when a Gamma role user is logged in. Some are owned 
by Superset Admin identified by ADMIN.CHART and some owned by the Gamma user.
   
![1](https://github.com/user-attachments/assets/3b145892-6355-4560-9ffd-e069dff47bdf)
   2. Logged in as a Gamma user (Gamma role assigned). ADMIN.CHART2 is owned by 
Superset Admin. If I try to change the ownership and add Gamma User to it, it 
throws error.
   
![2](https://github.com/user-attachments/assets/11030bfe-38ce-408b-a9ed-0a649c1a93c9)
   3. Take export of ADMIN.CHART2. Import it back in. Overwrite to Confirm. 
Notice ownership now shows both Superset Admin and Gamma User.
   
![3_afterImport](https://github.com/user-attachments/assets/e72d2139-4377-4b24-ba65-467d8a4f1e6a)
   4. Furthermore, I can now remove Superset Admin as the owner and also add 
other Gamma users as owners.
   Shows undefined at first and when refreshed show ownership has changed.
   
![4](https://github.com/user-attachments/assets/6a42f745-6fe1-457f-a204-07a253008930)
   
![5_ownershipChanged](https://github.com/user-attachments/assets/7d3f1700-b459-4c31-b01c-5a349d813781)
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   4.0.2
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### 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: [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