Skip to content

Move "save settings" code from integration_settings_form.js to Vue component

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

What does this MR do and why?

This MR is part 4 of 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 remove the SAVE_INTEGRATION_EVENT from the integration form event hub and related Vuex actions/mutations/state. We move all of the "save integration" functionality to integration_form.vue.

There are no user-facing changes in this MR.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

  1. Enable and configure the Jira integration for the project. More information.
  2. Click save settings. The Test button should be disabled and the Save button should be loading while the request is in-flight. Once done, the page will refresh.
  3. Play around with various states of the form (incomplete form, invalid form, etc.).

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