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 <[email protected]> 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}`, })) } />
