Merged
Conversation
privateip
requested changes
Feb 4, 2026
Member
privateip
left a comment
There was a problem hiding this comment.
Looks like you have some linting failures. Please clean those up so this PR can be merged.
Contributor
Author
|
@privateip Updated the help.py file and fixed the linting issues:
|
privateip
approved these changes
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add an optional
overwriteparameter to theprojects.importer()method to support overwriting existing projects during import operations.Motivation
When promoting projects across environments (development → staging → production), teams often need to update existing projects rather than create new ones. The current
importer()method raises anAsyncPlatformErrorif a project with the same name already exists, requiring users to manually delete the project before re-importing.This workflow is cumbersome for CI/CD pipelines and automated deployment scripts where you want to promote the latest version of a project without manual intervention.
Changes
Core Functionality
overwrite: bool = Falseparameter to theimporter()methodoverwrite=True: finds and deletes any existing project with the same name before importingoverwrite=False(default): maintains current behavior of raising an error if project existsImplementation Details
find_projects()anddelete_project()methods for cleanupFalsepreserves existing behavioroverwrite=Trueto minimize unnecessary API callsTest Coverage
Added 5 comprehensive test cases:
test_importer_with_overwrite_true_deletes_existing- Verifies deletion and re-import when project existstest_importer_with_overwrite_true_no_existing_project- Verifies normal import when no conflicttest_importer_with_overwrite_false_raises_on_existing- Verifies error raised with explicitoverwrite=Falsetest_importer_overwrite_default_false- Verifies default parameter value maintains backward compatibilityTesting Performed
uv run ruff checkuv run mypyuv run ruff formatoverwriteparameter works unchangedExample Usage