nytai commented on a change in pull request #9283: [api] Fix, related fields 
need to be explicitly defined
URL: 
https://github.com/apache/incubator-superset/pull/9283#discussion_r391320777
 
 

 ##########
 File path: superset/datasets/api.py
 ##########
 @@ -98,6 +98,7 @@ class DatasetRestApi(BaseSupersetModelRestApi):
 
     filter_rel_fields_field = {"owners": "first_name", "database": 
"database_name"}
     filter_rel_fields = {"database": [["id", DatabaseFilter, lambda: []]]}
+    allowed_rel_fields = {"database"}
 
 Review comment:
   ```suggestion
       allowed_rel_fields = {"database", "owners"}
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to