-
Notifications
You must be signed in to change notification settings - Fork 289
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
[OPIK-313] Delete prompt #556
Conversation
…github.com/comet-ml/opik into thiagohora/OPIK-309_exposing_api_contracts
…hora/OPIK-309_exposing_api_contracts
…hora/OPIK-309_exposing_api_contracts
…hora/OPIK-310_expose_get_prompts_api
…hora/OPIK-310_expose_get_prompts_api
…hora/OPIK-314_create_version_endpoint
3b58058
to
09c3cae
Compare
09c3cae
to
faebd86
Compare
…-313_delete_prompts
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.
Looks great
@@ -50,4 +50,7 @@ List<Prompt> find(@Define("name") @Bind("name") String name, @Bind("workspace_id | |||
+ | |||
" WHERE id = :bean.id AND workspace_id = :workspace_id") | |||
int update(@Bind("workspace_id") String workspaceId, @BindMethods("bean") Prompt updatedPrompt); | |||
|
|||
@SqlUpdate("DELETE FROM prompts WHERE id = :id AND workspace_id = :workspace_id") |
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.
Don't we use soft deletes in opik?
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.
No, probably at some point, we need to rethink this, but right now we do hard deletes
Details
Issues
OPIK-313