8000 refactor(annotations): allow batch deletion of annotation configs by axiomofjoy · Pull Request #7236 · Arize-ai/phoenix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor(annotations): allow batch deletion of annotation configs #7236

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 3 commits into from
Apr 22, 2025

Conversation

axiomofjoy
Copy link
Contributor

Allow batch deletions of annotation configs from the GraphQL perspective.

resolves #7224

Copy link
pkg-pr-new bot commented Apr 22, 2025

Open in StackBlitz

npm i https://pkg.pr.new/Arize-ai/phoenix/@arizeai/phoenix-client@7236
npm i https://pkg.pr.new/Arize-ai/phoenix/@arizeai/phoenix-mcp@7236

commit: 04da993

@axiomofjoy axiomofjoy changed the base branch from main to feat/annotations April 22, 2025 04:03
@axiomofjoy axiomofjoy marked this pull request as ready for review April 22, 2025 04:10
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 22, 2025
return DeleteAnnotationConfigPayload(
deleted_annotation_configs = result.all()
if len(deleted_annotation_configs) < len(config_ids):
await session.rollback()
Copy link
Contributor

Choose a reason for hiding this comment

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

it seems to me that rollback should be automatic when it's inside the context manager

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The explicit rollback seems to be necessary

@github-project-automation github-project-automation bot moved this from 📘 Todo to 👍 Approved in phoenix Apr 22, 2025
@axiomofjoy axiomofjoy merged commit d2426d1 into feat/annotations Apr 22, 2025
56 checks passed
@axiomofjoy axiomofjoy deleted the xander/annotation-config-batch-deletion branch April 22, 2025 23:23
@github-project-automation github-project-automation bot moved this from 👍 Approved to ✅ Done in phoenix Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[annotations] change annotation config deletion mutation to batch
2 participants
0