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 2020/07/14 11:46:04 UTC

[GitHub] [incubator-superset] swecooo opened a new issue #10311: Create SQL Lab View using Dataset REST API

swecooo opened a new issue #10311:
URL: https://github.com/apache/incubator-superset/issues/10311


   I was trying to create a Superset [Terraform provider](https://www.terraform.io/docs/extend/writing-custom-providers.html) for managing datasets (and also charts) using Terraform. I wanted to create the resources in Superset using the [FAB Model REST API](https://flask-appbuilder.readthedocs.io/en/latest/rest_api.html#model-rest-api). However I found out that there is no possibility to create an SQL Lab View using the `/dataset` REST API since the POST request only supports 4 parameters: `database`, `schema`, `table_name` and `owners`.
   
   It would be great if we could also provide the `is_sql_lab_view` and `sql` parameters to the `/dataset` POST request and create an SQL Lab View directly using this endpoint.
   
   As a very limited workaround I used POST request to create a dataset linking to a table and then updated the record with `/dataset` PUT request where I could already provide all the parameters needed (`is_sql_lab_view` and `sql`). However one does need to manually change the dataset columns after updating the record.


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-superset] stale[bot] commented on issue #10311: Create SQL Lab View using Dataset REST API

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #10311:
URL: https://github.com/apache/incubator-superset/issues/10311#issuecomment-691480993






----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-superset] stale[bot] commented on issue #10311: Create SQL Lab View using Dataset REST API

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #10311:
URL: https://github.com/apache/incubator-superset/issues/10311#issuecomment-691480993






----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-superset] issue-label-bot[bot] commented on issue #10311: Create SQL Lab View using Dataset REST API

Posted by GitBox <gi...@apache.org>.
issue-label-bot[bot] commented on issue #10311:
URL: https://github.com/apache/incubator-superset/issues/10311#issuecomment-658134105


   Issue-Label Bot is automatically applying the label `#enhancement` to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! 
   
    Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/apache/incubator-superset) and [code](https://github.com/hamelsmu/MLapp) for this bot.


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-superset] stale[bot] closed issue #10311: Create SQL Lab View using Dataset REST API

Posted by GitBox <gi...@apache.org>.
stale[bot] closed issue #10311:
URL: https://github.com/apache/incubator-superset/issues/10311


   


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-superset] stale[bot] commented on issue #10311: Create SQL Lab View using Dataset REST API

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #10311:
URL: https://github.com/apache/incubator-superset/issues/10311#issuecomment-691480993


   This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
   


----------------------------------------------------------------
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:
users@infra.apache.org



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