-
Notifications
You must be signed in to change notification settings - Fork 43
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
🐛 Identified risk refactor #1521
Conversation
ffeb865
to
d89d621
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1521 +/- ##
=======================================
Coverage 40.70% 40.70%
=======================================
Files 145 145
Lines 4589 4589
Branches 1076 1076
=======================================
Hits 1868 1868
Misses 2707 2707
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: ibolton336 <[email protected]>
bea6cba
to
08df3d1
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.
I couldn't test the table render with the one questionnaire I have locally -- the dreaded hack/import-questionnaire/cloud-native.yaml
! Seems like this report table has some issues with questions that repeat across sections.
The code looks good, I just couldn't test it.
item.question === question.text && | ||
item.answer === answer.text && |
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.
So this will have the same problem of if an assessment has repeated questions / answers right?
Maybe building up a key based on the order fields would be better?
itemId = [
assessment.id,
section.order,
question.order,
answer.order,
].join(".");
Signed-off-by: ibolton336 <[email protected]>
1e1c79e
to
9ae0e7e
Compare
Addressed this bug here: #1524 |
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.
Resolves https://issues.redhat.com/browse/MTA-1434?