You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2020/10/28 08:31:00 UTC
[incubator-superset] 06/08: fix(dataset): update user list endpoint
(#11221)
This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch 0.38
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit f0cd671f4c4e6ddc7f0ba69ea77af00abd2d0322
Author: Lily Kuang <li...@preset.io>
AuthorDate: Mon Oct 12 09:11:00 2020 -0700
fix(dataset): update user list endpoint (#11221)
---
superset-frontend/src/datasource/DatasourceEditor.jsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/superset-frontend/src/datasource/DatasourceEditor.jsx b/superset-frontend/src/datasource/DatasourceEditor.jsx
index dd7cd72..88b68e0 100644
--- a/superset-frontend/src/datasource/DatasourceEditor.jsx
+++ b/superset-frontend/src/datasource/DatasourceEditor.jsx
@@ -527,12 +527,12 @@ class DatasourceEditor extends React.PureComponent {
description={t('Owners of the datasource')}
control={
<SelectAsyncControl
- dataEndpoint="/users/api/read"
+ dataEndpoint="api/v1/dataset/related/owners"
multi
mutator={data =>
- data.pks.map((pk, i) => ({
- value: pk,
- label: `${data.result[i].first_name} ${data.result[i].last_name}`,
+ data.result.map(pk => ({
+ value: pk.value,
+ label: `${pk.text}`,
}))
}
/>