Skip to content
Snippets Groups Projects

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

Merged Tom Quirk requested to merge 342121-move-save-button-to-vue-component into master
All threads resolved!

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

Merged results pipeline #429405954 passed

Pipeline: GitLab

#429426056

    Merged results pipeline passed for a37cdbc9

    Test coverage 75.24% (-3.32%) from 2 jobs
    Approved by

    Merged by Illya KlymovIllya Klymov 3 years ago (Dec 16, 2021 9:19am UTC)

    Merge details

    Pipeline #430879469 failed

    Pipeline failed for 535b7c49 on master

    Test coverage 78.60% (-3.32%) from 2 jobs
    8 environments impacted.

    Activity

    Filter activity
    • Approvals
    • Assignees & reviewers
    • Comments (from bots)
    • Comments (from users)
    • Commits & branches
    • Edits
    • Labels
    • Lock status
    • Mentions
    • Merge request status
    • Tracking
  • Tom Quirk
  • Tom Quirk
  • Tom Quirk
  • Tom Quirk
  • Tom Quirk
  • mentioned in issue #347506 (closed)

  • mentioned in issue #342121 (closed)

  • Tom Quirk added 1 commit

    added 1 commit

    • 845e8f6c - Remove integration_settings_form.js

    Compare with previous version

  • Tom Quirk added 1 commit

    added 1 commit

    • 0748fb79 - Remove integration_settings_form.js file

    Compare with previous version

  • Tom Quirk marked this merge request as ready

    marked this merge request as ready

  • Tom Quirk added workflowin review label and removed workflowin dev label

    added workflowin review label and removed workflowin dev label

  • Tom Quirk requested review from @justin_ho

    requested review from @justin_ho

  • Tom Quirk mentioned in merge request !76291 (merged)

    mentioned in merge request !76291 (merged)

  • Tom Quirk added 622 commits

    added 622 commits

    • 0748fb79...b2755055 - 620 commits from branch 342121-move-remaining-events-to-vue-components
    • 12ce431b - Move 'save integration' code to Vue
    • e4136730 - Remove integration_settings_form.js file

    Compare with previous version

  • Justin Ho Tuan Duong
  • Justin Ho Tuan Duong
  • Justin Ho Tuan Duong
  • Justin Ho Tuan Duong removed review request for @justin_ho

    removed review request for @justin_ho

  • Tom Quirk added 4 commits

    added 4 commits

    • aaa16315 - 1 commit from branch 342121-move-remaining-events-to-vue-components
    • 78cebda7 - Move 'save integration' code to Vue
    • 287eb031 - Remove integration_settings_form.js file
    • 685987db - WIP: address reviewer feedback

    Compare with previous version

  • Tom Quirk marked this merge request as draft from 685987db

    marked this merge request as draft from 685987db

  • Tom Quirk deleted the 342121-move-remaining-events-to-vue-components branch. This merge request now targets the master branch

    deleted the 342121-move-remaining-events-to-vue-components branch. This merge request now targets the master branch

  • Tom Quirk added 252 commits

    added 252 commits

    Compare with previous version

  • Tom Quirk requested review from @justin_ho

    requested review from @justin_ho

  • Tom Quirk marked this merge request as ready

    marked this merge request as ready

  • Tom Quirk changed the description

    changed the description

  • Bundle size analysis [beta]

    This compares changes in bundle size for entry points between the commits a898ae32 and 4416de25

    :sparkles: Special assets

    Entrypoint / Name Size before Size after Diff Diff in percent
    average 3.6 MB 3.6 MB - -0.0 %
    mainChunk 2.24 MB 2.24 MB - 0.0 %

    :tada: Significant Reduction: 2

    Expand
    Entrypoint / Name Size before Size after Diff Diff in percent
    pages.groups.packages.index 956.51 KB 875.68 KB -80.84 KB -8.5 %
    pages.projects.packages.packages.index 1.1 MB 1.02 MB -80.04 KB -7.1 %

    Note: We do not have exact data for a898ae32. So we have used data from: 3fc52919.
    The intended commit has no webpack pipeline, so we chose the last commit with one before it.

    Please look at the full report for more details


    Read more about how this report works.

    Generated by :no_entry_sign: Danger

  • Justin Ho Tuan Duong approved this merge request

    approved this merge request

  • Justin Ho Tuan Duong requested review from @xanf and removed review request for @justin_ho

    requested review from @xanf and removed review request for @justin_ho

  • :wave: @justin_ho, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline has been started.

    For more info, please refer to the following links:

  • Illya Klymov resolved all threads

    resolved all threads

  • Illya Klymov approved this merge request

    approved this merge request

  • merged

  • Illya Klymov mentioned in commit 535b7c49

    mentioned in commit 535b7c49

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • 🤖 GitLab Bot 🤖 added devopsmanage label and removed 1 deleted label

    added devopsmanage label and removed 1 deleted label

  • Please register or sign in to reply
    Loading