one-data-cookie opened a new issue, #24136:
URL: https://github.com/apache/superset/issues/24136

   API method `/api/v1/dataset/{pk}/refresh` overrides `columns.groupby` and 
`columns.filterable` to `true` regardless of their settings. Surprisingly, this 
doesn't happen when the same is triggered from UI.
   
   #### How to reproduce the bug
   
   1. Create/Use a dataset with columns that have `Is filterable` and/or `Is 
dimension` unticked
   2. Sync columns from source (to see it working from UI)
   3. Call `/api/v1/dataset/{pk}/refresh` on given dataset (to see it _not_ 
working via API)
   
   ### Expected results
   Columns are kept untouched (provided there is no change to the underlying 
query/data, ofc, no matter from where the refresh is triggered.
   
   ### Actual results
   `filterable`/`Is filterable` and `groupby`/`Is dimension` are changed to 
`true`
   
   #### Screenshots
   
   Before anything.
   
![image](https://github.com/apache/superset/assets/57877739/3b3b8f44-4375-45f8-9871-7ba4dd5b0eb4)
   
   After refreshing from UI.
   
![image](https://github.com/apache/superset/assets/57877739/1130dcec-ac64-4fb5-bee9-af182e4e322c)
   
   After refreshing via API.
   
![image](https://github.com/apache/superset/assets/57877739/7fb2b890-8786-4262-bdc6-15656d396b18)
   
   ### Environment
   - superset version: `2.1.0`
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.


-- 
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: notifications-unsubscr...@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to