Page MenuHomePhabricator

Upgrade NPM / TypeScript packages on Laika skin and fix issues in code
Closed, ResolvedPublic3 Estimated Story Points

Description

When updating the NPM packages, I ran into TypeScript-related issues, specifically in the various SubmitValues.vue files which make use of mapState.

I am not entirely sure what is causing these new linting issues to appear but it seems to be related to the TypeScript packages and linting packages. The code appears to be working fine as before, but we will likely need to refactor all SubmitValues.vue files when updating the NPM packages the next time.


Acceptance criteria:

package.lock file can be deleted and updated with make update-js without creating any linting / code errors.

Event Timeline

Tim_WMDE set the point value for this task to 3.Nov 20 2019, 1:10 PM
Tim_WMDE moved this task from Backlog to Sprint ready on the WMDE-Fundraising-Tech board.

Pull request is here: https://github.com/wmde/FundraisingFrontend/pull/1701

The fix for the type errors is does not decrease type safety (since types for the parameters were not checked against the store model) but look ugly. I've asked a question on StackOverflow on how to implement it better: https://stackoverflow.com/q/60510684/130121
But please still review & merge the PR.

I've created a CFR task for collecting ideas on how to improve type safety of our state management: T246798: Use Pinia for state handling