You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/01/25 12:08:51 UTC

[GitHub] [superset] michael-s-molina commented on a change in pull request #18151: refactor: Moves the Explore form_data endpoint

michael-s-molina commented on a change in pull request #18151:
URL: https://github.com/apache/superset/pull/18151#discussion_r791647746



##########
File path: superset/explore/form_data/api.py
##########
@@ -96,41 +98,53 @@ def post(self, pk: int) -> Response:
             500:
               $ref: '#/components/responses/500'
         """
-        return super().post(pk)
+        if not request.is_json:
+            raise InvalidPayloadFormatError("Request is not JSON")

Review comment:
       Great idea. Will do in another PR to apply it to all endpoints.




-- 
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-unsubscribe@superset.apache.org

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



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