FIXME - needs to be scoped somehow, perhaps to the repo id
(
&self,
ctx: &Context<'_>,
search_string: Option<String>,
)
| 77 | impl RepoTopic { |
| 78 | // FIXME - needs to be scoped somehow, perhaps to the repo id |
| 79 | async fn available_parent_topics( |
| 80 | &self, |
| 81 | ctx: &Context<'_>, |
| 82 | search_string: Option<String>, |
| 83 | ) -> Result<LiveSearchTopicsPayload> { |
| 84 | let result = ctx |
| 85 | .data_unchecked::<Store>() |
| 86 | .search_topics(search_string) |
| 87 | .await?; |
| 88 | Ok(LiveSearchTopicsPayload(result)) |
| 89 | } |
| 90 | |
| 91 | async fn details(&self) -> Option<RepoTopicDetails<'_>> { |
| 92 | self.0.details().map(RepoTopicDetails) |
nothing calls this directly
no test coverage detected