DAST vulnerabilities show more information about the request - modal - Frontend

Goal

This is tracking frontend work for #36332 (closed)

Implementation

  • Add new <vulnerability-details> for each new field (request headers, method, ...) to https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/vue_shared/security_reports/components/vulnerability_details.vue#L153
  • Use https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/vue_shared/components/code_block.vue to display headers
  • Increase title-column width and decrease the information column width by 1 (to adjust for new titles)
  • Add tests
  • Update screenshots for documentation

Notes

API response format (see #36332 (comment 325863282) for discussion):

request: {
  method: string,
  headers: {
    [key: string]: [value: string]
  }
},
response {
  status_code: integer,
  reason_phrase: string,
  headers: {
    [key: string]: [value: string]
  }
}

Related to #36332 (closed)

Edited May 14, 2020 by David Pisek
Assignee Loading
Time tracking Loading