Open ghost opened 3 years ago
@stevespringett I did a little investigation into this issue, and it appears it may be due to the API not always returning the analysisComments
field. If you notice in the screenshot below, when first adding a comment, analysisComments
is in the response:
When adding a second comment in the screen shot below, analysisComments
is missing:
this causes updateAnalysisData on the frontend to skip the update and not update the audit trail here: https://github.com/DependencyTrack/frontend/blob/f44bdde24ce6244904161ac9fef6e8ca1d5563b4/src/views/portfolio/projects/ProjectFindings.vue#L236
From what I can see this could be fixed by either:
Thanks interesting. Thanks for finding the cause. Will attempt to reproduce.
@nscuro I checked, this bug is no longer existing and can be closed
Current Behavior:
When adding several comments to an Audit Trail, only the first comment appears in the UI.
Steps to Reproduce:
Expected Behavior:
"another comment" appears in the Audit Trail box but it does not. Refreshing the webpage reveals that the second comment was added to the Audit Trail but was just not displayed when added.
I would also have expected a comment in the Comment box to be cleared when it is added to the Audit Trail.
Environment:
Additional Details:
None