Page MenuHomePhabricator

[web] Rename database worker
ClosedPublic

Authored by michal on Mar 4 2024, 7:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 10:58 PM
Unknown Object (File)
Fri, Apr 5, 7:53 PM
Unknown Object (File)
Mon, Apr 1, 9:46 AM
Unknown Object (File)
Sun, Mar 31, 1:11 AM
Unknown Object (File)
Mar 28 2024, 11:14 PM
Subscribers

Details

Summary

ENG-6648 : Refactor database worker

The database worker will now contains code not related to the database (e.g. cryptoStore and other crypto related operations) so I'm renaming it to a general shared-worker.

Depends on D11143

Test Plan

Check that the app works, click around, check that the database works.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

michal requested review of this revision.Mar 4 2024, 7:34 AM

Are you sure this change is fully backward compatible? Looks like yes but want to confirm

web/app.react.js
123 ↗(On Diff #37782)
This revision is now accepted and ready to land.Mar 4 2024, 8:45 AM

Fixed comment. Also renamed the worker name from comm-app-database-${codeVersion} to comm-app-shared-worker-${codeVersion}.

Are you sure this change is fully backward compatible? Looks like yes but want to confirm

I don't think we expose the shared worker to e.g. keyserver. It should be fully an "implementation detail" for the webapp codebase (except for the moment when the app loads the worker code at the start). If there are multiple tabs open the mismatch will be handled like the version mismatch -> the workers have different names so they shouldn't collide.