(
&self,
repo_id: RepoId,
name: &str,
parent_topic: &ExternalId,
on_matching_synonym: OnMatchingSynonym,
)
| 162 | } |
| 163 | |
| 164 | pub fn upsert_topic( |
| 165 | &self, |
| 166 | repo_id: RepoId, |
| 167 | name: &str, |
| 168 | parent_topic: &ExternalId, |
| 169 | on_matching_synonym: OnMatchingSynonym, |
| 170 | ) -> Result<UpsertTopicResult> { |
| 171 | UpsertTopic { |
| 172 | actor: actor(), |
| 173 | parent_topic_id: parent_topic.to_owned(), |
| 174 | locale: Locale::EN, |
| 175 | name: name.into(), |
| 176 | on_matching_synonym, |
| 177 | repo_id, |
| 178 | } |
| 179 | .call(self.mutation(), &redis::Noop) |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | mod tests { |
no test coverage detected