Closed mnaamani closed 1 year ago
I am just wandering: shouldn't we replace the runtime migration tests in the CI with the
try_runtime
ones?
Yes we do here: https://github.com/Joystream/joystream/actions/runs/6245191588/job/16953377405?pr=4874#step:7:2 and https://github.com/Joystream/joystream/actions/runs/6245191588/job/16953377405?pr=4874#step:8:2
Will address your questions bedeho, but will merge for Ignazio's sake.
Implements https://github.com/Joystream/joystream/issues/4589
delete_video_as_moderator
delete_channel_as_moderator
v3.0.0
(convention to bump major version on each new runtime version)ContentModerationAction::DeleteVideo
,ContentModerationAction::DeleteChannel
variants, and add migration to update permissions by level of each curator group incontent::CuratorGroupById
storage map.Includes work from https://github.com/Joystream/joystream/pull/4875
The runtime migration can be tested against the live network by running:
The runtime upgrade can also be tested against any other chain with:
or
We have a problem with the query-node. We have already solved how to allow processor to handle different version of an event type after runtime upgrade, however it cannot handle an event being removed entierly from a runtime. So for now the
ChannelDeletedByModerator
andVideoDeletedByModerator
events are still part of the runtime despite no longer being emitted, only to be able to handle old runtime events. - I guess that is one more reason to move to subsquid.. (not like we needed any more reasons) - created an issue https://github.com/Joystream/joystream/issues/4877 -> resolved in https://github.com/Joystream/joystream/pull/4875 and https://github.com/Joystream/hydra/pull/531With respect to mappings related to curator permissions there are none specific to
ContentModerationAction
. Query node is only keeping track of the "channel agent" permissions. So no changes to mappings is required.┆Issue is synchronized with this Asana task by Unito