Opened 9 years ago
Last modified 6 years ago
#1561 addressed defect
List of crops under descriptors menu should be relevant
| Reported by: | dbmuqs | Owned by: | dbmulg |
|---|---|---|---|
| Priority: | medium | Milestone: | Server 2.0.0 |
| Component: | Public Website App. | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
The only crops that show up in the dropdown under the descriptors menu should be those that have actual crop_trait_observation data. Makes no sense to have users select a crop that has no data. Many of the existing crops are primarily used for the taxonomy wild relatives. This leads to a confusing list of crops, many of which have no data.
The quickest way to get the crops with data is to use those present in the taxonomy_crop_map table with alternate_crop_name ='N/A'
Recall we are using this table for 2 purposes.
Change History (5)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
dataview 2017_12_14_web_descriptorbrowse_crop.dataview loaded to npgsdev for testing.
comment:3 by , 9 years ago
| Milestone: | → Server Release 1.10.1 |
|---|
comment:4 by , 8 years ago
| Status: | new → addressed |
|---|
comment:5 by , 6 years ago
| Milestone: | Server Release 1.10.1 → Server 2.0.0 |
|---|
Changed the dataview so that crops with no descriptor values would not be in the dropdown list. The previous change using taxonomy_crop_map table did not fix the issue. New dataview is web_descriptorbrowse_crop_2 which unions crop_trait and crop_trait_observation in order to eliminate crops with no observation data. Currently on test.

modified dataview web_descriptorbrowse_crop.dataview to address the issue.
this dataview is looking at the taxonomy_crop_map table now. I tried the query point to looking at the crop with observation data (crop, crop_trait, crop_trait_observation tables), the results are the same.
--Laura