Skip to content
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

feat: Add delete Prompt and delete PromptVersionTag mutations #5935

Conversation

anticorrelator
Copy link
Contributor

resolves #5930
resolves #5931

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 7, 2025
@mikeldking mikeldking merged commit 6f39599 into prompts Jan 7, 2025
49 checks passed
@mikeldking mikeldking deleted the dustin/prompthub-delete-prompt-prompt-version-tag-mutations branch January 7, 2025 21:59
if result.rowcount == 0:
raise NotFound(f"Prompt with ID '{input.prompt_id}' not found")

await session.commit()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this commit needed?

if result.rowcount == 0:
raise NotFound(f"PromptVersionTag with ID {input.prompt_version_tag_id} not found")

await session.commit()
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

mikeldking pushed a commit that referenced this pull request Jan 9, 2025
* Implement delete mutations for Prompt and PromptVersionTag

* Update graphql schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants