Skip to content

Migrate jira_issue_creation_vulnerabilities.vue to GlCollapsibleListbox

What does this MR do and why?

This MR migrates ee/app/assets/javascripts/integrations/edit/components/jira_issue_creation_vulnerabilities.vue to GlCollapsibleListbox"

Screenshots or screen recordings

Before After
Screenshot_2023-10-13_at_20.42.33 Screenshot_2023-10-13_at_20.47.40
Screenshot_2023-10-13_at_20.43.08 Screenshot_2023-10-13_at_20.49.36
Screenshot_2023-10-13_at_20.43.42 Screenshot_2023-10-13_at_21.11.26
Screenshot_2023-10-13_at_20.43.50 Screenshot_2023-10-13_at_20.50.09

How to set up and validate locally

Pre-requisite: JIRA instance should be up and running. You can run it locally on docker with the following command: docker run --publish 8080:8080 --name jira --platform linux/amd64 registry.gitlab.com/gitlab-org/gitlab-qa/jira-gitlab:8.8-project-and-issue

Then you can run this test with GDK

JIRA_HOSTNAME="<JIRA_HOST>" JIRA_ADMIN_USERNAME="gitlab-qa" JIRA_ADMIN_PASSWORD="XXXX" GITLAB_ADMIN_PASSWORD="XXXX" GITLAB_QA_ACCESS_TOKEN=XXXX GITLAB_PASSWORD="XXXXX" QA_DEBUG=true CHROME_HEADLESS=false bundle exec bin/qa Test::Instance::All http://192.168.1.105:3000 ./qa/specs/features/ee/browser_ui/13_secure/vulnerabilities_jira_integration_spec.rb -- --tag orchestrated
  1. Visit Project -> Integrations -> Jira
  2. Scroll to Issues section
  3. Select Enable Jira issues, fill Jira project key, select Enable Jira issue creation from vulnerabilities
  4. Verify the Jira issue types dropdown

To test it I used a test object in the state.js

jiraIssueTypes: [
  { id: '1', name: 'gl-issue', description: 'issue' },
  { id: '2', name: 'gl-bug', description: 'bug' },
  { id: '3', name: 'gl-epic', description: 'epic' },
],

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #418081 (closed)

Edited by Anna Vovchenko

Merge request reports