Page MenuHomePhabricator

[web] Hide databaseModule behind a function
ClosedPublic

Authored by michal on Sep 8 2023, 4:02 AM.
Tags
None
Referenced Files
F1800568: D9105.diff
Mon, May 20, 6:26 AM
Unknown Object (File)
Thu, May 16, 6:13 AM
Unknown Object (File)
Mon, May 13, 2:53 PM
Unknown Object (File)
Tue, May 7, 8:31 AM
Unknown Object (File)
Apr 5 2024, 11:24 AM
Unknown Object (File)
Apr 5 2024, 11:24 AM
Unknown Object (File)
Apr 5 2024, 11:24 AM
Unknown Object (File)
Apr 5 2024, 11:20 AM
Subscribers

Details

Summary

Part of ENG-4844
When database will be used by all users (including anonymous ones), we need to make sure that it's never in an unitialized state. We hide it behind a getter function so we add the initialization code there in the later diffs.

Test Plan

yarn flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

web/database/database-module-provider.js
125 ↗(On Diff #30854)

async will be used in the later diffs

michal requested review of this revision.Sep 8 2023, 4:19 AM
This revision is now accepted and ready to land.Sep 10 2023, 11:35 PM