-
Notifications
You must be signed in to change notification settings - Fork 134
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-314] Create prompt version endpoint #554
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
f6dc040
to
98690af
Compare
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.
Great work! Left two minor comments
private EntityAlreadyExistsException newConflict(String alreadyExists) { | ||
log.info(alreadyExists); | ||
return new EntityAlreadyExistsException(new ErrorMessage(alreadyExists)); | ||
return new EntityAlreadyExistsException(new ErrorMessage(409, alreadyExists)); |
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.
return new EntityAlreadyExistsException(new ErrorMessage(409, alreadyExists)); | |
return new EntityAlreadyExistsException(new ErrorMessage(HttpStatus.SC_CONFLICT, alreadyExists)); |
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 will address both comments in the following PR once I rebase it
@@ -85,6 +88,14 @@ class PromptResourceTest { | |||
|
|||
private static final WireMockUtils.WireMockRuntime wireMock; | |||
public static final String[] IGNORED_FIELDS = {"versionCount", "latestVersion", "template"}; | |||
public static final String TEMPLATE = """ |
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.
Any reason to introduce this duplicate and not use PromptVersionManufacturer.TEMPLATE
?
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, I probably forgot to remove it.
Details
Issues
OPIK-314