MCPcopy Create free account
hub / github.com/acking-you/static_flow / delete_comment_task

Method delete_comment_task

crates/store/src/comments_store.rs:477–506  ·  view source on GitHub ↗
(&self, task_id: &str)

Source from the content-addressed store, hash-verified

475 }
476
477 pub async fn delete_comment_task(&self, task_id: &str) -> Result<()> {
478 let tasks_table = self.tasks_table().await?;
479 tasks_table
480 .delete(&format!("task_id = '{}'", escape_literal(task_id)))
481 .await
482 .context("failed to delete comment task")?;
483
484 let task_filter = format!("task_id = '{}'", escape_literal(task_id));
485 self.published_table()
486 .await?
487 .delete(&task_filter)
488 .await
489 .context("failed to delete related published comments")?;
490 self.audit_table()
491 .await?
492 .delete(&task_filter)
493 .await
494 .context("failed to delete related audit logs")?;
495 self.ai_runs_table()
496 .await?
497 .delete(&task_filter)
498 .await
499 .context("failed to delete related ai runs")?;
500 self.ai_chunks_table()
501 .await?
502 .delete(&task_filter)
503 .await
504 .context("failed to delete related ai chunks")?;
505 Ok(())
506 }
507
508 pub async fn upsert_published_comment(
509 &self,

Callers 2

cleanup_comment_tasksMethod · 0.80

Calls 6

tasks_tableMethod · 0.80
deleteMethod · 0.80
published_tableMethod · 0.80
audit_tableMethod · 0.80
ai_runs_tableMethod · 0.45
ai_chunks_tableMethod · 0.45

Tested by

no test coverage detected