Add a migrator for converting tags to context items
ClosedPublic

Authored by dfaure on Feb 21 2019, 9:09 AM.

Details

Summary

This migrator creates one context item for each context tag,
then associates the tasks with those contexts.

The tags are just left there. This makes a temporary downgrade possible,
as well as making it possible to rerun the migrator if a bug is found and fixed.

Test Plan

New unittest passes.

Diff Detail

Repository
R4 Zanshin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfaure requested review of this revision.Feb 21 2019, 9:09 AM
dfaure created this revision.
dfaure updated this revision to Diff 52248.Feb 21 2019, 10:14 PM

Rename method; actually call the migrator class from the migrator app.

dfaure updated this revision to Diff 52254.Feb 21 2019, 10:58 PM

Fix issue on computers with new-style contexts and no kconfig key.
Simplify code by removing the unnecessary hash.

ervin accepted this revision.Mar 2 2019, 10:30 AM
This revision is now accepted and ready to land.Mar 2 2019, 10:30 AM
dfaure updated this revision to Diff 52969.Mar 2 2019, 12:31 PM

push v2 (scripted)

ervin accepted this revision.Mar 2 2019, 3:28 PM
This revision was automatically updated to reflect the committed changes.