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 2021/11/10 08:36:54 UTC
[GitHub] [superset] xingyuli opened a new issue #17390: unable to update dataset metric's label via the rest PUT api
xingyuli opened a new issue #17390:
URL: https://github.com/apache/superset/issues/17390
It's not possible to update dataset metric's label (i.e., verbose_name) via the PUT API.
#### How to reproduce the bug
Visit the online rest documentation. You could see the payload is not able to receive verbose_name:
![image](https://user-images.githubusercontent.com/3337431/141077783-8d93d2cd-c160-4ded-8f9e-e4b41d7bdf81.png)
### Expected results
Possible to update the metric label (verbose_name).
### Actual results
Unable to do so.
#### Screenshots
See above.
### Environment
(please complete the following information):
- browser type and version:
- superset version: 1.1.0(which I'm using), and the latest version from the online rest doc
--
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
[GitHub] [superset] villebro closed issue #17390: unable to update dataset metric's label via the rest PUT api
Posted by GitBox <gi...@apache.org>.
villebro closed issue #17390:
URL: https://github.com/apache/superset/issues/17390
--
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
[GitHub] [superset] junlincc commented on issue #17390: unable to update dataset metric's label via the rest PUT api
Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #17390:
URL: https://github.com/apache/superset/issues/17390#issuecomment-965734066
Hi @xingyuli, thanks for reporting the issue!
I'm not familiar with this functionality - edit dataset via the rest PUT api. While I loop the domain expert in, would you mind giving some more details 1) your use case 2) is there a workaround that you may be aware of? thanks
--
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
[GitHub] [superset] xingyuli commented on issue #17390: unable to update dataset metric's label via the rest PUT api
Posted by GitBox <gi...@apache.org>.
xingyuli commented on issue #17390:
URL: https://github.com/apache/superset/issues/17390#issuecomment-965996806
> Hi @xingyuli, thanks for reporting the issue! I'm not familiar with this functionality - edit dataset via the rest PUT api. While I loop the domain expert in, would you mind giving some more details 1) your use case 2) is there a workaround that you may be aware of? thanks
The rest PUT API has been used to sync from one dataset to another dataset. These two datasets refer two tables which are created by absolutely same ddl statement. You may think of these datasets as blue-green (or prod-vs-backup) version against each other. I have so many datasets created via the GUI, but I wish to programmatically maintain the plenty of datasets.
As it's not possible to specify the metric's label (verbose_name) via the API, I have to update them one by one, going through all the datasets, which is quite time consuming and convenient. As far as I see, I think there is no workaround to do this.
For wider insight, Superset is missing features of sync one set of datasets to another set of datasets, which would be useful for cases e.g.,
- blue-green dataset
- full dataset and its hot dataset (which means a subset of whole dataset)
--
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
[GitHub] [superset] xingyuli edited a comment on issue #17390: unable to update dataset metric's label via the rest PUT api
Posted by GitBox <gi...@apache.org>.
xingyuli edited a comment on issue #17390:
URL: https://github.com/apache/superset/issues/17390#issuecomment-965996806
> Hi @xingyuli, thanks for reporting the issue! I'm not familiar with this functionality - edit dataset via the rest PUT api. While I loop the domain expert in, would you mind giving some more details 1) your use case 2) is there a workaround that you may be aware of? thanks
The rest PUT API has been used to sync from one dataset to another dataset. These two datasets refer two tables which are created by absolutely same ddl statement. You may think of these datasets as blue-green (or prod-vs-backup) version against each other. I have so many datasets created via the GUI, but I wish to programmatically maintain the plenty of datasets.
As it's not possible to specify the metric's label (verbose_name) via the API, I have to update them one by one, going through all the datasets, which is quite time consuming and inconvenient. As far as I see, I think there is no workaround to do this.
For wider insight, Superset is missing features of sync one set of datasets to another set of datasets, which would be useful for cases e.g.,
- blue-green dataset
- full dataset and its hot dataset (which means a subset of whole dataset)
--
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
[GitHub] [superset] villebro commented on issue #17390: unable to update dataset metric's label via the rest PUT api
Posted by GitBox <gi...@apache.org>.
villebro commented on issue #17390:
URL: https://github.com/apache/superset/issues/17390#issuecomment-983533684
Repro'd - working on this now
--
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