solgenomics / sgn

The code behind the Sol Genomics Network, Cassavabase and other Breedbase websites
https://solgenomics.net
MIT License
66 stars 35 forks source link

Accession Search: Fix stock prop advanced search #5064

Closed dwaring87 closed 2 months ago

dwaring87 commented 3 months ago

Description

This update changes the CXGN::Stock::Search->search() function when filtering by stockprop values. The original search used the materialized_stockprop table which did not include the additional stock props added in the editable_stock_props key in the local config file. The search now uses the native stockprops table for the search, so is no longer limited to the hard-coded stock props in the mat view.

This is used by the advanced search (search by another property) feature on the accession search page.

Fixes #3653 Fixes #3284

Checklist

lukasmueller commented 2 months ago

I think a similar modification should be made to the CXGN::Stock::SearchVector object... (#5093)