Updating UI staging POST calls and UI event handling
Overview
This MR covers the following changes:
- Updating the vue.js staging components to POST to the new staging endpoints
- Replacing the Vue2 event bus with mitt.js. The Vue2 event-bus paradigm was deprecated in Vue3 so using a library like mitt.js now is one less piece of refactoring for us to worry about when we upgrade to Vue3
- Adding a beforeDestroy function to remove registered events when switching pages. It looks like staging would work the first time a page was loaded, but fail afterwards. Explicitly adding and removing events on mount and destroy should fix this problem.
- Updating the ui-checksum function to check the content in
frontend
instead ofdist
Tasks
-
Update docs if needed (workflow, runbooks, README, migration metrics, etc.)
Acceptance Criteria
-
Existing UTs pass locally
@gitlab-org/professional-services-automation/tools/migration