AtlasOfLivingAustralia / alerts

Alerts services
https://alerts.ala.org.au
Other
1 stars 6 forks source link

wrong query url in createTaxonRegionQuery #119

Open alexhuang091 opened 3 years ago

alexhuang091 commented 3 years ago

In Queryservice, we have

https://github.com/AtlasOfLivingAustralia/alerts/blob/2386bd89a5f177f13f43ffc7c1fd21b40c8eed30/grails-app/services/au/org/ala/alerts/QueryService.groovy#L219

It creates links like occurrences/taxon/urn:lsid:biodiversity.org.au:afd.taxon:17c9fd64-3c07-4df5-a33d-eda1e065e99f?state:Victoriawhich is incorrect.

The correct form should be like https://github.com/AtlasOfLivingAustralia/alerts/blob/2386bd89a5f177f13f43ffc7c1fd21b40c8eed30/grails-app/services/au/org/ala/alerts/QueryService.groovy#L237

which has ?q=state:Victoria

adam-collins commented 3 months ago

Check all existing queries in the database to find existing incorrect entries and fix those as well.