-
Notifications
You must be signed in to change notification settings - Fork 6
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
AICORE-381: update model def api #276
Conversation
View issue in JIRA: AICORE-381: Update model definition api |
The server takes too much time to start. There is a new package |
@@ -166,13 +165,12 @@ public Response getAllThresholds() { | |||
@Path("extension/model") | |||
@Consumes(MediaType.APPLICATION_XML) | |||
@Produces(MediaType.APPLICATION_JSON) | |||
public Response setModelFromXML(String modelXML) { | |||
public Response setModelFromXML(@QueryParam("modelId") String modelId, String modelXML) { |
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.
why not a PathParam
? Or at least there should be a null check
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 have no opinion on the query param vs path param but I can change it for all endpoints
- Thanks for the review, i will check null
4f08492
to
06017e3
Compare
if(desc==null){ | ||
|
||
} | ||
if (desc instanceof ThresholdConfiguratorDescriptor) { |
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.
forgot to remove?
The change 20adbd0 to 06017e3 broke testBulkEnrich – org.nuxeo.ai.bulk.BulkEnrichmentTest |
1b0d8f2
to
f09a77c
Compare
⭐ PR built and available in a preview environment nuxeo-nuxeo-ai-pr-276 here |
No description provided.