Skip to content

Regression: Fix app storage migration#23286

Merged
sampaiodiego merged 5 commits intodevelopfrom
fix/change-app-storage-migration-failed
Sep 27, 2021
Merged

Regression: Fix app storage migration#23286
sampaiodiego merged 5 commits intodevelopfrom
fix/change-app-storage-migration-failed

Conversation

@thassiov
Copy link
Contributor

@thassiov thassiov commented Sep 24, 2021

Proposed changes (including videos or screenshots)

The previous version of this migration didn't take into consideration apps that were installed prior to Rocket.Chat@3.8.0, which removed the typescript compiler from the server and into the CLI. As a result, the zip files inside each installed app's document in the database had typescript files in them instead of the now required javascript files.

As the new strategy of source code storage for apps changes the way the app is loaded, those zip files containing the source code are read everytime the app is started (or in this particular case, updated), and as the zips' contents were wrong, the operation was failing.

The fix extract the data from old apps and creates new zip files with the compiled js already present.

Issue(s)

Steps to test or reproduce

Further comments

@sampaiodiego sampaiodiego changed the title [FIX] Change app storage migration fail Regression: Fix app storage migration Sep 27, 2021
@sampaiodiego sampaiodiego merged commit b72a4be into develop Sep 27, 2021
@sampaiodiego sampaiodiego deleted the fix/change-app-storage-migration-failed branch September 27, 2021 17:10
@sampaiodiego sampaiodiego mentioned this pull request Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments