Check updated metadata are correctly stored in the metadata storage
This adds the missing checks on the current metadata part. This also adds the origin to the metadata stored in the storage metadata (as per review suggestion).
Related to !377 (closed)
Depends on !378 (closed)
Test Plan
tox
Migrated from D4058 (view on Phabricator)