Skip to content

Conversation

@Vitor-Avila
Copy link
Contributor

The export command validates if the exported assets already exist in the target directory, raising if any asset already exists and the overwrite flag is not included. The current validation is solely based on the file name, which is not ideal as assets can be renamed in Superset, leading to duplicated files in the directory, and causing a race condition during import (the one imported last reflects in the UI).

This PR updates the logic to first check by file name, and then checks by uuid.

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

Nice! I like how the old file gets deleted when the asset is renamed!

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
@Vitor-Avila Vitor-Avila merged commit 6cf704e into main Oct 3, 2025
5 checks passed
@Vitor-Avila Vitor-Avila deleted the feat/uuid-based-overwrite branch October 3, 2025 16:05
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.

3 participants