-
Notifications
You must be signed in to change notification settings - Fork 331
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 Prompt to setPromptVersionTag mutation #6010
Conversation
@@ -31,6 +32,7 @@ class SetPromptVersionTagInput: | |||
@strawberry.type | |||
class PromptVersionTagMutationPayload: | |||
prompt_version_tag: Optional[PromptVersionTag] | |||
prompt: Optional[Prompt] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically should always return this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want the delete mutation to always return the prompt as well?
@@ -101,4 +106,6 @@ async def set_prompt_version_tag( | |||
raise Conflict("Failed to update PromptVersionTag.") | |||
|
|||
version_tag = to_gql_prompt_version_tag(updated_tag) | |||
return PromptVersionTagMutationPayload(prompt_version_tag=version_tag, query=Query()) | |||
return PromptVersionTagMutationPayload( | |||
prompt_version_tag=version_tag, prompt=prompt, query=Query() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to make it a gal type
resolves #5957