wire-webapp icon indicating copy to clipboard operation
wire-webapp copied to clipboard

feat(backup): support cross platform backup [WPB-10577]

Open V-Gira opened this issue 8 months ago • 2 comments

StoryWPB-10577 [Web] Cross Platform Backup: Implement common library in clients

Description

  • Allows creation of cross-platform compatible backups
  • Uses the kalium-backup npm package
  • Needs the FEATURE_ENABLE_CROSS_PLATFORM_BACKUP_EXPORT flag to be set to true

Changes

  • Reinstore the previous implementation of cross-platform backups https://github.com/wireapp/wire-webapp/pull/18736
  • Make use of the kalium-backup library for exporting, encrypting and compressing the backup https://github.com/wireapp/wire-webapp/pull/19047 (PR reviewed :heavy_check_mark: )
  • Make use of the kalium-backup library for impoting, decrypting and decompressing the backup https://github.com/wireapp/wire-webapp/pull/19057 (PR reviewed :heavy_check_mark: )
  • Perform user check before importing backup https://github.com/wireapp/wire-webapp/pull/19116 (PR reviewed :heavy_check_mark: )
  • Map location events to backup https://github.com/wireapp/wire-webapp/pull/19117 (PR reviewed :heavy_check_mark: )

Review

The main content of this PR is already reviewed. The commits that haven't been reviewed are:

  • removal of the TEMP backup library
  • addition of the kalium-backup package and bumps
  • fixes to the lockfile
  • change to the file extension
  • addressing the code review

Checklist

  • [x] mentions the JIRA issue in the PR name (Ex. [WPB-XXXX])
  • [x] PR has been self reviewed by the author;
  • [ ] Hard-to-understand areas of the code have been commented;
  • [ ] If it is a core feature, unit tests have been added;

V-Gira avatar Apr 22 '25 09:04 V-Gira

Codecov Report

Attention: Patch coverage is 32.82675% with 221 lines in your changes missing coverage. Please review.

Project coverage is 43.75%. Comparing base (e403601) to head (617bead).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #19036      +/-   ##
==========================================
- Coverage   43.95%   43.75%   -0.20%     
==========================================
  Files        1279     1288       +9     
  Lines       31173    31440     +267     
  Branches     6884     6940      +56     
==========================================
+ Hits        13701    13758      +57     
- Misses      15818    16024     +206     
- Partials     1654     1658       +4     
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Jun 11 '25 14:06 codecov[bot]