Skip to content

[TM-357] Partial UStore fill

Konstantin Ivanov requested to merge martoon/tm357-partial-ustore-fill into master

Description

Add a version of fillUStore which can be used in the middle of migration.

One use case for it is in TBTC project - they have admin field which is present in V0 version of storage and thus fillUStore should not work there (it can migrate only from scratch). AFAIU fillUStore is still used there only because migrations are not yet fully type-safe - one can implement UStoreMigration V1.Storage V2.Storage and then apply it to migrate between two arbitrary storages; this is going to be fixed in 2nd MR of TM-337.

Related issue(s)

https://issues.serokell.io/issue/TM-357

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Konstantin Ivanov

Merge request reports