MCPcopy Index your code
hub / github.com/diffgram/diffgram / do_soft_delete

Method do_soft_delete

shared/database/annotation/instance.py:290–306  ·  view source on GitHub ↗

Context of wanting to hash afterwards Caution, need to set cache dirty (especially for video) otherwise won't update... We don't know what other instances might be effected so can't regenerate cache directly here TODO hash and set file key c

(self)

Source from the content-addressed store, hash-verified

288 return query.all()
289
290 def do_soft_delete(self) -> None:
291 """
292 Context of wanting to hash afterwards
293
294 Caution, need to set cache dirty (especially for video)
295 otherwise won't update...
296 We don't know what other instances might be effected
297 so can't regenerate cache directly here
298
299 TODO hash and set file key could maybe be part of some
300 shared concept for per instance changes
301
302 """
303
304 self.soft_delete = True
305 self.hash_instance()
306 self.file.set_cache_key_dirty(cache_key = 'instance_list')
307
308 def hash_instance(self) -> None:
309 """

Callers 1

delete_sequence_sharedFunction · 0.80

Calls 2

hash_instanceMethod · 0.95
set_cache_key_dirtyMethod · 0.80

Tested by

no test coverage detected