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

[OPIK-313] Delete prompt #556

Merged
merged 24 commits into from
Nov 5, 2024
Merged

Conversation

thiagohora
Copy link
Contributor

@thiagohora thiagohora commented Nov 4, 2024

Details

  • Delete prompt
  • Also delete its versions

Issues

OPIK-313

@thiagohora thiagohora force-pushed the thiagohora/OPIK-311_update_prompt branch from 3b58058 to 09c3cae Compare November 5, 2024 14:13
@thiagohora thiagohora force-pushed the thiagohora/OPIK-311_update_prompt branch from 09c3cae to faebd86 Compare November 5, 2024 14:17
idoberko2
idoberko2 previously approved these changes Nov 5, 2024
Copy link
Contributor

@idoberko2 idoberko2 left a 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")
Copy link
Contributor

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?

Copy link
Contributor Author

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

Base automatically changed from thiagohora/OPIK-311_update_prompt to main November 5, 2024 14:42
@thiagohora thiagohora dismissed idoberko2’s stale review November 5, 2024 14:42

The base branch was changed.

@thiagohora thiagohora self-assigned this Nov 5, 2024
@thiagohora thiagohora requested a review from idoberko2 November 5, 2024 14:48
@thiagohora thiagohora marked this pull request as ready for review November 5, 2024 14:48
@thiagohora thiagohora requested a review from a team as a code owner November 5, 2024 14:48
@thiagohora thiagohora merged commit 45bf586 into main Nov 5, 2024
7 checks passed
@thiagohora thiagohora deleted the thiagohora/OPIK-313_delete_prompts branch November 5, 2024 14:55
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