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)
| 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 | """ |
no test coverage detected