Support removal of RawExtrinsicMetadata and ExtID objects
These changes are needed to allow `swh alter remove` to remove RawExtrinsicMetadata and ExtID objects from the PostgreSQL and Cassandra implementation of the storage. As RawExtrinsicMetadata objects can be addressed using an ExtendendSWHID, they can now be removed using `object_delete()`. For ExtID, a new method `extid_delete_for_target()` has been added to `ObjectDeletionInterface`. It will remove any ExtID object targeting one of the object in the a list of SWHID given as an argument. Address swh-alter!11
parent
5d3992ec
No related branches found
Tags v1.18.2
Showing
- swh/storage/cassandra/cql.py 58 additions, 0 deletionsswh/storage/cassandra/cql.py
- swh/storage/cassandra/storage.py 126 additions, 13 deletionsswh/storage/cassandra/storage.py
- swh/storage/interface.py 71 additions, 12 deletionsswh/storage/interface.py
- swh/storage/postgresql/db.py 38 additions, 1 deletionswh/storage/postgresql/db.py
- swh/storage/postgresql/storage.py 78 additions, 12 deletionsswh/storage/postgresql/storage.py
- swh/storage/tests/test_cassandra.py 42 additions, 1 deletionswh/storage/tests/test_cassandra.py
- swh/storage/tests/test_postgresql.py 46 additions, 1 deletionswh/storage/tests/test_postgresql.py
Loading
Please register or sign in to comment