HomePhabricator
Diffusion Comm 375b9a2daeff

[lib/web/native] Improve conversion utils

Description

[lib/web/native] Improve conversion utils

Summary:
Improve the conversion utils situation for the future diffs:

  1. Rename convertNotificationThreadIDToNewIDSchema to convertNonPendingIDToNewSchema and add idPrefix param instead of always using ashoats id
  2. Add convertIDToNewSchema and use it inside convertDraftKeyToNewIDSchema

Test Plan:
yarn flow-all to test (1)
yarn jest-all to test (2) -> draft migration tests

Reviewers: kamil, inka, atul

Reviewed By: atul

Subscribers: ashoat, tomek

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

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Sep 6 2023, 2:11 AM
Reviewer
atul
Differential Revision
D9147: [lib/web/native] Improve conversion utils
Parents
rCOMMaa7f66c5cd0f: [keyserver] Remove unused params in validation functions
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM375b9a2daeff: [lib/web/native] Improve conversion utils (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Sep 20 2023, 2:27 AM