HomePhabricator
Diffusion Comm dd9055f2f3ab

[web] Migrate drafts to db for everyone

Description

[web] Migrate drafts to db for everyone

Summary:
Part of ENG-4844
Depends on D9109

We need to migrate drafts for all users to the db.

Test Plan:
Tested on chromium:

  • [on master] Replaced code in isSQLiteSupported:
return false; // <- added
if (!isDev && (!currentLoggedInUserID || !isStaff(currentLoggedInUserID))) {
  return false;
}
  • logged in, made sure that there is persist:root in local storage, created a draft, closed the web page
  • [Applied this diff] opened the web page, and checked if the draft are still there

Reviewers: kamil, inka, atul, tomek

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D9110

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Sep 4 2023, 8:53 AM
Reviewer
kamil
Differential Revision
D9110: [web] Migrate drafts to db for everyone
Parents
rCOMM2ce478126824: [web] Enable db for all users
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMdd9055f2f3ab: [web] Migrate drafts to db for everyone (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Sep 18 2023, 3:25 AM