Closed jonathanvila closed 3 years ago
Merging #18 (c231b28) into main (03524b6) will decrease coverage by
13.33%
. The diff coverage is50.00%
.:exclamation: Current head c231b28 differs from pull request most recent head c8458bc. Consider uploading reports for the commit c8458bc to get more accurate results
@@ Coverage Diff @@
## main #18 +/- ##
=============================================
- Coverage 91.11% 77.77% -13.34%
- Complexity 25 33 +8
=============================================
Files 7 16 +9
Lines 45 63 +18
Branches 1 1
=============================================
+ Hits 41 49 +8
- Misses 3 13 +10
Partials 1 1
Impacted Files | Coverage Δ | Complexity Δ | |
---|---|---|---|
src/main/java/io/tackle/pathfinder/model/Risk.java | 0.00% <0.00%> (ø) |
0.00 <0.00> (?) |
|
...tackle/pathfinder/model/assessment/Assessment.java | 50.00% <ø> (ø) |
1.00 <0.00> (ø) |
|
...athfinder/model/assessment/AssessmentCategory.java | 50.00% <50.00%> (ø) |
1.00 <1.00> (?) |
|
...athfinder/model/assessment/AssessmentQuestion.java | 50.00% <50.00%> (ø) |
1.00 <1.00> (?) |
|
...inder/model/assessment/AssessmentSingleOption.java | 50.00% <50.00%> (ø) |
1.00 <1.00> (?) |
|
...ackle/pathfinder/model/questionnaire/Category.java | 50.00% <50.00%> (ø) |
1.00 <1.00> (?) |
|
...ackle/pathfinder/model/questionnaire/Question.java | 50.00% <50.00%> (ø) |
1.00 <1.00> (?) |
|
...e/pathfinder/model/questionnaire/SingleOption.java | 50.00% <50.00%> (ø) |
1.00 <1.00> (?) |
|
...nder/model/assessment/AssessmentQuestionnaire.java | 66.66% <66.66%> (ø) |
1.00 <1.00> (?) |
|
.../pathfinder/model/questionnaire/Questionnaire.java | 66.66% <66.66%> (ø) |
1.00 <1.00> (?) |
|
... and 10 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 03524b6...c8458bc. Read the comment docs.
@jonathanvila I added some comments below and besides my comments I'd like to also mention:
- I've seen the field
notes
in the Assessment entity;comment
inAssessmentQuestion
but thecomments/notes
should be located in theAssessmentCategory
. Could we have a single term for bothcomment
andnotes
? unless they both mean different things.
Well, a comment and notes are not exactly the same and that was my intention. But I see your point, and as it's a matter of perception , I will rename to Comment everywhere as you point.
- Before this PR the creation of an assessment was very quick but with this PR the creation of an assessment takes longer (I guess it is because it needs to copy the questionnaire). Since it takes longer for the backend to process the
POST /assessment
request I was able to discover that we can create multiple assessments for a single application which I think is breaking the constraint of having a single assessment per application. See the video below (note that in my video I'm using the UI but you can use curl to have the same results). In the video I'm clicking multiple times the "assess" button. Peek.2021-04-09.11-29.mp4 Of course, the UI should also disable the button "assess" while executingPOST /assessment
so this is something to enhance also in the UI.
:+1: Good spot .
Thanks @jonathanvila , this PR looks good to me.
Issue : https://github.com/konveyor/tackle-pathfinder/issues/11
Features included :
Pre steps :
Add this below
paths:
Test case 1 : Obtain Keycloak secret
Test case 2 : Create assessment for applicationId=20
{"id":3,"applicationId":28,"status":"STARTED"}
Test case 4 : Simultaneous calls to create assessment return 201 for the first and 400 for the rest ( to avoid multiple assessments per application )
bash -x file.sh {incremental number} {cluster ip}
If you are using minikube you can get your cluster ip with : minikube ip