Skip to content

Rename the RawExtrinsicMetadata id field to target

This backwards-compatible change prepares the transition to give RawExtrinsicMetadata an id field that is computed intrinsically from its contents (using the HashableObject mixin).

The next steps will be:

  • release swh.model with this change
  • use the target attribute in swh.storage and swh.loader.core
  • release both modules
  • drop the id attribute and test again
  • release swh.model again
  • add a computed id field on all ExtrinsicMetadata objects

Related to T2703

Test Plan

tox + pytest in swh.storage and swh.loader.core


Migrated from D4348 (view on Phabricator)

Merge request reports