Page MenuHomeSoftware Heritage
Paste P310

(An Untitled Masterwork)
ActivePublic

Authored by vlorentz on Oct 5 2018, 4:22 PM.
dev@desktop5  ~/swh-environment/swh-indexer   origin-head-indexer  grep content_metadata_add **/*.{py,sql}
swh/indexer/metadata.py: self.idx_storage.content_metadata_add(
swh/indexer/storage/__init__.py: def content_metadata_add(self, metadata, conflict_update=False, db=None,
swh/indexer/storage/__init__.py: db.content_metadata_add_from_temp(conflict_update, cur)
swh/indexer/storage/api/client.py: def content_metadata_add(self, metadata, conflict_update=False):
swh/indexer/storage/api/server.py:def content_metadata_add():
swh/indexer/storage/api/server.py: get_storage().content_metadata_add(**decode_request(request)))
swh/indexer/storage/db.py: def content_metadata_add_from_temp(self, conflict_update, cur=None):
swh/indexer/storage/db.py: self._cursor(cur).execute("SELECT swh_content_metadata_add(%s)",
swh/indexer/tests/storage/test_storage.py: self.storage.content_metadata_add([{
swh/indexer/tests/storage/test_storage.py: self.storage.content_metadata_add([metadata1])
swh/indexer/tests/storage/test_storage.py: def content_metadata_add_drop_duplicate(self):
swh/indexer/tests/storage/test_storage.py: self.storage.content_metadata_add([metadata_v1])
swh/indexer/tests/storage/test_storage.py: self.storage.content_metadata_add([metadata_v2])
swh/indexer/tests/storage/test_storage.py: def content_metadata_add_update_in_place_duplicate(self):
swh/indexer/tests/storage/test_storage.py: self.storage.content_metadata_add([metadata_v1])
swh/indexer/tests/storage/test_storage.py: self.storage.content_metadata_add([metadata_v2], conflict_update=True)
swh/indexer/tests/test_utils.py: def content_metadata_add(self, metadata, conflict_update=None):
sql/swh-func.sql:create or replace function swh_content_metadata_add(conflict_update boolean)
sql/swh-func.sql:comment on function swh_content_metadata_add(boolean) IS 'Add new content metadata';