Skip to content

Add dataset.delete_scene #199

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

Merged
merged 2 commits into from
Jan 19, 2022
Merged

Add dataset.delete_scene #199

merged 2 commits into from
Jan 19, 2022

Conversation

gatli
Copy link
Contributor

@gatli gatli commented Jan 12, 2022

Adds Scene deletion through the SDK.

Still waiting for the endpoint to be deployed!

@gatli gatli requested a review from pfmark January 12, 2022 15:53
@@ -738,6 +740,11 @@ def delete_item(self, reference_id: str) -> dict:
requests.delete,
)

@sanitize_string_args
def delete_scene(self, reference_id: str):
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering if it makes more sense to just have a delete_scenes(self, reference_ids: List[str]) method. We should also adapt the interface or at least add this method for the other data types to make it easier for the user and interate through the scenes internally rather then on the user side. Wdyt @gatli ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can also do this in a second PR actually. So let's go ahead and merge once the endpoint is deployed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, that is probably a more natural interface. Let's add it to shortcut!

Copy link
Contributor

@pfmark pfmark left a comment

Choose a reason for hiding this comment

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

lgtm

@gatli gatli force-pushed the gunnar-delete-scene branch from d4caa97 to d4330ba Compare January 18, 2022 17:00
@gatli gatli merged commit b18c412 into master Jan 19, 2022
@gatli gatli deleted the gunnar-delete-scene branch January 19, 2022 11:54
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