Closed jonathanvila closed 3 years ago
@jonathanvila The response of the endpoint
POST /confidence
should also contain theapplicationId
rather than just the fields:assessmentId
andconfidence
.In order to create the graph https://docs.google.com/presentation/d/1RFDsQLfyuFd4vMqjlq4Q1tRQi8V-PC3jvMr7jLnTnJE/edit#slide=id.ga9b8077a6e_0_172 it is required to know which
confidence
was assigned to a certain application.Let me give you this example:
Let's say we have 2 applications:
[ {id: 1, name: "app1"}, {id: 2, name: app2} ]
And then we send a request
POST /confidence
with the body:[ {applicationId: 1}, {applicationId: 2}, ]
The response of the previous request is:
[ {"assessmentId": 99, confidence: 3}, {"assessmentId": 100, confidence: 3}, ]
Now the question is how can I know which assessment belongs to which application?
The final result is that I have 2 objects:
[ {id: 1, name: "app1"}, {id: 2, name: app2} ]
and
[ {"assessmentId": 99, confidence: 3}, {"assessmentId": 100, confidence: 3}, ]
with no way to create a match between the previous 2 objects.
Could you please add the
applicationId
to the response of the endpoint?
:+1:
Issue : https://github.com/konveyor/tackle-pathfinder/issues/69
Features covered
Unit , Integration and End2End Tests cases covered
Unit Test ( AssessmentSvcTest.java )
Integration Test ( AssessmentsResourceTest.java )
End2End Test on minikube with native image ( check_api.sh )
Pre steps Minikube:
Add this below
paths:
Test case with Minikube : Do the full API test
Pre steps non containerised local test:
Test case with local non containerised : Do the full API test