Skip to content

Move `getJiraIssueTypes` to Vuex action

Tom Quirk requested to merge 342121-move-getIssueTypes-to-vue-component into master

What does this MR do and why?

This MR is the first part of #342121 (closed), an effort to remove app/assets/javascripts/integrations/integration_settings_form.js and move its current responsibilities to Vuex or existing Vue components.

In this MR, we tackle the getJiraIssueTypes functionality. Primarily, we move getJiraIssueTypes to the existing requestJiraIssueTypes Vuex action (with the necessary modifications). This required that we make a few other changes here and there.

Functionality is unaffected; this is a typemaintenance change.

Screenshots or screen recordings

Video demonstrates that the functionality still works as expected.

jira-demo

How to set up and validate locally

  1. Enable and configure the Jira integration for the project. More information.
  2. Select Enable Jira issues creation from vulnerabilities checkbox
  3. Observe. A dropdown should appear (in a loading state), and its options should soon be populated with some Jira issues.

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 #342121 (closed)

Edited by Tom Quirk

Merge request reports

Loading