mozilla / code-review

Automated static analysis & linting bot for Mozilla repositories
Mozilla Public License 2.0
56 stars 42 forks source link

Upgrade Vue.js 2 to 3 #2392

Open La0 opened 1 week ago

La0 commented 1 week ago

Refs #2259

This is a large work, fortunately the frontend code base is relatively small.

Steps, in successive Pull requests, following recommendations:

  1. Start Vue 3 migration build to update Vue.js dependencies
    • reach step 10 where both vuex & vue-router are upgraded
  2. Migrate from vuex (now deprecated) to Pinia
    • follow migration guide
    • you can probably keep everything in a single store as there are few actions
  3. upgrade vue-router to support vue 3
  4. Switch to vite instead of webpack for build tool as it's the recommended default now
  5. Iterate over individual warnings from vue js migration build until the compat mode can be disabled
mlbonhomme commented 1 week ago

Now that I don't have errors anymore I think I need access to the Heroku group or something https://github.com/mozilla/code-review/blob/master/docs/debugging.md#heroku so I can get data in the backend to actually test the frontend?

La0 commented 1 week ago

@mlbonhomme I'll give you access to our internal DB for this purpose

La0 commented 5 days ago

We'll just do the vue chart, while trying to migrate data storage onto Treeherder