Skip to content

Commit

Permalink
Add gocam_ids to SolrTermSummary
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed May 25, 2024
1 parent 6e232cc commit a81bfc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/pombase/data_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2403,6 +2403,9 @@ pub struct SolrTermSummary {
#[serde(skip_serializing_if="HashSet::is_empty", default)]
pub secondary_identifiers: HashSet<TermId>,

#[serde(skip_serializing_if="HashSet::is_empty", default)]
pub gocam_ids: HashSet<FlexStr>,

pub annotation_count: usize,
pub gene_count: usize,
pub genotype_count: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/pombase/web/data_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3437,7 +3437,6 @@ phenotypes, so just the first part of this extension will be used:
let mut gocam_ids = HashSet::new();

for cvtermprop in cvterm.cvtermprops.borrow().iter() {
eprintln!("term name: {}", cvtermprop.prop_type.name);
match cvtermprop.prop_type.name.as_str() {
"pombase_gene_id" =>
pombase_gene_id = Some(cvtermprop.value.clone()),
Expand Down Expand Up @@ -6993,6 +6992,7 @@ phenotypes, so just the first part of this extension will be used:
interesting_parent_ids: interesting_parent_ids_for_solr,
definition_xrefs: term_details.definition_xrefs.clone(),
secondary_identifiers: term_details.secondary_identifiers.clone(),
gocam_ids: term_details.gocam_ids.clone(),
annotation_count,
gene_count: term_details.gene_count,
genotype_count: term_details.genotype_count,
Expand Down

0 comments on commit a81bfc3

Please sign in to comment.