Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Preset): Export users #347

Merged
merged 2 commits into from
Feb 28, 2025
Merged

fix(Preset): Export users #347

merged 2 commits into from
Feb 28, 2025

Conversation

Vitor-Avila
Copy link
Contributor

In Preset, the Superset Users List view is disabled (since users are managed through Preset Manager). That said, in order to export users (with their local Superset IDs) we would parse the DOM of the Add DAR view.

There was a change to this view so that the users are not loaded to the DOM anymore -- instead, there's a user search field.

This PR updates the logic specifically for Preset Cloud to get the user information from the /api/v1/chart/related/owners field (which lists all members with proper pagination).

This is a temporary fix, as there's ongoing work to migrate the Superset Roles view to RESTful, and later do the same with Preset's DAR view.

@Vitor-Avila
Copy link
Contributor Author

Vitor-Avila commented Feb 28, 2025

Also fixes #218

Copy link

@Antonio-RiveroMartnez Antonio-RiveroMartnez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! This is a tmp fix since we're working on the Role CRUD RESTful migration

@Vitor-Avila Vitor-Avila merged commit 7619fd7 into main Feb 28, 2025
5 checks passed
@Vitor-Avila Vitor-Avila deleted the fix/preset-export-roles branch February 28, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants