(
&self,
mutation: Mutation,
store: &S,
name: String,
parent: RepoTopic,
matches: BTreeSet<SynonymMatch>,
)
| 608 | } |
| 609 | |
| 610 | fn add_repo_topic<S>( |
| 611 | &self, |
| 612 | mutation: Mutation, |
| 613 | store: &S, |
| 614 | name: String, |
| 615 | parent: RepoTopic, |
| 616 | matches: BTreeSet<SynonymMatch>, |
| 617 | ) -> Result<UpsertTopicResult> |
| 618 | where |
| 619 | S: SaveChangesForPrefix, |
| 620 | { |
| 621 | if !matches.is_empty() { |
| 622 | log::info!( |
| 623 | "creating new repo topic even though there are matching synonyms: {:?}", |
| 624 | matches |
| 625 | ); |
| 626 | } |
| 627 | |
| 628 | let (child, parent_topics) = self.make_topic(&parent, name)?; |
| 629 | self.persist_repo_topic(mutation, store, child, parent, parent_topics) |
| 630 | } |
| 631 | |
| 632 | fn persist_repo_topic<S>( |
| 633 | &self, |
no test coverage detected