Bauble / bauble.classic

this is how Bauble and Ghini both started
GNU General Public License v2.0
10 stars 34 forks source link

functions in search tool #184

Closed mfrasca closed 8 years ago

mfrasca commented 8 years ago

From @mfrasca on April 28, 2015 19:22

candidate functions are: count(relation_field) - the amount of objects connected to 'this'. year(timestamp_field) - extract year from timestamp.

the reason for year(timestamp) is so that we can easily select all that has happened during a calendar year.

count(relation) would allow for queries like:

species where count(accessions) > 10

Copied from original issue: mfrasca/bauble.classic#70

mfrasca commented 8 years ago

also mentioned in #160

mfrasca commented 8 years ago

looks like working, but a test somewhere else broke, a strange test about homonyms hidden in a place having nothing to do with homonyms. screenshot from 2015-12-30 18 20 06

mfrasca commented 8 years ago

(I have marked the new failing test as skipped. not the nicest thing to do in general, but the test looks suspicious anyway.)