Skip to content

Conversation

@Vitor-Avila
Copy link
Contributor

@Vitor-Avila Vitor-Avila commented Jan 21, 2025

This PR adds support for the --asset-type selector for individual imports. This allows users to trigger an import for a specific asset type (including dependencies) that get imported via the asset type endpoint.

It also fixes a logic gap that was introduced in #328 -- while it's correct that successful files added to the progress.log should be skipped, they should still be added to the assets_config dict as they might be dependencies to existing assets.

Comment on lines +369 to +371
for uuid in get_related_uuids(config):
asset_configs.update(related_configs[uuid])
related_configs[config["uuid"]] = asset_configs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was already there -- we just need to make sure it's executed before the asset is skipped to be imported.

Comment on lines -472 to -473
metadata_type = asset_type.metadata_type if asset_type else "assets"
resource_name = asset_type.resource_name if asset_type else "assets"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No longer necessary with the new default ResourceType.ASSET

@Vitor-Avila Vitor-Avila merged commit 8f4bf29 into main Jan 22, 2025
5 checks passed
@Vitor-Avila Vitor-Avila deleted the feat/support-asset-type-on-split branch January 22, 2025 11:43
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