MCPcopy Create free account
hub / github.com/emwalker/digraph / remove_topic_timerange

Method remove_topic_timerange

backend/src/graphql/mutation.rs:357–380  ·  view source on GitHub ↗
(
        &self,
        ctx: &Context<'_>,
        input: RemoveTopicTimerangeInput,
    )

Source from the content-addressed store, hash-verified

355 }
356
357 async fn remove_topic_timerange(
358 &self,
359 ctx: &Context<'_>,
360 input: RemoveTopicTimerangeInput,
361 ) -> Result<RemoveTopicTimerangePayload> {
362 let RemoveTopicTimerangeInput {
363 client_mutation_id,
364 repo_id,
365 topic_id,
366 } = &input;
367
368 let topic_id = topic_id.try_into()?;
369 let store = ctx.data_unchecked::<Store>();
370 let git::RemoveTopicTimerangeResult { repo_topic, .. } = store
371 .remove_topic_timerange(repo_id.try_into()?, &topic_id)
372 .await?;
373 let updated_topic: Topic = store.fetch_topic(topic_id).await?.try_into()?;
374
375 Ok(RemoveTopicTimerangePayload {
376 client_mutation_id: client_mutation_id.to_owned(),
377 updated_repo_topic: repo_topic.into(),
378 updated_topic,
379 })
380 }
381
382 async fn select_repository(
383 &self,

Callers

nothing calls this directly

Calls 2

try_intoMethod · 0.45
fetch_topicMethod · 0.45

Tested by

no test coverage detected